[Nut-upsdev] Network UPS Tools version 2.0.3-pre2 released

George Ross gdmr at inf.ed.ac.uk
Fri Jan 6 13:04:55 UTC 2006


> Checking device (051D/0002) (002/002)
> - VendorID: 051d
> - ProductID: 0002
> - Manufacturer: American Power Conversion
> - Product: Smart-UPS 750 RM FW:615.3.I USB FW:1.5
> - Serial Number: AS0444223639
> - Bus: 002
> Trying to match device
> Device matches
> HID descriptor retrieved (Reportlen = 61939)
> Unable to get Report descriptor (-22)

"lsusb -v" claims the report descriptor length is really 1040.  If I apply 
the following hack ...

--- drivers/libusb.c.dist       2005-12-22 14:40:27.000000000 +0000
+++ drivers/libusb.c    2006-01-06 12:46:35.000000000 +0000
@@ -226,6 +226,9 @@
                                TRACE(2, "  Couldn't retrieve descriptors");
                                goto next_device;
                        }
+
+/* HACK */
+desc->wDescriptorLength = 1040;
 
                        /* res = usb_get_descriptor(udev, USB_DT_REPORT, 0, bigbuf, desc->wDescriptorLength); */
                        res = usb_control_msg(udev, USB_ENDPOINT_IN+1, USB_REQ_GET_DESCRIPTOR,

... then the newhidups driver appears to work properly.

(Arnaud and John Stamp may recall some correspondence about this last June.
I haven't had much time to look at nut since then!)
-- 
Dr George D M Ross, School of Informatics, University of Edinburgh
    Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr at inf.ed.ac.uk   Voice: +44 131 650 5147   Fax: +44 131 667 7209
 PGP: 1024D/AD758CC5  B91E D430 1E0D 5883 EF6A  426C B676 5C2B AD75 8CC5


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 239 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060106/661ad027/attachment.pgp


More information about the Nut-upsdev mailing list