janc at telefonica.net
2014-Dec-04 12:01 UTC
[Nut-upsuser] 06da:0002 Phoenixtec Power Co., Ltd UPS
Hi Charles. I have got this output with driver usbhid-ups ups.conf [Phoenixtec] driver = usbhid-ups vendorid = 06da productid = 0002 port = auto #~ langid_fix=0x0409 desc = "CENER ONLINE 1000VA" # export USB_DEBUG=5 # ./usbhid-ups -a Phoenixtec Network UPS Tools - Generic HID driver 0.37 (2.6.4) USB communication driver 0.32 0.000000 debug level is '3' 0.000557 upsdrv_initups... usb_set_debug: Setting debugging level to 5 (on) usb_os_init: Found USB VFS at /dev/bus/usb usb_os_find_busses: Found 008 usb_os_find_busses: Found 007 usb_os_find_busses: Found 006 usb_os_find_busses: Found 005 usb_os_find_busses: Found 004 usb_os_find_busses: Found 003 usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 003 on 008 skipped 1 class/vendor specific interface descriptors skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 002 on 008 skipped 1 class/vendor specific interface descriptors usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 008 error obtaining child information: Operation not permitted error obtaining child information: Inappropriate ioctl for device error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 007 error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 003 on 006 skipped 1 class/vendor specific interface descriptors skipped 1 class/vendor specific interface descriptors usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 002 on 006 usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 006 error obtaining child information: Operation not permitted error obtaining child information: Operation not permitted error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 005 error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 004 error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 003 error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 002 error obtaining child information: Operation not permitted usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 002 on 001 usb_os_find_devices: couldn't get connect info usb_os_find_devices: Found 001 on 001 error obtaining child information: Operation not permitted error obtaining child information: Operation not permitted 0.286471 Checking device (046D/C049) (008/003) USB error: error sending control message: Operation not permitted USB error: error sending control message: Operation not permitted 0.286550 - VendorID: 046d 0.286573 - ProductID: c049 0.286593 - Manufacturer: unknown 0.286613 - Product: unknown 0.286634 - Serial Number: unknown 0.286654 - Bus: 008 0.286674 Trying to match device 0.286709 Device does not match - skipping 0.286737 Checking device (06DA/0002) (008/002) <<<< THIS is OK 0.313847 - VendorID: 06da 0.313922 - ProductID: 0002 0.313956 - Manufacturer: Phoenixtec Power 0.313979 - Product: USB Cable (V2.00) 0.314005 - Serial Number: unknown 0.314026 - Bus: 008 0.314049 Trying to match device 0.314114 Device matches Check that you have permissions to write to 008/002 and, if you don't, that you set up hotplug (http://linux-hotplug.sourceforge.net/) correctly. USB error: could not claim interface 0: Device or resource busy 0.314179 failed to claim USB device: could not claim interface 0: Device or resource busy 0.314215 detached kernel driver from USB device... 0.321850 HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 01 22 51 00 0.321906 HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 01 22 51 00 0.321934 HID descriptor length 81 0.335851 Report Descriptor size = 81 0.335930 Report Descriptor: (81 bytes) => 05 8c 09 01 a1 01 85 01 09 03 15 00 25 01 0.335977 75 08 95 01 b1 82 85 02 09 02 15 00 25 01 75 01 81 82 75 07 81 83 85 02 09 0.336008 02 75 01 b1 82 75 07 b1 83 85 03 09 04 15 00 26 ff 00 75 08 81 82 85 03 09 0.336038 04 b1 82 85 04 09 05 15 00 26 ff 00 75 08 b1 82 c0 0.336112 Using subdriver: Liebert HID 0.3 0.339848 Report[get]: (2 bytes) => 01 00 0.339928 Path: 008c0001.008c0003, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 0 0.343852 Report[get]: (2 bytes) => 02 00 0.343931 Path: 008c0001.008c0002, Type: Input, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 0.343975 Report[buf]: (2 bytes) => 02 00 0.344002 Path: 008c0001.008c0002, Type: Feature, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 0.347849 Report[get]: (2 bytes) => 03 0c 0.347947 Path: 008c0001.008c0004, Type: Input, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 0.347987 Report[buf]: (2 bytes) => 03 0c 0.348014 Path: 008c0001.008c0004, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 0.351848 Report[get]: (2 bytes) => 04 00 0.351943 Path: 008c0001.008c0005, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 0 0.351996 Report descriptor retrieved (Reportlen = 81) 0.352027 Found HID device 0.352056 Detected a UPS: Phoenixtec Power/USB Cable (V2.00) 0.352145 find_nut_info: unknown info type: load.off.delay 0.352232 find_nut_info: unknown info type: load.on.delay 0.352254 find_nut_info: unknown info type: load.off.delay 0.352280 upsdrv_initinfo... 0.352306 upsdrv_updateinfo... 0.604907 libusb_get_interrupt: Connection timed out 0.605037 Got 0 HID objects... 0.605058 Quick update... Fatal error: unable to create listener socket bind /var/run/nut/usbhid-ups-Phoenixtec failed: Permission denied 0.605270 Exiting. 0.605294 upsdrv_cleanup... ------------------------------------------- I am lost with this usb. Thanks. Regards. -- Jose Angel Navarro Cortes email: janc at telefonica.net web: http://janc.es/ Usuario Linux: #49178 El 14.12.03 19:38:21 > Charles Lepple dijo:> On Dec 3, 2014, at 2:02 PM, janc at telefonica.net wrote: > > > USB error: error sending control message: Invalid or incomplete > > multibyte or wide character > > This is a wild guess, but what about using the option "langid_fix=0x0409"? > > -- > Charles Lepple > clepple at gmail > > >
Charles Lepple
2014-Dec-04 13:22 UTC
[Nut-upsuser] 06da:0002 Phoenixtec Power Co., Ltd UPS
On Dec 4, 2014, at 7:01 AM, janc at telefonica.net wrote:> I have got this output with driver usbhid-ups > > ups.conf > > [Phoenixtec] > driver = usbhid-ups > vendorid = 06da > productid = 0002 > port = auto > #~ langid_fix=0x0409Oh, sorry - I meant for you to try that with blazer_usb. -- Charles Lepple clepple at gmail
janc at telefonica.net
2014-Dec-04 20:19 UTC
[Nut-upsuser] 06da:0002 Phoenixtec Power Co., Ltd UPS
Hi! Charles. I test blazer_usb, but nothing come out from the UPS In my last email, I put a copy of the usbhid-ups output, it is the only one that seems to read some data from the UPS. Regards. -- Jose Angel Navarro Cortes email: janc at telefonica.net web: http://janc.es/ Usuario Linux: #49178 El 14.12.04 08:22:57 > Charles Lepple dijo:> On Dec 4, 2014, at 7:01 AM, janc at telefonica.net wrote: > > > I have got this output with driver usbhid-ups > > > > ups.conf > > > > [Phoenixtec] > > driver = usbhid-ups > > vendorid = 06da > > productid = 0002 > > port = auto > > #~ langid_fix=0x0409 > > Oh, sorry - I meant for you to try that with blazer_usb. > > -- > Charles Lepple > clepple at gmail > > >
Charles Lepple
2014-Dec-05 03:18 UTC
[Nut-upsuser] 06da:0002 Phoenixtec Power Co., Ltd UPS
On Dec 4, 2014, at 7:01 AM, janc at telefonica.net wrote:> 0.339848 Report[get]: (2 bytes) => 01 00 > 0.339928 Path: 008c0001.008c0003, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 0 > 0.343852 Report[get]: (2 bytes) => 02 00 > 0.343931 Path: 008c0001.008c0002, Type: Input, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 > 0.343975 Report[buf]: (2 bytes) => 02 00 > 0.344002 Path: 008c0001.008c0002, Type: Feature, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 > 0.347849 Report[get]: (2 bytes) => 03 0c > 0.347947 Path: 008c0001.008c0004, Type: Input, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 > 0.347987 Report[buf]: (2 bytes) => 03 0c > 0.348014 Path: 008c0001.008c0004, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 > 0.351848 Report[get]: (2 bytes) => 04 00 > 0.351943 Path: 008c0001.008c0005, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 0Hmm, I misread that. I assumed it was just a pair of 8-byte buffers (the way most of the HID USB-to-serial converters are laid out), but "Size: 8" is in bits. The interesting part is that "008c..." is the HID Usage Page for bar code scanners. You can try running usbhid-ups in "explore" mode, as explained here: http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers The driver keeps looping and reading the values, and you can see whether they correspond to various power states (on battery vs on AC, low battery, etc.) -- Charles Lepple clepple at gmail
janc at telefonica.net
2014-Dec-11 10:43 UTC
[Nut-upsuser] 06da:0002 Phoenixtec Power Co., Ltd UPS
Hi! Charles. This is the output with 'explore' # ./usbhid-ups -DDDD -u root -x explore -x vendorid=06da -a CENER_LA900_usb Network UPS Tools - Generic HID driver 0.37 (2.6.4) USB communication driver 0.32 0.000000 debug level is '4' 0.000676 upsdrv_initups... 0.288980 Checking device (06DA/0002) (008/004) 0.316956 - VendorID: 06da 0.317057 - ProductID: 0002 0.317087 - Manufacturer: Phoenixtec Power 0.317113 - Product: USB Cable (V2.00) 0.317142 - Serial Number: unknown 0.317168 - Bus: 008 0.317189 Trying to match device 0.317243 Device matches 0.324987 HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 01 22 51 00 0.325083 i=0, extra[i]=09, extra[i+1]=21 0.325116 HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 01 22 51 00 0.325144 HID descriptor length 81 0.338984 Report Descriptor size = 81 0.339082 Report Descriptor: (81 bytes) => 05 8c 09 01 a1 01 85 01 09 03 15 00 25 01 0.339123 75 08 95 01 b1 82 85 02 09 02 15 00 25 01 75 01 81 82 75 07 81 83 85 02 09 0.339161 02 75 01 b1 82 75 07 b1 83 85 03 09 04 15 00 26 ff 00 75 08 81 82 85 03 09 0.339191 04 b1 82 85 04 09 05 15 00 26 ff 00 75 08 b1 82 c0 0.339253 Using subdriver: EXPLORE HID 0.1 0.339329 Entering libusb_get_report 0.342986 Report[get]: (2 bytes) => 01 00 0.343085 Path: 008c0001.008c0003, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 0 0.343120 Entering libusb_get_report 0.346953 Report[get]: (2 bytes) => 02 00 0.346993 Path: 008c0001.008c0002, Type: Input, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 0.347015 Report[buf]: (2 bytes) => 02 00 0.347036 Path: 008c0001.008c0002, Type: Feature, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 0.347055 Entering libusb_get_report 0.350988 Report[get]: (2 bytes) => 03 0c 0.351102 Path: 008c0001.008c0004, Type: Input, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 0.351138 Report[buf]: (2 bytes) => 03 0c 0.351166 Path: 008c0001.008c0004, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 0.351196 Entering libusb_get_report 0.354990 Report[get]: (2 bytes) => 04 00 0.355104 Path: 008c0001.008c0005, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 0 0.355150 Report descriptor retrieved (Reportlen = 81) 0.355182 Found HID device 0.355210 Detected a UPS: Phoenixtec Power/USB Cable (V2.00) 0.355234 find_nut_info: unknown info type: load.off.delay 0.355256 find_nut_info: unknown info type: load.on.delay 0.355278 find_nut_info: unknown info type: load.off.delay 0.355305 upsdrv_initinfo... 0.355333 upsdrv_updateinfo... 0.607995 libusb_get_interrupt: Connection timed out 0.608075 Got 0 HID objects... 0.608109 Quick update... 0.608182 dstate_init: sock /var/run/nut/usbhid-ups-CENER_LA900_usb open on fd 5 0.608229 upsdrv_updateinfo... 0.859959 libusb_get_interrupt: Connection timed out 0.860036 Got 0 HID objects... 0.860064 Quick update... 2.610049 upsdrv_updateinfo... 2.862002 libusb_get_interrupt: Connection timed out Keeps going the same all the time... Thanks. Regards. -- Jose Angel Navarro Cortes email: janc at telefonica.net web: http://janc.es/ Usuario Linux: #49178 El 14.12.04 22:18:44 > Charles Lepple dijo:> On Dec 4, 2014, at 7:01 AM, janc at telefonica.net wrote: > > > 0.339848 Report[get]: (2 bytes) => 01 00 > > 0.339928 Path: 008c0001.008c0003, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 0 > > 0.343852 Report[get]: (2 bytes) => 02 00 > > 0.343931 Path: 008c0001.008c0002, Type: Input, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 > > 0.343975 Report[buf]: (2 bytes) => 02 00 > > 0.344002 Path: 008c0001.008c0002, Type: Feature, ReportID: 0x02, Offset: 0, Size: 1, Value: 0 > > 0.347849 Report[get]: (2 bytes) => 03 0c > > 0.347947 Path: 008c0001.008c0004, Type: Input, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 > > 0.347987 Report[buf]: (2 bytes) => 03 0c > > 0.348014 Path: 008c0001.008c0004, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 12 > > 0.351848 Report[get]: (2 bytes) => 04 00 > > 0.351943 Path: 008c0001.008c0005, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 0 > > Hmm, I misread that. I assumed it was just a pair of 8-byte buffers (the way most of the HID USB-to-serial converters are laid out), but "Size: 8" is in bits. > > The interesting part is that "008c..." is the HID Usage Page for bar code scanners. > > You can try running usbhid-ups in "explore" mode, as explained here: > > http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers > > The driver keeps looping and reading the values, and you can see whether they correspond to various power states (on battery vs on AC, low battery, etc.) > > -- > Charles Lepple > clepple at gmail > > >