Cian Davis
2008-Feb-04 21:35 UTC
[Nut-upsuser] nut with Belkin "Active Battery Backup" UPS (BU30 series)
Hi, I bought a Belkin Active Battery Backup UPS (http://www.belkin.com/uk/activebattery/) yesterday with a USB port and hoped it would work with nut. The device will show up in /proc/bus/usb/devices as a Cypress Semiconductor USB to Serial. It creates /dev/hiddev0 (and this disappears when the UPS is unplugged). I've tried using belkin, belkinunv, usbhid-ups and megatec_usb. I've tried both the 2.0.5 version in apt for Ubuntu fesity and compiling my own 2.2. All report not being able to find the driver. Relevant bit of /proc/bus/usb/devices included below and the result of usbhid-ups -DDDD -a belkin -u root -x explore -x vendorid=0665 -x productid=5161 (/dev/hiddev0 seems to disappear after I run this). Regards, Cian Davis /proc/bus/usb/devices T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0665 ProdID=5161 Rev= 0.02 S: Manufacturer=Cypress Semiconductor S: Product=USB to Serial C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=32ms usbhid-ups Checking device (0665/5161) (002/006) - VendorID: 0665 - ProductID: 5161 - Manufacturer: Cypress Semiconductor - Product: USB to Serial - Serial Number: unknown - Bus: 002 Trying to match device Device matches HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 1b 00 i=0, extra[i]=09, extra[i+1]=21 HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 1b 00 HID descriptor length 27 Report Descriptor size = 27 Report Descriptor: (27 bytes) => 06 00 ff 09 01 a1 01 09 02 15 00 26 ff 00 75 08 95 08 81 82 09 02 95 08 91 82 c0 Using subdriver: EXPLORE HID 0.1 Entering libusb_get_report Report[get]: (2 bytes) => 01 00 Path: ff000001.ff000002, Type: Input, ReportID: 0x00, Offset: 0, Size: 8, Value: 0.000000 Report[buf]: (2 bytes) => 01 00 Path: ff000001.ff000002, Type: Output, ReportID: 0x00, Offset: 0, Size: 8, Value: 0.000000 Report descriptor retrieved (Reportlen = 27) Found HID device Detected a UPS: Cypress Semiconductor/USB to Serial upsdrv_initinfo... upsdrv_updateinfo... Quick update... dstate_init: sock /var/state/ups/usbhid-ups-belkin open on fd 5 upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Quick update... upsdrv_updateinfo... Full update... upsdrv_updateinfo... Repeats ad infinitum
Luis Angel CofiƱo
2008-Feb-16 17:56 UTC
[Nut-upsuser] nut with Belkin "Active Battery Backup" UPS (BU30 series)
Hi: I bought a Belkin Active Battery Backup UPS too. I installed included WinPower software too, with a partial success: The agent starts and does his work, this is, it watches in background and starts a shutdown when power fails for ten minutes. But the GUI fails to start because different Java problems. And without this Java interface, any action the agent will do can't be monitored, and setup is not possible. I do not like WinPower. Nut is a best option. but I cannot make it working with nut with any drivers (belkin, belkinunv, usbhid-ups, megatec... well, I tried most of them without any success). Like davisc in another post, I've tried version 2.0.5 and 2.2.0 compiled in an updated Gentoo Linux system. The ouput of "usbhid-ups -DDDD -a belkin -u root -x explore -x vendorid=0665 -x productid=5161" is like davisc's one, or very closed. Like him, /dev/hiddev0 dissapears after run it, too. Output follows: [504] # /lib/nut/usbhid-ups -DDDD -a belkin -u root -x explore -x vendorid=0665 -x productid=5161 > ejecucion.txt debug level is '4' Checking device (03F0/1016) (010/003) - VendorID: 03f0 - ProductID: 1016 - Manufacturer: unknown - Product: unknown - Serial Number: unknown - Bus: 010 Trying to match device Device does not match - skipping Checking device (0000/0000) (010/001) - VendorID: 0000 - ProductID: 0000 - Manufacturer: Linux 2.6.22-kal uhci_hcd - Product: UHCI Host Controller - Serial Number: 0000:00:0b.1 - Bus: 010 Trying to match device Device does not match - skipping Checking device (0665/5161) (008/009) - VendorID: 0665 - ProductID: 5161 - Manufacturer: Cypress Semiconductor - Product: USB to Serial - Serial Number: unknown - Bus: 008 Trying to match device Device matches HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 1b 00 i=0, extra[i]=09, extra[i+1]=21 HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 1b 00 HID descriptor retrieved (Reportlen = 27) Report descriptor retrieved (Reportlen = 27) Found HID device Report Descriptor size = 27 Report Descriptor: (27 bytes) => 06 00 ff 09 01 a1 01 09 02 15 00 26 ff 00 75 08 95 08 81 82 09 02 95 08 91 82 c0 Detected a UPS: Cypress Semiconductor/USB to Serial Using subdriver: EXPLORE HID 0.1 parsing ff000001 parsing ff000002 Path depth = 2 0: Usage(ff000001) 1: Usage(ff000002) Can't find object ff000001.ff000002 Path: ff000001.ff000002, Type: Input, ReportID: 0x00, Offset: 0, Size: 8 parsing ff000001 parsing ff000002 Path depth = 2 0: Usage(ff000001) 1: Usage(ff000002) Can't find object ff000001.ff000002 Path: ff000001.ff000002, Type: Output, ReportID: 0x00, Offset: 0, Size: 8 upsdrv_updateinfo... dstate_init: sock /var/lib/nut/usbhid-ups-belkin open on fd 5 upsdrv_updateinfo... Waiting for notifications... (Output stucks here... and I pressed Ctrl-C) Signal 2: exiting Closing device Ideas, anyone? --- Luis Angel Cofi?o nut at lacofi.org Solo para sus ojos :-)
Alexander I. Gordeev
2008-Feb-17 13:12 UTC
[Nut-upsuser] nut with Belkin "Active Battery Backup" UPS (BU30 series)
On Sat, 16 Feb 2008 22:50:40 +0300, Luis Angel Cofi?o <nut at lacofi.org> wrote:> Uh... oh... AH!!! > > Oh, I feel so stupid!. :_) > > Agent from WinPower was blocking the results from NUT, I think (?). I > uninstalled WinPower completely, and then I tried again megatec_usb as > suggested: > > root at JEANETTE.ES ~ [ 7,3MB 13.48-1x 2.53d | 2/189 ] > [507] # /etc/init.d/upsd start > * Starting UPS drivers ... > Network UPS Tools - UPS driver controller 2.2.0-exportado > Network UPS Tools 2.2.0-exportado - Megatec protocol driver 1.5.4 > [megatec_usb] > Carlos Rodrigues (c) 2003-2007 > > Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] > > Megatec protocol UPS detected. [ ok ] > * Starting upsd ... > Network UPS Tools upsd 2.2.0-exportado > listening on 0.0.0.0 port 3493 > Connected to UPS [belkin]: megatec_usb-belkin > > root at JEANETTE.ES ~ [ 7,3MB 13.48-1x 2.53d | 2/198 ] > [513] # upsc belkin at localhost > battery.charge: 97.5 > battery.voltage: 13.60 > battery.voltage.nominal: 12.0 > driver.name: megatec_usb > driver.parameter.pollinterval: 2 > driver.parameter.port: /dev/hiddev0 > driver.version: 2.2.0-exportado > driver.version.internal: 1.5.4 > input.frequency: 50.1 > input.voltage: 231.3 > input.voltage.fault: 231.3 > input.voltage.maximum: 231.3 > input.voltage.minimum: 228.9 > output.voltage: 231.3 > output.voltage.nominal: 230.0 > ups.beeper.status: enabled > ups.delay.shutdown: 0 > ups.delay.start: 2 > ups.load: 26.0 > ups.mfr: unknown > ups.model: unknown > ups.serial: unknown > ups.status: OL > ups.temperature: 25.0 > > Wow!. Then, I started upsdmon with full success, too. > > And then, I've done a working setup of MRTG Statistics with graphics over > Apache following the tutorial from tuxian on > http://forums.gentoo.org/viewtopic-t-364149.html > > Well, I can confirm that Belkin Active Battery Backup (800 VA 480 Watts) is > working with NUT and megatec_usb driver. > > Thank you very much, Alexander. :-) >You are welcome :) What is the exact model name? I'll add it to the compatibility list. -- Alexander