Discussion:
[Nut-upsuser] multiple usb apc smart ups with nut?
Jelle de Jong
2009-12-17 19:23:45 UTC
Permalink
Hello everybody,

I got tree UPS devices connected to a Debian server, and i am
searching for a way to configure them.

The server power-cord is only connected to one of the ups devices, and
should monitor the other ups systems to sent email status.

I got a HP R3000XR UPS with has a RS232 communication port that I have
working perfectly.

Then I have two APC SmartUPS 750V devices that are connected with USB,
but I don't know how to setup the nut configuration to deal with both
the devices.

This is my dmesg output:

Dec 14 19:36:39 sammy kernel: [ 2.221527] usb 1-3: Product:
Smart-UPS 750 RM FW:668.18.I USB FW:7.4
Dec 14 19:36:39 sammy kernel: [ 3.715782] generic-usb
0003:051D:0002.0001: hiddev96,hidraw0: USB HID v1.10 Device [American
Power Conversion Smart-UPS 750 RM FW:668.18.I USB FW:7.4] on
usb-0000:00:12.0-3/input0

Dec 17 12:25:02 sammy kernel: [233359.594133] usb 3-1: Product:
Smart-UPS 750 RM FW:619.3.I USB FW:8.1
Dec 17 12:25:03 sammy kernel: [233360.931249] generic-usb
0003:051D:0002.0002: hiddev97,hidraw1: USB HID v1.10 Device [American
Power Conversion Smart-UPS 750 RM FW:619.3.I USB FW:8.1] on
usb-0000:00:12.1-1/input0

Could somebody help me with some configuration snippet to get this
working?

Thanks in advance,

Jelle de Jong
Jelle de Jong
2009-12-17 20:09:56 UTC
Permalink
Post by Jelle de Jong
Hello everybody,
I got tree UPS devices connected to a Debian server, and i am
searching for a way to configure them.
The server power-cord is only connected to one of the ups devices, and
should monitor the other ups systems to sent email status.
I got a HP R3000XR UPS with has a RS232 communication port that I have
working perfectly.
Then I have two APC SmartUPS 750V devices that are connected with USB,
but I don't know how to setup the nut configuration to deal with both
the devices.
Smart-UPS 750 RM FW:668.18.I USB FW:7.4
Dec 14 19:36:39 sammy kernel: [ 3.715782] generic-usb
0003:051D:0002.0001: hiddev96,hidraw0: USB HID v1.10 Device [American
Power Conversion Smart-UPS 750 RM FW:668.18.I USB FW:7.4] on
usb-0000:00:12.0-3/input0
Smart-UPS 750 RM FW:619.3.I USB FW:8.1
Dec 17 12:25:03 sammy kernel: [233360.931249] generic-usb
0003:051D:0002.0002: hiddev97,hidraw1: USB HID v1.10 Device [American
Power Conversion Smart-UPS 750 RM FW:619.3.I USB FW:8.1] on
usb-0000:00:12.1-1/input0
Could somebody help me with some configuration snippet to get this
working?
As an flow up: I read the usbhid-ups man page, and I am using the
setup described in the attachment, it seems usbhid-ups is not
detecting the serial numbers. Any idea's?

Thanks in advance,

Kind regards,

Jelle de Jong

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nut-smartups-debug01.txt
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20091217/8902f75c/attachment.txt>
Arjen de Korte
2009-12-17 20:25:20 UTC
Permalink
Post by Jelle de Jong
As an flow up: I read the usbhid-ups man page, and I am using the
setup described in the attachment, it seems usbhid-ups is not
detecting the serial numbers. Any idea's?
This looks like a permissions problem. Try running the drivers as root
in debug mode:

/path/to/usbhid-ups -u root -DD -a apcup

If this works, chances are that you have not setup udev properly.

Best regards, Arjen
--
Please keep list traffic on the list
Arjen de Korte
2009-12-17 20:17:58 UTC
Permalink
Post by Jelle de Jong
Could somebody help me with some configuration snippet to get this
working?
[apc1]
driver = usbhid-ups
port = auto
serial = "12345678"

[apc2]
driver = usbhid-ups
port = auto
serial = "12345678"

Your UPS devices must be uniquely identified through the 'regex'
expressions you can find in 'man 8 usbhid-ups'. Assuming these are
more or less identical units, your only hope is probably the serial
number that is reported. You can find these serial numbers through
'lsusb -v'.

Best regards, Arjen
--
Please keep list traffic on the list
Continue reading on narkive:
Search results for '[Nut-upsuser] multiple usb apc smart ups with nut?' (Questions and Answers)
421
replies
what can i use as a electricity alternative?
started 2013-07-30 10:54:08 UTC
alternative fuel vehicles
Loading...