networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.12k stars 354 forks source link

APC Back-UPS ES 700G #2078

Open ghmneumaier opened 1 year ago

ghmneumaier commented 1 year ago

Is not working with usbhid-ups driver

jimklimov commented 1 year ago

Hello. Which NUT version? Which OS? Is virtualization involved? What errors does the driver report?.. Does it "not work" completely (not recognized as a supported device by the driver), or just for some data points or commands?

Also what might be relevant here - which APC firmware?

Issue #26 discusses a fix for this model name, so back then (2013, NUT 2.6.5) it was apparently working. Vendors are known to ship unrelated devices with same names over time, as HW/FW/SW pieces evolve, though. APC firmwares were known to change USB IDs of devices, so maybe just your build of usbhid-ups program does not recognize the new ProductID numbers.

jimklimov commented 1 year ago

In particular, hear-say goes that after 2010 APC focused on providing custom Modbus-based protocols instead of common USB HID - so it could be feasible that even the same device with a FW upgrade (at home or from factory) would lose the ability to speak HID. Wondering if this could be something that impacts your situation, too.

Lack of APC Modbus support in NUT was a blind spot for too long (#139) but recently there is activity in this area, with a driver (and extension to libmodbus) growing in PR #2063.

Until that effort is completed, one approach to try would be getting a latest apcupsd set up to "actually" monitor the device (they added Modbus a few releases before the project went quiet), and if you need it seen in NUT-centric ecosystem - spin up NUT apcupsd-ups driver which would relay the info from that driver to NUT.

RainCaster commented 1 year ago

I have been trying to get my APC Smart-UPS X 2000 to display correctly in nut. Alas, it too is "blessed" by APC's move to a proprietary scheme called Modbus. I would help with the data layout issues & development, however I can't even get the first step to work. If I install apcupsd, then it uninstalled nut. When I reinstall nut, it removes apcupsd. Is there a way that the two will coexist?

ghmneumaier commented 1 year ago

I've identified the reason: a broken USB-cable. Sorry to bother you.

jimklimov commented 1 year ago

If I install apcupsd, then it uninstalled nut. When I reinstall nut, it removes apcupsd.

I think this was mentioned in some issue discussions. Ruled to be a packaging problem (either explicitly marked as competing packages and/or implementations of same feature, or delivering some same config/service file names and conflicting on that basis) - not a software problem. It is quite possible to build the two (or one of them, and have another packaged) and run together. Or use an OS whose packaging does not conflate NUT and apcupsd :)