Hi Simon,<br><br><div class="gmail_quote">2012/11/28 Simon Attwell <span dir="ltr"><<a href="mailto:Simon.Attwell@consultingone.com.au" target="_blank">Simon.Attwell@consultingone.com.au</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you Charles and Arnaud for replying.<br>
<br>
Here’s the additional detail requested.<br>
<br>
joavma01:/usr/local/ups/bin # lsusb -v -d 051d:0003<br>
<div class="im"><br>
Bus 002 Device 002: ID 051d:0003 American Power Conversion UPS<br>
</div>Device Descriptor:<br>
bLength 18<br>
bDescriptorType 1<br>
bcdUSB 2.00<br>
bDeviceClass 0 (Defined at Interface level)<br>
bDeviceSubClass 0<br>
bDeviceProtocol 0<br>
bMaxPacketSize0 64<br>
idVendor 0x051d American Power Conversion<br>
idProduct 0x0003 UPS<br>
bcdDevice 1.06<br>
iManufacturer 1 American Power Conversion<br>
iProduct 2 Smart-UPS 1000 FW:UPS 08.3 / ID=18<br>
iSerial 3 AS1235120308<br>
bNumConfigurations 1<br>
Configuration Descriptor:<br>
bLength 9<br>
bDescriptorType 2<br>
wTotalLength 41<br>
bNumInterfaces 1<br>
bConfigurationValue 1<br>
iConfiguration 0<br>
bmAttributes 0xe0<br>
Self Powered<br>
Remote Wakeup<br>
MaxPower 2mA<br>
Interface Descriptor:<br>
bLength 9<br>
bDescriptorType 4<br>
bInterfaceNumber 0<br>
bAlternateSetting 0<br>
bNumEndpoints 2<br>
bInterfaceClass 3 Human Interface Device<br>
bInterfaceSubClass 0 No Subclass<br>
bInterfaceProtocol 0 None<br>
iInterface 0<br>
HID Device Descriptor:<br>
bLength 9<br>
bDescriptorType 33<br>
bcdHID 1.00<br>
bCountryCode 33 US<br>
bNumDescriptors 1<br>
bDescriptorType 34 Report<br>
wDescriptorLength 515<br>
Warning: incomplete report descriptor<br></blockquote><div><br>this is already a bad hint...<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Report Descriptor: (length is 9)<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Item(Main ): (null), data=none<br>
Endpoint Descriptor:<br>
bLength 7<br>
bDescriptorType 5<br>
bEndpointAddress 0x81 EP 1 IN<br>
bmAttributes 3<br>
Transfer Type Interrupt<br>
Synch Type None<br>
Usage Type Data<br>
wMaxPacketSize 0x0040 1x 64 bytes<br>
bInterval 20<br>
Endpoint Descriptor:<br>
bLength 7<br>
bDescriptorType 5<br>
bEndpointAddress 0x01 EP 1 OUT<br>
bmAttributes 3<br>
Transfer Type Interrupt<br>
Synch Type None<br>
Usage Type Data<br>
wMaxPacketSize 0x0040 1x 64 bytes<br>
bInterval 10<br>
Device Status: 0x0002<br>
(Bus Powered)<br>
Remote Wakeup Enabled<br>
<br>
joavma01:/usr/local/ups/bin # ./usbhid-ups -DDDDD -u root -a apc1000<br>
<div class="im">Network UPS Tools - Generic HID driver 0.37 (2.6.5)<br>
USB communication driver 0.31<br>
0.000000 send_to_all: SETINFO driver.parameter.port "auto"<br>
</div> 0.000028 send_to_all: SETINFO driver.parameter.vendorid "051d"<br>
0.000047 debug level is '5'<br>
0.000414 upsdrv_initups...<br>
1.022258 Checking device (1D6B/0002) (001/001)<br>
1.022346 - VendorID: 1d6b<br>
1.022351 - ProductID: 0002<br>
1.022355 - Manufacturer: Linux 2.6.37.1-1.2-default ehci_hcd<br>
1.022358 - Product: EHCI Host Controller<br>
1.022361 - Serial Number: 0000:02:03.0<br>
1.022364 - Bus: 001<br>
1.022367 Trying to match device<br>
1.022382 Device does not match - skipping<br>
1.022393 Checking device (1D6B/0001) (002/001)<br>
1.022431 - VendorID: 1d6b<br>
1.022435 - ProductID: 0001<br>
1.022438 - Manufacturer: Linux 2.6.37.1-1.2-default uhci_hcd<br>
1.022442 - Product: UHCI Host Controller<br>
1.022445 - Serial Number: 0000:02:02.0<br>
1.022448 - Bus: 002<br>
1.022451 Trying to match device<br>
1.022455 Device does not match - skipping<br>
1.022462 Checking device (051D/0003) (002/002)<br>
1.059268 - VendorID: 051d<br>
1.059277 - ProductID: 0003<br>
1.059281 - Manufacturer: American Power Conversion<br>
1.059284 - Product: Smart-UPS 1000 FW:UPS 08.3 / ID=18<br>
1.059287 - Serial Number: AS1235120308<br>
1.059290 - Bus: 002<br>
1.059293 Trying to match device<br>
1.059305 interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid of this message)<br>
1.059333 Device matches<br>
1.065694 HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 01 22 03 02<br>
1.065704 i=0, extra[i]=09, extra[i+1]=21<br>
1.065709 HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 01 22 03 02<br>
1.065712 HID descriptor length 515<br>
1.068713 Unable to get Report descriptor: Broken pipe<br></blockquote><div><br>... confirmed here!<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1.068735 Checking device (0E0F/0002) (002/003)<br>
1.079553 - VendorID: 0e0f<br>
1.079562 - ProductID: 0002<br>
1.079565 - Manufacturer: unknown<br>
1.079568 - Product: VMware Virtual USB Hub<br>
1.079571 - Serial Number: unknown<br>
1.079574 - Bus: 002<br>
1.079577 Trying to match device<br>
1.079582 Device does not match - skipping<br>
1.079592 No appropriate HID device found<br>
1.079599 No matching HID UPS found<br>
<br>
Regards<br>
<br>
- Simon<br>
<br>
From: Arnaud Quette [mailto:<a href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</a>]<br>
Sent: Thursday, 29 November 2012 4:10 AM<br>
To: Simon Attwell<br>
Cc: <a href="mailto:nut-upsuser@lists.alioth.debian.org">nut-upsuser@lists.alioth.debian.org</a><br>
Subject: Re: [Nut-upsuser] Issues with USB connectivity<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
2012/11/28 Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>><br>
On Nov 27, 2012, at 9:43 PM, Simon Attwell wrote:<br>
<br>
> 0.026636 Checking device (051D/0003) (002/002)<br>
> 1.037912 - VendorID: 051d<br>
> 1.037931 - ProductID: 0003<br>
Unfortunately, this looks like an APC 5G model. NUT v2.6.5 already has one hack to work around their broken HID implementation (the 'interrupt pipe disabled' message), but I am not sure that we have uncovered all of the quirks yet.<br>
</div></div></blockquote><div> <br>as Charles mentioned here, we may have uncovered a new noncompliance to USB!<br><br>what would really help is:<br>- an USB sniff (using Wireshark) of the communication with APC software.<br>
Please, either point it as an URL (on your website or anything else) or compressed (the whole mail must be under 40Kb!)<br>- a test with the latest apcupsd version (development if possible).<br><br>Note that you may also contact APC:<br>
the mentioned usbhid-ups quirk was an official request from APC (the only one to be precise), so quite probably due to a user support request...<br><br>cheers,<br>Arnaud<br></div></div>-- <br>Engineering Linux/Unix Expert - Opensource Solutions Lead - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>
NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br>--<br>Conseiller Municipal - Saint Bernard du Touvet<br>