User's Manual UPS control system
Table Of Contents
- Apcupsd User's Manual
- Release Notes
- How To Use This Manual
- Basic User's Guide
- Planning Your Installation
- Building and Installing apcupsd
- After Installation
- Configuration Examples
- Testing Apcupsd
- Troubleshooting Your Installation
- Monitoring and Tuning your UPS
- Maintaining Your UPS
- Frequently-Asked Questions
- Apcupsd Bugs
- Advanced topics
- Customizing Event Handling
- Master/Slave Configurations
- Controlling Multiple UPSes on one Machine
- Support for SNMP UPSes
- Alternate Ways To Run The Network Information Server
- apcupsd System Logging
- Installation: Windows
- Windows Version of apcupsd
- Installation: Serial-Line UPSes
- Overview of Serial-Interface UPSes
- Connecting a Serial-Line UPS to a USB Port
- Connecting a APC USB UPS to either a PC USB or Serial Port
- Cables
- Smart-Custom Cable for SmartUPSes
- Smart Signalling Cable for BackUPS CS Models
- Voltage-Signalling Cable for "dumb" UPSes
- Other APC Cables that apcupsd Supports
- Voltage Signalling Features Supported by Apcupsd for Various Cables
- Voltage Signalling
- Back-UPS Office 500 signals
- Analyses of APC Cables
- Win32 Implementation Restrictions for Simple UPSes
- Internal Apcupsd Actions for Simple Cables
- RS232 Wiring and Signal Conventions
- Pin Assignment for the Serial Port (RS-232C), 25-pin and 9-pin, Female End
- Ioctl to RS232 Correspondence
- Testing Serial-Line UPSes
- Troubleshooting Serial Line communications
- Recalibrating the UPS Runtime
- DATA Logging
- Technical Reference
- Configuration Directive Reference
- apcupsd Status Logging
- Shutown Sequence and its Discontents
- APC smart protocol
- Apcupsd --- RPM Packaging FAQ
- Credits
- Kernel Config
(Shield)--------------------------(4)Chassis GND
Cable 940-0127B
USB(Computer) RJ45-10(UPS)
_________ ____________
| = = = = | [ oooooooooo ]
|_________| [____________]
(1) (4) (10) [_] (1)
+5V(1)-----------(1)+5V
DATA+(2)-----------(9)DATA+
DATA-(3)-----------(10)DATA-
GND(4)-----------(7)Signal GND
(Shield)-----------(4)Chassis GRND
Win32 Implementation Restrictions for Simple UPSes
Due to inadequacies in the Win32 API, it is not possible to set/clear/get all
the serial port line signals. apcupsd can detect: CTS, DSR, RNG, and CD.
It can set and clear: RTS and DTR.
This imposes a few minor restrictions on the functionality of some of the
cables. In particular, LineDown on the Custom Simple cable, and Low
Battery on the 0023A cable are not implemented.
Internal Apcupsd Actions for Simple Cables
This section describes how apcupsd 3.8.5 (March 2002)
treats the serial port line signals for simple cables.
apcaction.c:
condition = power failure detected
cable = CUSTOM_SIMPLE
action = ioctl(TIOCMBIS, DTR) set DTR (enable power bit?)
apcaction.c:
condition = power back
cable = CUSTOM_SIMPLE
action = ioctl(TIOCMBIC, DTR) clear DTR (clear power bit)
action = ioctl(TIOCMBIC, ST) clear ST (TxD)
apcserial.c:
151










