[Nut-upsdev] UPS serial protocol

Rob Groner rgroner at RTD.com
Thu Nov 5 16:33:32 UTC 2015

Having dealt with the USB portion of our UPS, I'm now reviewing our serial port communication.  I've looked over some of the drivers in NUT to see how they handle it so I can get an idea of what the "standard" is for how to accomplish it.  I'd like to do something simple and human readable.

It seems like most data is gathered from a query and a response.  Is that typical?  I could have our UPS output data asynchronously...say, time remaining when on battery, or when states change,  etc.

What format should all responses by the UPS take so that parsing them is easiest in NUT?  Bracketed by tags of some kind?  Or is ending with a '\n' enough?

Any general suggestions or comments about serial port communication with UPSes?  I don't want to reinvent the wheel here, or leave out some key functionality/commands that is going to make using our UPS through a serial port into a chore.  Otherwise, if there really is no "standard", I'll just try to make the best choices I can, and our users can deal with it. :)


Rob Groner
Senior Software Engineer

RTD Embedded Technologies, Inc.
ISO 9001 and AS9100 Certified
Ph: +1 814-234-8087

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20151105/ed5753c2/attachment.html>

More information about the Nut-upsdev mailing list