[Nut-upsuser] Power Shield Defender 1200 - The Story Continues [HCL]

HILL Walter hill at ieee.org
Mon Mar 9 01:13:56 GMT 2020


Hi,

In answer to your question - wDescriptorLength     769

The output of 'lsbusb -v' reports the following for the *newer* Power
Shield Defender:

> Bus 001 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            0
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0         8
>   idVendor           0x0665 Cypress Semiconductor
>   idProduct          0x5161 USB to Serial
>   bcdDevice            0.02
>   iManufacturer           3 HID UPS
>   iProduct                1 HID UPS
>   iSerial                 5 HID UPS
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength       0x003b
>     bNumInterfaces          2
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0xa0
>       (Bus Powered)
>       Remote Wakeup
>     MaxPower              100mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         3 Human Interface Device
>       bInterfaceSubClass      0
>       bInterfaceProtocol      0
>       iInterface              0
>         HID Device Descriptor:
>           bLength                 9
>           bDescriptorType        33
>           bcdHID               1.10
>           bCountryCode            0 Not supported
>           bNumDescriptors         1
>           bDescriptorType        34 Report
>           wDescriptorLength      27
>          Report Descriptors:
>            ** UNAVAILABLE **
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval             255
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         3 Human Interface Device
>       bInterfaceSubClass      0
>       bInterfaceProtocol      0
>       iInterface              0
>         HID Device Descriptor:
>           bLength                 9
>           bDescriptorType        33
>           bcdHID               1.10
>           bCountryCode            0 Not supported
>           bNumDescriptors         1
>           bDescriptorType        34 Report
>           wDescriptorLength     769
>          Report Descriptors:
>            ** UNAVAILABLE **
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x82  EP 2 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval             255
> can't get device qualifier: Resource temporarily unavailable
> can't get debug descriptor: Resource temporarily unavailable
> Device Status:     0x0002
>   (Bus Powered)
>   Remote Wakeup Enabled


On 7/3/20 23:43:05, Charles Lepple wrote:
> On Mar 7, 2020, at 2:02 AM, HILL Walter <hill at ieee.org> wrote:
>>   idVendor           0x0665 Cypress Semiconductor
>>   idProduct          0x5161 USB to Serial
> [...]
>> N.B. the Product ID and Vendor ID are unchanged between the two models
>> despite the fact that they function and operate quite differently.
>>
> Thanks for the information - sorry to hear you are dealing with this sort of "truth-in-labeling" issue on top of the instability of the old model.
>
> Further down in the lsusb output should be some information about the HID interface. A good distinguishing factor between Power Device Class (PDC) HID devices and simpler serial-over-HID devices is the size of the HID descriptor. What does the newer model show for wDescriptorLength? Here's an example for an APC:
>
> Bus 006 Device 002: ID 051d:0003 American Power Conversion UPS
> Device Descriptor:
> [...]
>   bNumConfigurations      1
>   Configuration Descriptor:
> [...]
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         3 Human Interface Device
>       bInterfaceSubClass      0 No Subclass
>       bInterfaceProtocol      0 None
>       iInterface              0 
>         HID Device Descriptor:
>           bLength                 9
>           bDescriptorType        33
>           bcdHID               1.00
>           bCountryCode           33 US
>           bNumDescriptors         1
>           bDescriptorType        34 Report
>           wDescriptorLength     515
>
>

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 ,-_|\  Walter HILL
/     \	email: hill(at)ieee(dot)org
\_,-._/ 
     v  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200309/a5d0197b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200309/a5d0197b/attachment.sig>


More information about the Nut-upsuser mailing list