[Nut-upsdev] Socomec sicon Netys 2000 PR ups USb driver for ubuntu
Kovacs Sandor Robert
kovacssupki at yahoo.com
Sun Apr 1 14:48:12 UTC 2012
This is the result of that command:
Bus 003 Device 002: ID 06da:0001 Phoenixtec Power Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x06da Phoenixtec Power Co., Ltd
idProduct 0x0001
bcdDevice 0.01
iManufacturer 3 SOCOMEC SICON UPS
iProduct 1 NETYS UPS
iSerial 2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 30mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 278
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 30
Device Status: 0x0000
(Bus Powered)
But i managed to get some logs when it connected to the UPS here are the results of the (/lib/nut/usbhid-ups -u root -DDDDD -a netys
):
923.706216 Got 0 HID objects...
923.706231 Quick update...
923.706243 Entering libusb_get_report
923.708177 Report[get]: (2 bytes) => 16 05
923.708247 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
923.708324 Unit = 00000000, UnitExp = 0
923.708364 Exponent = 0
923.708391 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x16, Offset: 0, Size: 1, Value: 1
923.708435 hu_find_infoval: found online (value: 1)
923.708460 process_boolean_info: online
923.708488 Report[buf]: (2 bytes) => 16 05
923.708531 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
923.708557 Unit = 00000000, UnitExp = 0
923.708594 Exponent = 0
923.708622 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x16, Offset: 1, Size: 1, Value: 0
923.708662 hu_find_infoval: found !lowbatt (value: 0)
923.708688 process_boolean_info: !lowbatt
923.708719 Report[buf]: (2 bytes) => 16 05
923.708747 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
923.708781 Unit = 00000000, UnitExp = 0
923.708806 Exponent = 0
923.708841 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x16, Offset: 2, Size: 1, Value: 1
923.708868 hu_find_infoval: found chrg (value: 1)
923.708900 process_boolean_info: chrg
923.708927 Report[buf]: (2 bytes) => 16 05
923.708961 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
923.708987 Unit = 00000000, UnitExp = 0
923.709014 Exponent = 0
923.709050 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x16, Offset: 3, Size: 1, Value: 0
923.709081 hu_find_infoval: found !dischrg (value: 0)
923.709120 process_boolean_info: !dischrg
925.457123 upsdrv_updateinfo...
925.708313 libusb_get_interrupt: Connection timed out
925.708387 Got 0 HID objects...
925.708419 Quick update...
925.708450 Entering libusb_get_report
925.710315 Report[get]: (2 bytes) => 16 05
925.710385 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
925.710458 Unit = 00000000, UnitExp = 0
925.710498 Exponent = 0
925.710526 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x16, Offset: 0, Size: 1, Value: 1
925.710577 hu_find_infoval: found online (value: 1)
925.710603 process_boolean_info: online
925.710632 Report[buf]: (2 bytes) => 16 05
925.710657 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
925.710786 Unit = 00000000, UnitExp = 0
925.710811 Exponent = 0
925.710842 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x16, Offset: 1, Size: 1, Value: 0
925.710890 hu_find_infoval: found !lowbatt (value: 0)
925.710916 process_boolean_info: !lowbatt
925.710947 Report[buf]: (2 bytes) => 16 05
925.710976 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
925.711005 Unit = 00000000, UnitExp = 0
925.711035 Exponent = 0
925.711069 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x16, Offset: 2, Size: 1, Value: 1
925.711101 hu_find_infoval: found chrg (value: 1)
925.711133 process_boolean_info: chrg
925.711161 Report[buf]: (2 bytes) => 16 05
925.711189 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
925.711223 Unit = 00000000, UnitExp = 0
925.711261 Exponent = 0
925.711292 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x16, Offset: 3, Size: 1, Value: 0
925.711328 hu_find_infoval: found !dischrg (value: 0)
925.711354 process_boolean_info: !dischrg
927.458916 upsdrv_updateinfo...
927.710422 libusb_get_interrupt: Connection timed out
927.710495 Got 0 HID objects...
927.710527 Full update...
927.710560 Entering libusb_get_report
927.712443 Report[get]: (3 bytes) => 0b 20 e1
927.712513 PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
927.712585 Unit = 00f0d121, UnitExp = 7
927.712626 Exponent = 0
927.712656 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 8, Size: 8, Value: 225
927.712703 Entering libusb_get_report
927.715458 Report[get]: (2 bytes) => 1f e6
927.715527 PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
927.715556 Unit = 00f0d121, UnitExp = 7
927.715584 Exponent = 0
927.715651 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x1f, Offset: 0, Size: 8, Value: 230
927.715685 Entering libusb_get_report
927.718459 Report[get]: (5 bytes) => 15 62 00 00 00
927.718529 PhyMax = 0, PhyMin = 0, LogMax = 100, LogMin = 0
927.718595 Unit = 00000000, UnitExp = 0
927.718633 Exponent = 0
927.718662 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x15, Offset: 0, Size: 8, Value: 98
927.718750 Report[buf]: (5 bytes) => 15 62 00 00 00
927.718779 PhyMax = 0, PhyMin = 0, LogMax = 16777215, LogMin = 0
927.718804 Unit = 00001001, UnitExp = 0
927.718828 Exponent = 0
927.718856 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x15, Offset: 8, Size: 24, Value: 0
927.718913 Entering libusb_get_report
927.721442 Report[get]: (8 bytes) => 01 04 01 64 02 02 01 04
927.721574 PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
927.721608 Unit = 00000000, UnitExp = 0
927.721634 Exponent = 0
927.721666 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x01, Offset: 48, Size: 8, Value: 4
927.728466 Report[buf]: (3 bytes) => 0b 20 e1
927.728535 PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
927.728564 Unit = 00000000, UnitExp = 0
927.728593 Exponent = 0
927.728660 Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 32
927.728695 Entering libusb_get_report
927.731457 Report[get]: (2 bytes) => 16 05
927.731526 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.731554 Unit = 00000000, UnitExp = 0
927.731584 Exponent = 0
927.731650 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x16, Offset: 0, Size: 1, Value: 1
927.731693 hu_find_infoval: found online (value: 1)
927.731718 process_boolean_info: online
927.731747 Report[buf]: (2 bytes) => 16 05
927.731776 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.731801 Unit = 00000000, UnitExp = 0
927.731844 Exponent = 0
927.731871 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x16, Offset: 1, Size: 1, Value: 0
927.731913 hu_find_infoval: found !lowbatt (value: 0)
927.731955 process_boolean_info: !lowbatt
927.731997 Report[buf]: (2 bytes) => 16 05
927.732023 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.732056 Unit = 00000000, UnitExp = 0
927.732080 Exponent = 0
927.732108 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x16, Offset: 2, Size: 1, Value: 1
927.732141 hu_find_infoval: found chrg (value: 1)
927.732169 process_boolean_info: chrg
927.732202 Report[buf]: (2 bytes) => 16 05
927.732228 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.732256 Unit = 00000000, UnitExp = 0
927.732288 Exponent = 0
927.732315 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x16, Offset: 3, Size: 1, Value: 0
927.732345 hu_find_infoval: found !dischrg (value: 0)
927.732372 process_boolean_info: !dischrg
927.732444 Report[buf]: (2 bytes) => 16 05
927.732475 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.732505 Unit = 00000000, UnitExp = 0
927.732536 Exponent = 0
927.732572 Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x16, Offset: 4, Size: 1, Value: 0
927.732604 hu_find_infoval: found !overload (value: 0)
927.732629 process_boolean_info: !overload
927.732661 Report[buf]: (2 bytes) => 16 05
927.732691 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
927.732725 Unit = 00000000, UnitExp = 0
927.732757 Exponent = 0
927.732784 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x16, Offset: 5, Size: 1, Value: 0
927.732814 hu_find_infoval: found !shutdownimm (value: 0)
927.732843 process_boolean_info: !shutdownimm
929.460706 upsdrv_updateinfo...
929.712596 libusb_get_interrupt: Connection timed out
929.712671 Got 0 HID objects...
929.712703 Quick update...
929.712740 Report[buf]: (2 bytes) => 16 05
929.712770 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
929.712796 Unit = 00000000, UnitExp = 0
929.712821 Exponent = 0
929.712893 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x16, Offset: 0, Size: 1, Value: 1
929.712921 hu_find_infoval: found online (value: 1)
929.712962 process_boolean_info: online
929.713005 Report[buf]: (2 bytes) => 16 05
929.713031 PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
929.713083 Unit = 00000000, UnitExp = 0
929.713108 Exponent = 0
929.713148 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x16, Offset: 1, Size: 1, Value: 0
Thanks Alex
________________________________
From: Charles Lepple <clepple at gmail.com>
To: Kovacs Sandor Robert <kovacssupki at yahoo.com>
Cc: NUT Developers List <nut-upsdev at lists.alioth.debian.org>
Sent: Sunday, April 1, 2012 4:56 PM
Subject: Re: [Nut-upsdev] Socomec sicon Netys 2000 PR ups USb driver for ubuntu
On Apr 1, 2012, at 3:08 AM, Kovacs Sandor Robert wrote:
> 0.410836 Unable to get HID descriptor (error sending control message: Timer expired)
> 0.410879 i=0, extra[i]=09, extra[i+1]=21
> 0.410897 HID descriptor, method 2: (9 bytes) => 09 21 11 01 21 01 22 16 01
> 0.410908 HID descriptor length 278
> 0.412850 Unable to get Report descriptor: Timer expired
This sounds like a problem in the UPS firmware. Retrieving the HID descriptors is a standard operation.
Can you list the USB descriptors with lsusb?
You will probably need to run something like "sudo lsusb -vv -d 06DA:0001".
--
Charles Lepple
clepple at gmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120401/1f1121f2/attachment-0001.html>
More information about the Nut-upsdev
mailing list