Sorry, OS X doesn't have lsusb, and it's not in darwinports yet either.

On Jan 9, 2006, at 1:10 AM, George Ross wrote:

Further info, here's the debug output from newhidups:
Checking device (051D/0002) (002/003-051d-0002-00-00)
 - VendorID: 051d
 - ProductID: 0002
 - Manufacturer: American Power Conversion
 - Product: Smart-UPS 1500 FW:601.3.D USB FW:1.5
 - Serial Number: AS0544120062
 - Bus: 002
Trying to match device
Device matches
failed to claim USB device...
HID descriptor retrieved (Reportlen = 61939)
Unable to get Report descriptor (-1)

What does "lsusb -v" say for the descriptor length?

FWIW, this...

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

...is what I'm using to get the driver to work with our APC UPSes!

(Arnaud, John Stamp and I had a brief discussion of this last June, but I ran out of time then to investigate further. I've flagged it as still an issue with 2.0.3-pre2, though the mail-list archive seems to have mangled
the upsdev postings as I'd gpg-signed them; maybe I should re-post...)
--
Dr George D M Ross, School of Informatics, University of Edinburgh
    Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: [EMAIL PROTECTED] Voice: +44 131 650 5147 Fax: +44 131 667 7209 PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to