Non-standard USB_TIMEOUT in libusb.c is causing problems with Eaton 5PX UPS, usbhid-ups won't start
Hello,
I reported a problem with the USB driver and an Eaton 5PX UPS. usbhid-ups failed to start, because it timeouts while receiving the descriptor. The USB_TIMEOUT constant in libusb.c is set to 4 seconds, instead of the standard 5 seconds.
Here is the original thread: http://www.mail-archive.com/[email protected]/msg07676.html
Here is the constant I'm talking about: https://github.com/networkupstools/nut/blob/master/drivers/libusb.c#L38
I confirm this issue. You did well find and point the faulty param. and as commented, this was not the default value for perf reasons (sigh!) On 5PX, this is related to a small increase in the report descriptor (describes the data struct) which, by side effect caused the main issue you found (timeout on init, and failure to init comm. with the device).
I have fixed it in the latest master, which will be available in the next release (probably a soon to come 2.6.6...)
Note that I've also opened a tracker for adding a new "communication timeout" option (GitHub issue #24)
Thanks and cheers
closed with commit 9758dcf10e6ed62958acebe9ac419314b152252b. I forgot to reference the present issue in the commit message...