Updates on the USB side (sorry, I should have done these before sending
the last list email)...
lsusb:
root@www:/etc/nut# lsusb
Bus 005 Device 004: ID 051d:0003 American Power Conversion UPS
Bus 005 Device 002: ID 0624:0248 Avocent Corp.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 050d:0119 Belkin Components F5U120-PC Dual PS/2 Ports
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@www:/etc/nut# chmod 0666 /dev/bus/usb/005/004
I run the command once, and it fails with:
root@www:/etc/nut# /lib/nut/usbhid-ups -a rack1ups
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Using subdriver: APC HID 0.95
libusb_get_report: error sending control message: Invalid or incomplete
multibyte or wide character
libusb_get_interrupt: error sending control message: Protocol error
But the best part is...after checking the USB device again with lsusb, I
find out that the device has changed!
root@www:/etc/nut# lsusb
Bus 005 Device 006: ID 051d:0003 American Power Conversion UPS
Bus 005 Device 002: ID 0624:0248 Avocent Corp.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 050d:0119 Belkin Components F5U120-PC Dual PS/2 Ports
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
It's now device 006 on bus 005! It seems to change every time I chmod it.
-Zach
On 2/3/2012 10:07 AM, Zach La Celle wrote:
Thank you guys for your responses.
- The Nut version I have installed (from the Ubuntu repositories) is
2.4.3-1ubuntu3.1.
- The OS is Ubuntu server 10.04 LTS x64 with the 2.6.35-std210-amd64
kernel.
- Driver output:
root@www:/etc/nut# /lib/nut/apcsmart -DDDDD -a rack1ups
Network UPS Tools - APC Smart protocol driver 2.03 (2.4.3)
APC command table version 2.1
0.000000 send_to_all: SETINFO driver.parameter.port "/dev/ttyS0"
0.000070 debug level is '5'
0.000712 send_to_all: SETINFO device.type "ups"
0.000725 send_to_all: SETINFO driver.version "2.4.3"
0.000732 send_to_all: SETINFO driver.version.internal "2.03"
0.000739 send_to_all: SETINFO driver.name "apcsmart"
35.029891 Unable to detect an APC Smart protocol UPS on port
/dev/ttyS0
Check the cabling, port name or model name and try again
I'm looking on the NUT website and on Google, but I must be doing
something wrong with the USB driver. Here's the error output:
root@www:/etc/nut# /lib/nut/usbhid-ups -a rack1ups
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Can't claim USB device [051d:0003]: could not detach kernel driver
from interface 0: Operation not permitted
Here's my ups.conf:
[rack1ups]
driver = usbhid-ups
port = auto
# vendor = "APC.*"
vendorid=051d
# product=".*Smart-UPS.*"
productid=0003
desc = "Rack 1 UPS"
If this helps, this is the dmesg output when the USB is plugged in...
[ 4042.800563] usb 5-1: New USB device found, idVendor=051d,
idProduct=0003
[ 4042.800567] usb 5-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 4042.800570] usb 5-1: Product: Smart-UPS 3000 FW:UPS 06.5 / ID=18
[ 4042.800573] usb 5-1: Manufacturer: American Power Conversion
[ 4042.800575] usb 5-1: SerialNumber: ############
[ 4042.833625] generic-usb 0003:051D:0003.0006: hiddev96,hidraw4: USB
HID v1.00 Device [American Power Conversion Smart-UPS 3000 FW:UPS 06.5
/ ID=18] on usb-0000:00:1d.0-1/input0
Thanks!
-Zach
On 2/3/2012 3:44 AM, Arnaud Quette wrote:
Zach,
2012/2/3 Zach La Celle<[email protected]>:
We recently had to replace an old APC SmartUPS 3000 with a newer
3000VA (the
2U one). It has both serial and USB in the back (with an RJ-45 on
the end
of the serial cable).
I can't get the apcsmart driver to connect. I figured it should
work the
exact same as the old UPS, with /dev/ttyS0 as the port (I'm using
the same
port on the server that the last one was plugged into). I even
tried the
USB driver (usbhid-ups) using the port=auto, but it complained about
unsupported UPS.
Any ideas about connecting this new UPS?
apart from the good advice from George (Ross), we need the following
info to be able to help you (both need root privileges):
- the nut version used,
- the operating system, and version, you're running,
- drivers debug output:
$ /path/to/driver -DDDDD -a<devname>
- and for the USB side:
$ lsusb -v -d051d:<productID>
AFAICT, the serial protocol has changed (and is not published nor
reverse engineered), but USB should work (minus a possible missing
supported productID).
cheers,
Arnaud
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser