Hello,

I run TP-Link WR2543ND router with openwrt installed. versions:

kernel - 3.8.3-1-eef5f2649dd28f8ed1d4fd9b737acdc7
kmod-hid - 3.8.3-1
libusb-1.0 - 1.0.9-1
libusb-compat - 0.1.4-1
nut-driver-usbhid-ups - 2.6.5-2

I have installed NUT but it can not find the UPS while lsusb can:

root@gw:~# lsusb
Bus 001 Device 003: ID 0463:ffff MGE UPS Systems UPS
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@gw:~# /lib/nut/usbhid-ups -a eaton -D -D -D
Network UPS Tools - Generic HID driver 0.38 (2.6.5)
USB communication driver 0.31
   0.000000     debug level is '3'
   0.008364     upsdrv_initups...
   0.014638     Checking device (1D6B/0002) (001/001)
   0.015489     - VendorID: 1d6b
   0.015626     - ProductID: 0002
   0.015722     - Manufacturer: Linux 3.8.3 ehci_hcd
   0.015819     - Product: EHCI Host Controller
   0.015915     - Serial Number: ehci-platform
   0.016012     - Bus: 001
   0.016101     Trying to match device
   0.016253     Device does not match - skipping
   0.016434     No appropriate HID device found
   0.016554     No matching HID UPS found

according to strace, the files in /dev get opened, it just seems that the
device is not even considered. Is this problem of NUT or maybe libusb?


write(2, "upsdrv_initups...", 17upsdrv_initups...)       = 17
write(2, "\n", 1
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7
open("/sys/bus/usb/devices/1-1/busnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/1-1/devnum", O_RDONLY) = 8
read(8, "3\n", 4096)                    = 2
open("/sys/bus/usb/devices/1-1/speed", O_RDONLY) = 8
read(8, "1.5\n", 4096)                  = 4
open("/sys/bus/usb/devices/1-1/descriptors", O_RDONLY) = 8
read(8, "\22\1\0\2\0\0\0\10c\4\377\377\0\1\1\2\4\6", 18) = 18
open("/sys/bus/usb/devices/usb1/busnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/usb1/devnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/usb1/speed", O_RDONLY) = 8
read(8, "480\n", 4096)                  = 4
open("/sys/bus/usb/devices/usb1/descriptors", O_RDONLY) = 8
read(8, "\22\1\0\2\t\0\1@k\35\2\0\10\3\3\2\1\1", 18) = 18
open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7
open("/sys/bus/usb/devices/1-1/busnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/1-1/devnum", O_RDONLY) = 8
read(8, "3\n", 4096)                    = 2
open("/sys/bus/usb/devices/1-1/speed", O_RDONLY) = 8
read(8, "1.5\n", 4096)                  = 4
open("/sys/bus/usb/devices/1-1/descriptors", O_RDONLY) = 8
read(8, "\22\1\0\2\0\0\0\10c\4\377\377\0\1\1\2\4\6", 18) = 18
open("/sys/bus/usb/devices/usb1/busnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/usb1/devnum", O_RDONLY) = 8
read(8, "1\n", 4096)                    = 2
open("/sys/bus/usb/devices/usb1/speed", O_RDONLY) = 8
read(8, "480\n", 4096)                  = 4
open("/sys/bus/usb/devices/usb1/descriptors", O_RDONLY) = 8
read(8, "\22\1\0\2\t\0\1@k\35\2\0\10\3\3\2\1\1", 18) = 18
open("/sys/bus/usb/devices/usb1/descriptors", O_RDONLY) = 7
read(7, "\22\1\0\2\t\0\1@k\35\2\0\10\3\3\2\1\1", 18) = 18
open("/dev/bus/usb/001/001", O_RDONLY)  = 7
read(7, "\t\2\31\0\1\1\0\340", 8)       = 8
open("/dev/bus/usb/001/001", O_RDONLY)  = 7
read(7, "\t\2\31\0\1\1\0\340\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 25) = 25
open("/sys/bus/usb/devices/1-1/descriptors", O_RDONLY) = 7
read(7, "\22\1\0\2\0\0\0\10c\4\377\377\0\1\1\2\4\6", 18) = 18
open("/dev/bus/usb/001/003", O_RDONLY)  = 7
read(7, "\t\2\"\0\1\1\0\240", 8)        = 8
open("/dev/bus/usb/001/003", O_RDONLY)  = 7
read(7, 
"\t\2\"\0\1\1\0\240\n\t\4\0\0\1\3\0\0\0\t!\20\20!\1\"M\2\7\5\201\3\10"..., 34) 
= 34
open("/dev/bus/usb/001/003", O_RDONLY)  = 7
read(7, "\t\2\"\0\1\1", 6)              = 6
read(7, "", 8)                          = 0
write(2, " ", 1 )                        = 1
write(2, " ", 1 )                        = 1
write(2, " ", 1 )                        = 1
write(2, "0", 10)                        = 1
write(2, ".", 1.)                        = 1
write(2, "0", 10)                        = 1
write(2, "40465", 540465)                    = 5
write(2, "\t", 1        )                       = 1
write(2, "Checking device (1D6B/0002) (001"..., 37Checking device (1D6B/0002) 
(001/001)) = 37

--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to