Ilya Evseev
2010-Sep-26 00:42 UTC
[Nut-upsdev] Cannot connect to APC Smart via USB under FreeBSD
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
Daniel O'Connor
2010-Sep-26 06:31 UTC
[Nut-upsdev] Cannot connect to APC Smart via USB under FreeBSD
On 26/09/2010, at 10:12, Ilya Evseev wrote:> There is FreeBSD 7.1, NUT 2.4.1, UPS APC Smart 2200 XL.I haven't had much with USB UPS comms on FreeBSD before version 8. I thought there was a 'pollonly' option which I used and that helped but I can't see it in the docs now. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
Arjen de Korte
2010-Sep-26 06:42 UTC
[Nut-upsdev] Cannot connect to APC Smart via USB under FreeBSD
Citeren Ilya Evseev <ilya.evseev op gmail.com>:> There is FreeBSD 7.1, NUT 2.4.1, UPS APC Smart 2200 XL.[...]> Any ideas?Maybe this tread provides an answer: http://lists.alioth.debian.org/pipermail/nut-upsuser/2010-September/006220.html Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)
Ilya Evseev
2010-Sep-26 06:46 UTC
[Nut-upsdev] Cannot connect to APC Smart via USB under FreeBSD
Hi again! 2010/9/26 Daniel O'Connor <doconnor at gsoft.com.au>:> > On 26/09/2010, at 10:12, Ilya Evseev wrote: >> There is FreeBSD 7.1, NUT 2.4.1, UPS APC Smart 2200 XL. > > I haven't had much with USB UPS comms on FreeBSD before version 8. > > I thought there was a 'pollonly' option which I used and that helped but I can't see it in the docs now.Stuff in /usr/ports/sysutils/nut/work/ does not contain "pollonly" word. Interesting quote from http://apcupsd.sourceforge.net/manual/manual.html#bsd-usb-configuration> FreeBSD (v5.5, v6.1 and above) > (you will not lose use of USB keyboard and mouse) > Disable: (nothing) > Enable: ugenAnd from /var/db/pkg/apcupsd-3.14.8_1/+DISPLAY> NOTE that for USB cable you must comment out the line > > device uhid # "Human Interface Devices" > > in your kernel configuration file and recompile the kernel. > Your keyboard and mouse will still work.GENERIC kernel has both ugen and uhid enabled, so I'll try to disable uhid, rebuild kernel and reboot. WBR, Ilya