Citeren Jon Burgess <[email protected]>:


The change in SVN r2098 triggers the problem. By looking at the usbmon
output I see that this device fails to respond to the get_report
requests when the request size is 512 bytes.

Thanks for reporting this. Can you try if fixing the size to 8 bytes (instead of SMALLBUF) helps? You may wish to change both of the following lines in in 'drivers/libhid.c':

144             unsigned char   buf[8];
472             unsigned char   buf[8];

I vaguely remember that you can't read more than 8 bytes in a single operation, but I don't recall if this is a Belkin specific limitation or depends on the libusb version used.

Note that the logic that attempted to calculate the size of reports is flawed in earlier versions. Devices that would report more than the calculated size would find that these reports would be ignored completely. This isn't good either.

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

Reply via email to