Jelle de Jong wrote, on 17-12-09 20:23:
> 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?

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

# dpkg --status nut | grep Version
Version: 2.4.1-3.2



vim /etc/nut/ups.conf
[r3000xr]
    driver = bcmxcp
    port = /dev/ttyS1
    shutdown_delay = 90
    baud_rate = 19200
    desc = "HP R3000XR UPS"

[apcups01]
    driver = usbhid-ups
    port = auto
    vendorid = 051d
    productid = 0002
    serial = AS0938112448
    desc = "APC SmartUPS 750 Unit01"

[apcups02]
    driver = usbhid-ups
    port = auto
    vendorid = 051d
    productid = 0002
    serial = AS0633131988
    desc = "APC SmartUPS 750 Unit02"

# /lib/nut/usbhid-ups -DD -a apcups01
Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
debug level is '2'
upsdrv_initups...
Checking device (1D6B/0001) (007/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 007
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (006/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 006
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (005/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (1D6B/0002) (004/001)
- VendorID: 1d6b
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (051D/0002) (003/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (003/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (1D6B/0002) (002/001)
- VendorID: 1d6b
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (051D/0002) (001/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (001/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found


# lsusb -d 051d:0002 -vvv

Bus 003 Device 002: 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            0.06
  iManufacturer           3 American Power Conversion
  iProduct                1 Smart-UPS 750 RM FW:619.3.I USB FW:8.1
  iSerial                 2 AS0633131988
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration         11 1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower               30mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength    1040
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0006  1x 6 bytes
        bInterval             100
Device Status:     0x0001
  Self Powered

Bus 001 Device 002: 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            0.06
  iManufacturer           3 American Power Conversion
  iProduct                1 Smart-UPS 750 RM FW:668.18.I USB FW:7.4
  iSerial                 2 AS0938112448
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration         11 1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower               30mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength    1064
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0006  1x 6 bytes
        bInterval             100
Device Status:     0x0001
  Self Powered
_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to