[Nut-upsdev] Cannot connect to APC Smart via USB under FreeBSD

Ilya Evseev ilya.evseev at gmail.com
Sun Sep 26 00:42:40 UTC 2010


   Hi, folks!
There is FreeBSD 7.1, NUT 2.4.1, UPS APC Smart 2200 XL.

NUT is compiled from ports with following options:
---------------------------------------
_OPTIONS_READ=nut-2.4.1_5
WITH_SERIAL=true
WITH_USB=true
WITH_SNMP=true
WITHOUT_NEON=true
WITHOUT_PDU=true
WITHOUT_HAL=true
WITHOUT_IPV6=true
WITHOUT_CGI=true
---------------------------------------

UPS is successfully recognized by OS kernel at boot-time:
---------------------------------------
# grep -i smart /var/run/dmesg.boot
ugen0: <American Power Conversion Smart-UPS 2200 XL FW:690.17.I USB
FW:7.3, class 0/0, rev 1.10/0.06, addr 2> on uhub0
ugen0: <American Power Conversion Smart-UPS 2200 XL FW:690.17.I USB
FW:7.3, class 0/0, rev 1.10/0.06, addr 2> on uhub0[/code]
---------------------------------------

...and at run-time...
---------------------------------------
# usbdevs -v -d
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, product 0x0000(0x0000),
vendor 0x0000(0x0000), rev 1.00
  uhub0
 port 1 addr 2: low speed, self powered, config 1, product
0x0002(0x0002), vendor 0x051d(0x051d), rev 0.06
   ugen0
 port 2 addr 3: low speed, power 100 mA, config 1, product
0x0201(0x0201), vendor 0x062a(0x062a), rev 1.00
   ukbd0
   ums0
Controller /dev/usb1:
...
---------------------------------------

But NUT cannot connect to him:
---------------------------------------
# USB_DEBUG=2 /usr/local/libexec/nut/usbhid-ups -a ups1 -u root -DDD

Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
debug level is '3'
upsdrv_initups...
usb_set_debug: Setting debugging level to 2 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_devices: Found /dev/ugen0 on /dev/usb0
USB error: error sending control message: Input/output error
Unable to get descriptor (-5)
Checking device (051D/0002) (/dev/usb0//dev/ugen0)
USB error: error sending control message: Input/output error
USB error: error sending control message: Input/output error
USB error: error sending control message: Input/output error
- VendorID: 051d
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: /dev/usb0
Trying to match device
Device matches
USB error: could not set alt intf 0/0: Invalid argument
  Couldn't retrieve descriptors
No appropriate HID device found
No matching HID UPS found
---------------------------------------

My configuration:
---------------------------------------
# /usr/local/etc/nut/ups.conf:
[ups1]
        driver = usbhid-ups
        port = auto
        vendorid = 051d   # ...the same error with or without this line...
        desc = "UPS1"
---------------------------------------

Any ideas?

WBR, Ilya



More information about the Nut-upsdev mailing list