G'day,
New toy, came with bundled software which is non-free, so I'm looking at
whether NUT can be convinced to play with the toy.  I've never used NUT
before.
OS name and version: Ubuntu 10.10
exact NUT version: 2.4.3-1ubuntu5
NUT installation method: Ubuntu package nut
exact device name and related information:
PowerShield Centurion 2000
http://powershield.com.au/products/centurion/
just purchased
# lsusb
Bus 001 Device 004: ID 0665:5161 Cypress Semiconductor USB to Serial
# lsusb -v
[attached]
# dmesg | tail
[ 3599.632065] usb 1-1: new low speed USB device using uhci_hcd and address 4
[ 3599.947982] usbcore: registered new interface driver hiddev
[ 3599.998434] generic-usb 0003:1941:8021.0001: hiddev96,hidraw0: USB HID v1.00
Device [HID 1941:8021] on usb-0000:00:1f.2-2/input0
[ 3600.015506] generic-usb 0003:0665:5161.0002: hiddev97,hidraw1: USB HID v1.11
Device [HID 0665:5161] on usb-0000:00:1f.2-1/input0
[ 3600.018920] usbcore: registered new interface driver usbhid
[ 3600.018931] usbhid: USB HID core driver
# /sbin/upsdrvctl start myups
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)
ups.conf:
[myups]
	driver = usbhid-ups
	port = auto
	vendorid = 0665
On the other hand, if I try megatec_usb, and chgrp nut the
/dev/bus/usb/001/004 entry, I get this:
# /sbin/upsdrvctl start myups
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Megatec protocol driver 1.6 (2.4.3)
Serial-over-USB transport layer 0.10
Startup timer elapsed, continuing...
# echo $?
1
#
And then shortly afterward:
ser_get_line: Device detached? (error -1: could not claim interface 0: Device or
resource busy)
Successfully reconnected
... and this repeats periodically.
-- 
James Cameron
http://quozl.linux.org.au/
-------------- next part --------------
Bus 001 Device 004: ID 0665:5161 Cypress Semiconductor USB to Serial
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0665 Cypress Semiconductor
  idProduct          0x5161 USB to Serial
  bcdDevice            0.01
  iManufacturer           3 
  iProduct                1 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    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.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      27
         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              12
Device Status:     0x0000
  (Bus Powered)