HILL Walter
2020-Mar-07 07:02 UTC
[Nut-upsuser] Power Shield Defender 1200 - The Story Continues
Hi,
Sometime ago [ June 2018 ] I posted a message about getting trying to
get NUT to work with a Power Shield Defender 1200VA UPS. This model
appears in the HCL at https://networkupstools.org/stable-hcl.html
That UPS reported the following when queried using 'lsusb' on an iMac
running macOS [ 10.15 ]
Bus 001 Device 008: ID 0665:5161 Cypress Semiconductor USB to Serial
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0665 Cypress Semiconductor
idProduct 0x5161 USB to Serial
bcdDevice 0.02
iManufacturer 1 INNO TECH
iProduct 2 USB to Serial
iSerial 0
bNumConfigurations 1
I found that the 'device' was unstable in that it constantly was
'connecting' and 'disconnecting' ultimately causing the NUT UPS
monitoring daemon to give up in disgust. I observed this problem on my
iMac [ macOS ], a PC [ Ubuntu ], a Raspberry Pi [ Raspbian ] and on a PC
running Windows 10. It connected and disconnected every couple of
seconds on all OSs mentioned above.
I recently purchased a replacement 1600VA model are receiving assurances
that the newer model is HID compliant. Sure enough it is and 'lsusb' now
reports
HID UPS:
Product ID: 0x5161
Vendor ID: 0x0665
Version: 0.02
Serial Number: HID UPS
Speed: Up to 12 Mb/s
Manufacturer: HID UPS
Location ID: 0x14300000 / 2
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
N.B. the Product ID and Vendor ID are unchanged between the two models
despite the fact that they function and operate quite differently.
The main purpose of this email therefore is to warn any Power Shield
Defender users that there are at least two different sub-types available.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ,-_|\ Walter HILL
/ \ email: hill(at)ieee(dot)org
\_,-._/
v
-------------- 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/20200307/7ef35065/attachment.sig>
Charles Lepple
2020-Mar-07 15:43 UTC
[Nut-upsuser] Power Shield Defender 1200 - The Story Continues [HCL]
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
HILL Walter
2020-Mar-09 01:13 UTC
[Nut-upsuser] Power Shield Defender 1200 - The Story Continues [HCL]
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 EnabledOn 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>