Daniel Lopes de Carvalho
2012-Nov-21 14:31 UTC
[Nut-upsuser] Powerware 5125 (USB) under Debian Squeeze.
Hi. I'm looking for a way to configure an Eaton Powerware 5125 under Debian Squeeze (amd64) with USB port. Can someone help me? Find attached bellow my settings: # cat /etc/nut/ups.conf ... [ups01] driver = bcmxcp_usb port = /dev/bus/usb/002/003 desc = "Powerware 5125" # ls -la /dev/bus/usb/002/003 crw-rw-r-- 1 root nut 189, 130 Nov 21 11:45 /dev/bus/usb/002/003 # /lib/nut/bcmxcp_usb -DDDDDDDD -a ups01 Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.3) USB communication subdriver 0.18 0.000000 send_to_all: SETINFO driver.parameter.port "/dev/bus/usb/002/003" 0.000044 debug level is '8' 0.289435 device 004 opened successfully 0.290382 send_to_all: SETINFO device.type "ups" 0.290403 send_to_all: SETINFO driver.version "2.4.3" 0.290410 send_to_all: SETINFO driver.version.internal "0.23" 0.290417 send_to_all: SETINFO driver.name "bcmxcp_usb" 0.292362 entering get_answer(31) 3.991792 get_answer: (8 bytes) => a8 81 a4 c5 d8 c9 b0 b2 3.991811 get_answer: wrong header 3.993783 entering get_answer(31) 4.055796 get_answer: (8 bytes) => b9 b4 dc dc dc dc d0 ef 4.055807 get_answer: wrong header 4.057786 entering get_answer(31) 4.119802 get_answer: (8 bytes) => f7 e5 f2 f7 e1 f2 e5 a0 4.119811 get_answer: wrong header 4.121792 entering get_answer(31) 4.199811 get_answer: (8 bytes) => d5 d0 d3 a0 a0 a0 a0 a0 4.199821 get_answer: wrong header 4.201806 entering get_answer(31) 4.519850 get_answer: (4 bytes) => a0 b2 c6 a9 4.519863 get_answer: wrong header 4.519870 Communications with UPS lost: Error executing command 4.519888 Could not communicate with the ups: Resource temporarily unavailable 4.519896 CLOSING Thanks and best regards. Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121121/ae0e281f/attachment.html>
Kjell Claesson
2012-Nov-21 15:15 UTC
[Nut-upsuser] Powerware 5125 (USB) under Debian Squeeze.
On Wednesday 21 November 2012 12.31.41 Daniel Lopes de Carvalho wrote:> Hi. >Hi Daniel,> I'm looking for a way to configure an Eaton Powerware 5125 under Debian > Squeeze (amd64) with USB port. >How old is the ups? I use a 5125 but it has only serial (or snmp). If this usb card is new, it may talk 'usbhid-ups'.> Can someone help me? >So you can try the usbhid-ups driver. You should also upgrade to a more resent version of nut. (Can not remember if the usbhid-ups existed in 2.4.3, think it was called newhidups then and did not support all ups'es. Regards /Kjell
Kjell Claesson
2012-Nov-22 14:48 UTC
[Nut-upsuser] Powerware 5125 (USB) under Debian Squeeze.
On Wednesday 21 November 2012 13.49.35 Daniel Lopes de Carvalho wrote:> Hi Kjell, thanks for your answer. >OK> We bought this UPS in the end of 2011. The model is: Powerware 5125 > Rack-Mount UPS 5000/6000 VA.That is new.> > I tried setting the usbhid-ups, but without success. >OK> [Ups01] > driver = usbhid-ups > port = / dev/bus/usb/002/003 > desc = "Powerware 5125" >Try the bcmxcp_usb and change the ups.conf to: [Ups01] driver = bcmxcp_usb port = auto desc = "Powerware 5125" Run it as: /usr/lib/bcmxcp_usb -DD -a Ups01> 2.295039 Checking device (0592/0002) (002/004) > 2.306139 - VendorID: 0592 > 2.306150 - ProductID: 0002 > 2.306155 - Manufacturer: Powerware > 2.306160 - Product: USB UPS > 2.306164 - Serial Number: unknown > 2.306169 - Bus: 002 > Trying to match device 2.306173 > 2.306180 Device does not match - skipping > 2.306189 Checking device (0592/0002) (002/003) > 2.685186 - VendorID: 0592 > 2.685199 - ProductID: 0002 > 2.685204 - Manufacturer: Powerware > 2.685208 - Product: USB UPS > 2.685213 - Serial Number: GE143A0741 > 2.685218 - Bus: 002The vendor/product id is the same for the bcmxcp_usb capable ups. Looks like it reconnected on the bus as you have two instants of it. /Kjell