> I have a disk box from ACNC (Jetstor 416is) that has an UPS port. The manual describes an UPS port: “2. Uninterrupted Power Supply (UPS) Port (APC Smart UPS only) The subsystem may come with an optional UPS port allowing you to connect APC Smart UPS device. Connect the cable from the UPS device to the UPS port located at the rear of the subsystem. This will automatically allow the subsystem to use the functions and features of the UPS.” > > Is there a known way to *send* APC smart signaling to an external device from NUT?While it would theoretically be possible to emulate an APC UPS over USB, you would need an embedded system such as a BeagleBone Black which implements the peripheral side of USB, versus the host side that PCs have. There is also the possibility that the NAS software is sending different USB requests than what NUT uses, so that could be interesting to debug. You could also check with the apcupsd.org <http://apcupsd.org/> lists to see if anyone there knows of such a system.> What about dumb APC signaling?Given that the excerpt from the manual says "automatically", I am not sure if that would be supported by their software. On the UPS side, "dumb signaling" typically uses relay contacts to connect lines together, so depending on how the disk box and its cable harness are wired, you might need a cable with relays, which is starting to get complicated for only a handful of feedback states (online, on battery, low battery). Unless you have a lot of copies of this system, it might be easier to find an administrative API where the NUT system sends a command with curl or wget to the shutdown endpoint on that API. It's also worth asking the vendor to support NUT and/or apcupsd's network protocol. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180511/1b82e02d/attachment.html>
Matthew.Koundakjian at Engility.com
2018-May-14 20:47 UTC
[Nut-upsuser] Using NUT to signal an appliance
Charles, thank you for the thoughtful and helpful reply! The ACNC box uses an RS232 serial interface for UPS connection. From: Charles Lepple [mailto:clepple at gmail.com] Sent: Friday, May 11, 2018 6:47 PM To: Koundakjian, Matthew @ Engility <Matthew.Koundakjian at Engility.com> Cc: nut-upsuser at alioth-lists.debian.net Subject: Re: Using NUT to signal an appliance EXTERNAL EMAIL -- This message originates from outside of Engility. I have a disk box from ACNC (Jetstor 416is) that has an UPS port. The manual describes an UPS port: “2. Uninterrupted Power Supply (UPS) Port (APC Smart UPS only) The subsystem may come with an optional UPS port allowing you to connect APC Smart UPS device. Connect the cable from the UPS device to the UPS port located at the rear of the subsystem. This will automatically allow the subsystem to use the functions and features of the UPS.” Is there a known way to *send* APC smart signaling to an external device from NUT? While it would theoretically be possible to emulate an APC UPS over USB, you would need an embedded system such as a BeagleBone Black which implements the peripheral side of USB, versus the host side that PCs have. There is also the possibility that the NAS software is sending different USB requests than what NUT uses, so that could be interesting to debug. You could also check with the apcupsd.org<http://apcupsd.org> lists to see if anyone there knows of such a system. What about dumb APC signaling? Given that the excerpt from the manual says "automatically", I am not sure if that would be supported by their software. On the UPS side, "dumb signaling" typically uses relay contacts to connect lines together, so depending on how the disk box and its cable harness are wired, you might need a cable with relays, which is starting to get complicated for only a handful of feedback states (online, on battery, low battery). Unless you have a lot of copies of this system, it might be easier to find an administrative API where the NUT system sends a command with curl or wget to the shutdown endpoint on that API. It's also worth asking the vendor to support NUT and/or apcupsd's network protocol. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180514/67b93b80/attachment.html>
On May 14, 2018, at 4:47 PM, Matthew.Koundakjian at Engility.com wrote:> > Charles, thank you for the thoughtful and helpful reply! > > The ACNC box uses an RS232 serial interface for UPS connection.Whoops, I thought I saw something about USB in your original email. A null-modem serial cable would be easier to build (for the smart interface), but I think a good portion of what I mentioned applies to serial as well as USB (on the software side). It would probably be a lot simpler to emulate a serial UPS than a USB UPS. You still might get more APC-specific information from the apcupsd.org lists, though the code for either the NUT apcsmart serial driver or the equivalent apcupsd serial driver would be a good starting point to build such an emulator.