Displaying 2 results from an estimated 2 matches for "_serial_port_handling".
2015 Nov 07
0
UPS serial protocol
...at 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?
The ser_get_line() function is flexible enough to handle various line endings: http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#_serial_port_handling
> 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 jus...
2015 Nov 05
2
UPS serial protocol
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