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

Installation: Serial-Line UPSes
Overview of Serial-Interface UPSes
If you have a UPS that communicates via serial port, you need to do two
things before you can even think about configuring the software. First, you
need to figure out whether it’s a dumb (voltage-signalling) UPS or speaks
the apcsmart protocol (see this discussion (see upstypes)). Second, if you
have an interface cable from APC, you need to figure out what kind it is.
If you don’t have such a cable, you need to build one. A straight-through
serial cable won’t work (see crazy).
According to Bill Marr the Belkin F5U109, also sold as F5U409 also works
with apcupsd for kernel versions 2.4.25 or higher and kernels 2.6.1 and
higher. These newer kernels are needed to have the patch that makes the
mct
u232 (Magic Control Technology) module and other adapters work with
RS-232 devices that do not assert the CTS signal.
Connecting a Serial-Line UPS to a USB Port
By using a special adaptor, you can connect your serial-line UPS to a USB
port. If you would like to free up your serial port and connect your existing
serial port UPS to a USB port, it is possible if you have one of the later
kernels. You simply get a serial to USB adapter that is supported by the
kernel, plug it in and make one minor change to your apcupsd.conf file and
away you go. (Kern adds: Thanks to Joe Acosta for pointing this out to
me.)
The device that Joe Acosta and Kern are using is IOgear GUC232A USB
2 serial adapter. Bill Marr informs us that it also works with a Back-UPS
Pro 650 and the 940-0095B cable.
At Kern’s site, running Red Hat 7.1 with kernel 2.4.9-12, he simply changed
his /etc/apcupsd/apcupsd.conf configuration line to be:
DEVICE /dev/ttyUSB0
Depending on whether or not you have hotplug working, you may need to
explicitly load the kernel modules usbserial and pl2303. In Kern’s case,
this was not necessary.
135










