Citeren Alexander Gordeev <[email protected]>:
If I try to start it with root priveleges, I see thouse errors: # /lib/nut/megatec_usb -a sven_625 -D -u root Network UPS Tools - Megatec protocol driver 1.6 (2.4.1) Serial-over-USB transport layer 0.10 debug level is '1' Starting UPS detection process... 0 out of 5 detection attempts failed (minimum failures: 2). Cancelling any pending shutdown or battery test. Megatec protocol UPS detected [ VT0105BG]. 12.0V battery, interval [9.7V, 13.7V]. Done setting up the UPS. ser_send_pace: Device detached? (error -5: No error) Successfully reconnected ser_send_pace: Device detached? (error -5: No error) Successfully reconnected ser_send_pace: Device detached? (error -5: No error) Successfully reconnected ser_send_pace: Device detached? (error -5: No error) Successfully reconnected
The error handler usb_comm_fail() in megatec_usb() is over reacting here. The libusb library is clearly stating that there is no error here, so reconnecting is probably not the best thing to do.
Best regards, Arjen -- Please keep list traffic on the list _______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
