THE GOOD: NUT is able to communicate with my Powerware 5115A over USB using the bcmxcp_usb driver:
ambient.temperature: 38 battery.charge: 99 battery.runtime: 9000 battery.voltage: 27.07 driver.name: bcmxcp_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.2.1 driver.version.internal: 0.13 input.frequency: 50.34 input.voltage: 235 output.current: 0.0 output.frequency: 50.34 output.phases: 1 output.voltage: 235 output.voltage.nominal: 240 ups.firmware: Cont:01.00 Inve:10.05 ups.load: 0.0 ups.model: 51151000A 1000VA ups.power.nominal: 1000 ups.serial: UZ117A0044 ups.status: OL THE BAD: Powerware 5115A support is not included in the latest release (2.2.1). When I try to run `/lib/nut/bcmxcp_usb -a powerware` with the latest debian package installed I see the following error message which has previously been reported on the mailing list in October 2005 and June 2007: Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Error executing command Could not communicate with the ups: Inappropriate ioctl for device THE UGLY: It is possible to create a deb with patched in support for the Powerware 5115A using the following steps: 1. sudo apt-get source nut 2. sudo apt-get build-dep nut 3. wget 'http://svn.debian.org/wsvn/nut/trunk/drivers/nut_usb.c?op=file&rev=1220&sc=1' -O nut_usb.c.new 4. wget 'http://boxster.ghz.cc/projects/nut/browser/trunk/scripts/udev/nut-usbups.rules.in?format=raw' -O nut-usbups.rules.in.new 5. wget 'http://svn.debian.org/wsvn/nut/trunk/drivers/nut_usb.h?op=file&rev=1220&sc=1' -O nut_usb.h.new 6. mkdir nut-2.2.1/debian/patches 7. diff -ruN nut-2.2.1/drivers/nut_usb.c nut_usb.c.new | dpatch patch-template -p > nut-2.2.1/debian/patches/01-nut_usb.c 8. diff -ruN nut-2.2.1/drivers/nut_usb.h nut_usb.h.new | dpatch patch-template -p > nut-2.2.1/debian/patches/03-nut_usb.h 9. diff -ruN nut-2.2.1/scripts/udev/nut-usbups.rules.in nut-usbups.rules.in.new | dpatch patch-template -p > nut-2.2.1/debian/patches/02-nut-usbups.rules.in 10. cd nut-2.2.1/ 11. echo -e '01-nut_usb.c\n02-nut-usbups.rules.in\n03-nut_usb.h' > debian/patches/00list 12. sudo dpkg-buildpackage -tc 13. sudo dpkg -i ../nut_2.2.1-2_i386.deb Thanks for all your hard work! Daniel Burr _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

