[Nut-upsuser] Multi UPS on Debian

chad chad at navvo.com
Wed Aug 3 15:27:09 UTC 2011


arjen, 

> The recommended way to do use multiple USB devices, is to match the  
> serial number of the UPS. This will make sure that if you plug the  
> devices in a different port, the upsnames don't change. Check if the  
> serial number is reported by the devices if you run the driver with  
> the -DD option:

i have a similar situation with three ups's also.  two of them are the same, yet
on different bus's and then a third on the same bus.  the third gives a serial
number and the other two do not.

i'm trying to match the serial number to try and get around the driver seeing
them as only one and then getting the errors in the logs and the data stale
readings.

could you provide what the preferred method is for putting the serial number in
ups.conf?

lsusb -v -

Bus 003 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power
Supply
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x051d American Power Conversion
  idProduct          0x0002 Uninterruptible Power Supply
  bcdDevice            1.06
  iManufacturer           3 American Power Conversion
  iProduct                1 Back-UPS RS 1500 FW:8.g9 .D USB FW:g9 
  iSerial                 2 JB0531034179


ups.conf - 

[sam]
        driver = usbhid-ups
        port = auto
        serial = 2 JB0531034179

# upsdrvctl start sam
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
No matching HID UPS found
Driver failed to start (exit status=1)

version - 2.4.3-1ubuntu5

thank you
chad





More information about the Nut-upsuser mailing list