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
1.95k stars 347 forks source link

APC UPS Modbus support. Can't get it going. #2648

Open Plutoaurus opened 7 hours ago

Plutoaurus commented 7 hours ago

Have tried a few times to get NUT installed with usb modbus support and haven't been successful.

I last tried following this: https://github.com/networkupstools/nut/wiki/APC-UPS-with-Modbus-protocol

I always end up frustrated when it endlessly fails with missing dependencies not in any guide and going back to the beginning to the first line and wondering why 14 years later it's still so difficult. This is a bit of a rant and cry for help sorry.

Stephane in the libmodbus original repo is active and still updating, what's holding this back and can we do anything to help push the commit through?

The NUT repo seems to have 2 releases with modbus support but not for usb. Is this planned at all?

jimklimov commented 4 hours ago

Yeah, I understand the general frustration all too well, but so far I have not seen systems set up to build NUT (per its docs/config-prereqs.txt) that would have qualms building the fork of libmodbus too. If you do determine some missing package in that list as needed for libmodbus (or NUT), PRs or wiki updates are welcome.

With their CLA however, I am not sure anyone other than the original author may propose PRs for upstream changes (e.g. myself on behalf of @EchterAgo), and it seems the OA's interest and availability fizzled put waiting for Stephane to become active again :\ Maybe asking him how to go about it in this case (and actually getting a reply) would be a good start :D

That said, "14 years" is an overkill in regard to both NUT and libmodbus. The rtu_usb branch there and driver here are only a couple of years old...

On a side note, there are reported issues with the driver (maybe the added lib code actually) that cause driver init to crash for some users, but not everyone it seems, so maybe it is a bit too early to upstream the change yet...

jimklimov commented 4 hours ago

The NUT repo seems to have 2 releases with modbus support but not for usb. Is this planned at all?

Also, on the NUT side, support is present; it is up to libmodbus to become able to use libusb (done in the fork, bug above notwithstanding).