APC UPS control system User Manual
Page 153

condition = serial port initialization
cable = 0095A, 0095B, 0095C
action = ioctl(TIOMBIC, RTS)
clear RTS (set PnP mode)
cable = 0119A, 0127A, 0128A
action = ioctl(TIOMBIC, DTR)
clear DTR (killpower)
action = ioctl(TIOMBIS, RTS)
set
RTS (ready to receive)
apcserial.c:
condition = save_dumb_status
cable = CUSTOM_SIMPLE
action = ioctl(TIOMBIC, DTR)
clear DTR (power bit?)
action = ioctl(TIOMBIC, RTS)
clear RTS (killpower)
cable = 0020B, 0020C, 0119A, 0127A, 0128A
action = ioctl(TIOMBIC, DTR)
clear DTR (killpower)
cable = 0095A, 0095B, 0095C
action = ioctl(TIOMBIC, RTS)
clear RTS (killpower)
action = ioctl(TIOMBIC, CD)
clear DCD (low batt)
action = ioctl(TIOMBIC, RTS)
clear RTS (killpower) a second time!
apcserial.c:
condition = check_serial
cable = CUSTOM_SIMPLE
action = OnBatt = CD
action = BattLow = CTS
action = LineDown = SR
cable = 0020B, 0020C, 0119A, 0127A, 0128A
action = OnBatt = CTS
action = BattLow = CD
action = LineDown = 0
cable = 0023A
action = Onbatt = CD
action = BattLow = SR
action = LineDown = 0
cable = 0095A, 0095B, 0095C
action = OnBatt = RNG
action = BattLow = CD
action = LineDown = 0
apcserial.c
condition = killpower
cable = CUSTOM_SIMPLE, 0095A, 0095B, 0095C
action = ioctl(TIOMCBIS, RTS)
set RTS (kills power)
action = ioctl(TIOMCBIS, ST)
set TxD
cable = 0020B, 020C, 0119A, 0127A, 0128A
152