[Nut-upsuser] how do I find the association between a usb port and a /dev entry?

Steve Kelem steve at kelem.net
Fri Feb 23 09:28:08 CET 2007


I looked through the faq, but couldn't find an answer to this.

I'm trying to configure nut-2.0.4-26 on SuSE linux 10.2.

In ups.conf, I have

[myups]
    driver = belkinunv
    port = /dev/undefined
    desc = "Local UPS"

I'm trying to find out what the port should be set to.

lsusb shows:
Bus 001 Device 005: ID 050d:0980 Belkin Components
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x050d Belkin Components
  idProduct          0x0980
  bcdDevice            0.06
  iManufacturer           4
  iProduct               20 UPS
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower               20mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     820
         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     0x0008  1x 8 bytes
        bInterval             248
Device Status:     0x0001
  Self Powered

Thanks for any help you can give,
Steve



More information about the Nut-upsuser mailing list