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.99k stars 349 forks source link

Question about Protocols + Custom UPS #2130

Open o7-machinehum opened 11 months ago

o7-machinehum commented 11 months ago

Hey! I'm building a UPS from scratch and was to implement NUT into it natively. It will be serial to a microcontroller.

I've found this page. I see the Standard protocols; this seems the best place to start. Can I generically implement things so there aren't changes in the NUT codebase? Or what would be the steps to getting things to work with all the NUT tools? Is there any code or libraries I can link against on the MCU/C side? Thanks in advance!

jimklimov commented 11 months ago

I'd suggest to subscribe to the nut-upsdev mailing list and ask there (and peruse the archive, this sort of question is asked every couple of years).

The protocol you linked to seems pretty aged and does not really ring a bell OTOH regarding what NUT driver might support it. For something very trivial (a couple of state lines effectively, not a smarter protocol to pass numbers around) you might look at genericups driver etc.

I am not sure about any licensing implications, but variants of Megatec Qx protocol are pretty popular for native Serial or Serial-over-USB ports.