Kostas Oikonomou
2011-Aug-25 12:28 UTC
[Nut-upsuser] nut 2.6.1 on OpenSolaris/OpenIndiana doesn't find Tripp-Lite ECO550 UPS
Hello, 1) On OpenIndiana 151, I configured nut 2.6.1 as configure --prefix=/opt/nut/2.6.1 --with-cgi --with-hal --with-user=ups --with-group=nut CC=cc The result is -e Configuration summary: =====================build serial drivers: yes build USB drivers: yes build SNMP drivers: yes build neon based XML driver: yes build Powerman PDU client driver: no enable SSL development code: yes enable libwrap (tcp-wrappers) support: yes build CGI programs: yes enable HAL support: yes build and install documentation: no build and install the development files: no 2) After installation, I did mkdir -p /var/state/ups chmod 0770 /var/state/ups chown root:nut /var/state/ups 3) My /opt/nut/2.6.1/etc/ups.conf file has ... [eco550] driver = usbhid-ups port = auto desc = "wiley's ups" 4) I verify that the UPS is connected to the USB port: /usr/sbin/cfgadm -v ... usb5/2 connected configured ok Mfg: Tripp Lite Product: TRIPP LITE UPS NConfigs: 1 Config: 0 <no cfg str descr> 5) Nevertheless, NUT doesn't discover the UPS: wiley$ pfexec /opt/nut/2.6.1/bin/usbhid-ups -DDDD -a eco550 -u root Network UPS Tools - Generic HID driver 0.35 (2.6.1) USB communication driver 0.31 0.000000 debug level is '4' 0.000336 upsdrv_initups... 0.042451 Checking device (058F/6366) (/dev/usb/58f.6366/0) 0.045164 - VendorID: 058f 0.045203 - ProductID: 6366 0.045236 - Manufacturer: Generic 0.045268 - Product: Mass Storage Device 0.045299 - Serial Number: 058F63666471 0.045330 - Bus: /dev/usb 0.045361 Trying to match device 0.045399 Device does not match - skipping 0.045446 No appropriate HID device found 0.045486 No matching HID UPS found wiley$ Thanks in advance for any help. Kostas
Charles Lepple
2011-Aug-25 13:29 UTC
[Nut-upsuser] nut 2.6.1 on OpenSolaris/OpenIndiana doesn't find Tripp-Lite ECO550 UPS
On Aug 25, 2011, at 8:28 AM, Kostas Oikonomou <ko at research.att.com> wrote:> wiley$ pfexec /opt/nut/2.6.1/bin/usbhid-ups -DDDD -a eco550 -u root > Network UPS Tools - Generic HID driver 0.35 (2.6.1) > USB communication driver 0.31 > 0.000000 debug level is '4' > 0.000336 upsdrv_initups... > 0.042451 Checking device (058F/6366) (/dev/usb/58f.6366/0) > 0.045164 - VendorID: 058f > 0.045203 - ProductID: 6366 > 0.045236 - Manufacturer: Generic > 0.045268 - Product: Mass Storage Device > 0.045299 - Serial Number: 058F63666471 > 0.045330 - Bus: /dev/usb > 0.045361 Trying to match device > 0.045399 Device does not match - skipping > 0.045446 No appropriate HID device found > 0.045486 No matching HID UPS found > wiley$If this part of the log hasn't been trimmed, that means that libusb is not seeing your UPS. Which version of libusb do you have? IIRC, there is a test app in the libusb-0.1 distribution that prints information from a libusb bus scan (which may be slightly different from what the kernel sees). Can you try compiling and running that? Let us know if you run into trouble finding it. - Charles
Charles Lepple
2011-Aug-25 14:10 UTC
[Nut-upsuser] nut 2.6.1 on OpenSolaris/OpenIndiana doesn't find Tripp-Lite ECO550 UPS
[please keep the list CC'd. Thanks!]> On 08/25/11 09:46 AM, Charles Lepple wrote: >> Do you see the UPS listed in the kernel dmesg output (or >> equivalent)? If so, is it a 'ugen*' or a 'uhid*' node? If it >> is not bound to the ugen driver, libusb might not see it. >> I'm not sure if there's a way to detach it from uhid at >> runtime, so there might be a kernel configuration option to >> fix this.On Aug 25, 2011, at 10:01 AM, Kostas Oikonomou wrote:> Here is the dmesg line (wrapped) > > Aug 24 20:25:33 wiley usba: [ID 349649 kern.info] Tripp Lite RIPP > LITE UPS FW-2408 BHmm, I'm not familiar with the name 'usba' - is that the name of a specific USB bus in OpenSolaris? Might be good to run that libusb test program. Here it is in CVS: http://libusb.cvs.sourceforge.net/viewvc/libusb/libusb/tests/testlibusb.c?revision=1.17&view=markup (click the "as text" link to download a raw C file).