[Nut-upsdev] nut: megatec_usb shows error "ser_send_pace: Device detached" on periodically checks

Arjen de Korte nut+devel at de-korte.org
Thu Jun 18 10:36:30 UTC 2009


Citeren Alexander Gordeev <lasaine op lvk.cs.msu.su>:

>> 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




More information about the Nut-upsdev mailing list