[Nut-upsuser] Belkin Regulator Pro dropping connection and halting
Arjen de Korte
nut+users at de-korte.org
Wed Dec 1 14:17:28 UTC 2010
Citeren Charles Lepple <clepple op gmail.com>:
> 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)
More information about the Nut-upsuser
mailing list