bounsky Posted February 6, 2017 Share Posted February 6, 2017 2017-02-06 3 days searching a way to connect UPS to Unraid server. --- UPS: CyberPower 700 AVR with DB9 connector --- Server: Model: Custom M/B: Supermicro - C2SEA CPU: Intel® Core™2 CPU 6300 @ 1.86GHz HVM: Enabled IOMMU: Disabled Cache: 64 kB, 2048 kB Memory: 6 GB (max. installable capacity 8 GB)* Network: eth0: 1000 Mb/s, full duplex, mtu 1500 Kernel: Linux 4.9.7-unRAID x86_64 OpenSSL: 1.0.2j --- Running Unraid v6.3.0 --- Connection from server to UPS: USB to DB9 adaptor with 2303AR chip Command ls /dev/tty* shows /dev/ttyUSB0 --- Settings - UPS Settings: Start APC UPS daemon: Yes UPS cable: USB Custom UPS cable: UPS type: APCSmart Device: /dev/ttyUSB0 Battery level to initiate shutdown (%): 90 Runtime left to initiate shutdown (minutes): 10 Time on battery before shutdown (seconds): 15 Turn off UPS after shutdown: No Clicking "Apply", shows RUNNING at top right window and "Refreshing" in Status Then, the apcupsd stops running (verified in ps-ef) Seems like apcupsd starts but stops after refreshing and no communications with UPS. Did 3 days of searches in all threads and can't see any solution. Anyone seen this situation? Link to comment
Frank1940 Posted February 6, 2017 Share Posted February 6, 2017 A few thoughts. 1) You have verified that the Cyberpower 900 works with apcuspd. Right? If it does have only a serial port on it, it is fairly old... 2) I can remember when I was researching the use of a IR to RS232 converter for my home theater projector which uses a rs232port for communication with the projector and programming of the converter, that many USB-to-rs232 adapters would not work with the converter. As I recall, in some cases, it had to do with the fact that the voltage went from 0 to +5 volts rather than the actual -3V(min) to +3V(min) voltage transients that are called for in the spec. You might have to see if you can actually find a genuine rs232 card rather than that UBS adapter. 3) You have to get the right rs232 cable and it is not always clear which one is required. Depending on how the receiving device is configured, the send wires on one end of the cable may have to cross-connected so that they on the receive terminals on the other end. 4) You may have to set the transmission speed of the port to the proper value. If the sending speed is not set to what the receiving device is expecting, it will never be able to comunicate. Most folks avoid rs232 these days and it is difficult to even find a computer that has the interface included on the MB. Link to comment
mr-hexen Posted February 6, 2017 Share Posted February 6, 2017 Try changing the cable type to SERIAL. Link to comment
JonathanM Posted February 7, 2017 Share Posted February 7, 2017 M/B: Supermicro - C2SEA has a serial port header, you just need the properly pinned connector. http://strugglers.net/~andy/blog/2015/06/19/fun-with-supermicro-motherboard-serial-headers/ I repinned a standard connector and it works fine. Whether or not your UPS will even work with apcupsd once you have a working serial connection is another question altogether. Link to comment
mr-hexen Posted February 7, 2017 Share Posted February 7, 2017 try cable type "smart" Link to comment
Frank1940 Posted February 7, 2017 Share Posted February 7, 2017 One more thing, you can find the manual for apcupsd, if you google 'apcupsd manual'. Link to comment
trurl Posted February 7, 2017 Share Posted February 7, 2017 You might also take a look at the NUT plugin. I have no idea whether it will help. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.