Citeren Charles Lepple <[email protected]>:

The get_belkin_reply() function looks fragile to me. Three seconds should be
enough to fill the buffer, but if you put a few upsdebugx() calls around ser_get_buf_len(), it should be evident whether the read is timing out, or if there is a problem with the format of the response.

Starting with

    ser_flush_io(upsfd);

in the send_belkin_command function (before the ser_send call) might also help. It doesn't look like the driver deals with partial replies gracefully.

Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to