[Nut-upsuser] Unitek Alpha 650 ipE

Andrej Podzimek andrej at podzimek.org
Sun Jul 13 22:03:26 UTC 2008


Hello everyone,

has anyone ever tried to make this device work with Linux and NUT?

This is what udevadm monitor says:

	UEVENT[1215983089.652345] add      /devices/pci0000:00/0000:00:0f.2/usb1/1-1 (usb)
	UEVENT[1215983089.652427] add      /class/usb_endpoint/usbdev1.4_ep00 (usb_endpoint)
	UEVENT[1215983089.657975] add      /devices/pci0000:00/0000:00:0f.2/usb1/1-1/1-1:1.0 (usb)
	UDEV  [1215983089.663928] add      /devices/pci0000:00/0000:00:0f.2/usb1/1-1 (usb)
	UEVENT[1215983089.665007] add      /class/input/input4 (input)
	UDEV  [1215983089.666893] add      /class/usb_endpoint/usbdev1.4_ep00 (usb_endpoint)
	UEVENT[1215983089.687097] add      /class/input/input4/event2 (input)
	UEVENT[1215983089.687426] add      /class/hidraw/hidraw0 (hidraw)
	UEVENT[1215983089.688045] add      /class/usb_endpoint/usbdev1.4_ep81 (usb_endpoint)
	UDEV  [1215983089.688161] add      /class/hidraw/hidraw0 (hidraw)
	UDEV  [1215983089.710476] add      /devices/pci0000:00/0000:00:0f.2/usb1/1-1/1-1:1.0 (usb)
	UDEV  [1215983089.731838] add      /class/usb_endpoint/usbdev1.4_ep81 (usb_endpoint)
	UDEV  [1215983089.750717] add      /class/input/input4 (input)
	UDEV  [1215983089.770017] add      /class/input/input4/event2 (input)

This is what can be found in dmesg:

	usb 1-1: new low speed USB device using ohci_hcd and address 4
	usb 1-1: configuration #1 chosen from 1 choice
	input: Ver 1.0 USB To RS232 Interface (V1.0) BaudRate 2400bps as /class/input/input4
	input,hidraw0: USB HID v1.00 Gamepad [Ver 1.0 USB To RS232 Interface (V1.0) BaudRate 2400bps] on usb-0000:00:0f.2-1

Gamepad...? Sounds like fun.

I tried these drivers:
	megatec - no success, I couldn not find any virtual serial ports being created (like with usbserial).
	megatec_usb - just says „Megatec protocol UPS not detected.“. The corresponding files from /sys/class/input disappear when this driver is invoked...
	usbhid-ups - no fun at all: „No matching HID UPS found“

The NUT version used is 2.2.2 from an ArchLinux package. Kernel version is 2.6.25.10 (Vanilla, not the distro kernel). My distro has an entry for Unitek in udev rules:

	SYSFS{idVendor}=="0f03", SYSFS{idProduct}=="0001", MODE="664", GROUP="nut"

Vendor and product ids correspond to what lsusb sees. The whole output from lsusb -v is attached (lsusb.txt).

Is this device supported? If so, what am I doin wrong? If it is not supported yet, how could I help to make it work with NUT?

Best regards,

Andrej

-------------- next part --------------
Bus 001 Device 004: ID 0f03:0001
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0f03
  idProduct          0x0001
  bcdDevice            0.01
  iManufacturer           1 Ver 1.0
  iProduct                2 USB To RS232 Interface (V1.0) BaudRate 2400bps
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 2400bps
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              5 USB
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      35
          Report Descriptor: (length is 35)
            Item(Global): Usage Page, data= [ 0x01 ] 1
                            Generic Desktop Controls
            Item(Local ): Usage, data= [ 0x05 ] 5
                            Gamepad
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Usage Page, data= [ 0x09 ] 9
                            Buttons
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            Button 1 (Primary)
            Item(Local ): Usage Maximum, data= [ 0x40 ] 64
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Usage Page, data= [ 0x08 ] 8
                            LEDs
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            NumLock
            Item(Local ): Usage Maximum, data= [ 0x40 ] 64
                            Indicator Fast Blink
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      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              10
Device Status:     0x0000
  (Bus Powered)


More information about the Nut-upsuser mailing list