I have an UPS, that claims to be IPPon Back Power Pro 700. I'm trying to
connect it using USB.
lsusb -v says:
Bus 1 Device 3: ID 06da:0003 Phoenixtec Power Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x06da Phoenixtec Power Co., Ltd
idProduct 0x0003
bcdDevice 4.00
iManufacturer 3 OMRON
iProduct 1 USB UPS
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 Devices
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 20
Device Status: 0x0000
(Bus Powered)
megatec_usb -a ippon -DDD says:
Network UPS Tools 2.2.1 - Megatec protocol driver 1.5.9 [megatec_usb]
Carlos Rodrigues (c) 2003-2007
Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c)
2007
debug level is '3'
Checking device (06DA/0003) (1/3)
- VendorID: 06da
- ProductID: 0003
- Manufacturer: OMRON
- Product: USB UPS
- Serial Number: unknown
- Bus: 1
Trying to match device
Device does not match - skipping
No appropriate HID device found
No supported devices found. Please check your device availability with
'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'vendorid' and 'subdriver'
options
specified. Please refer to the man page for details about these options
(man 8 megatec_usb).
Please report your results to the NUT user's mailing list
<nut-upsuser at lists.alioth.debian.org>.
? ????????? ?? Thursday 11 September 2008 09:37:30 ???????? ?????? ???????(?):> I have an UPS, that claims to be IPPon Back Power Pro 700. I'm trying to > connect it using USB. > lsusb -v says: > > Bus 1 Device 3: ID 06da:0003 Phoenixtec Power Co., Ltd > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x06da Phoenixtec Power Co., Ltd > idProduct 0x0003 > bcdDevice 4.00 > iManufacturer 3 OMRON > iProduct 1 USB UPS > 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 Devices > 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 20 > Device Status: 0x0000 > (Bus Powered) > > megatec_usb -a ippon -DDD says: > > Network UPS Tools 2.2.1 - Megatec protocol driver 1.5.9 [megatec_usb] > Carlos Rodrigues (c) 2003-2007 > > Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] > Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) > 2007 > > debug level is '3' > Checking device (06DA/0003) (1/3) > - VendorID: 06da > - ProductID: 0003 > - Manufacturer: OMRON > - Product: USB UPS > - Serial Number: unknown > - Bus: 1 > Trying to match device > Device does not match - skipping > No appropriate HID device found > No supported devices found. Please check your device availability with > 'lsusb' > and make sure you have an up-to-date version of NUT. If this does not help, > try running the driver with at least 'vendorid' and 'subdriver' options > specified. Please refer to the man page for details about these options > (man 8 megatec_usb). > Please report your results to the NUT user's mailing list > <nut-upsuser at lists.alioth.debian.org>. >The best thing you can do is to upgrade to 2.2.2. If this is impossible then just add these lines to the ups.conf: [ippon] ... vendorid = 06da subdriver = agiler -- Alexander
---------- Forwarded message ---------- From: WhiteWind <whitearchey at gmail.com> To: "Alexander I. Gordeev" <lasaine at lvk.cs.msu.su> Date: Sun, 14 Sep 2008 22:12:45 +0800 Subject: Re: [Nut-upsuser] Ippon device does not work On Sat, 13 Sep 2008 17:40:56 +0800, Alexander I. Gordeev <lasaine at lvk.cs.msu.su> wrote:> On Friday 12 September 2008 22:08:09 ???????? ?????? wrote: >> >> When i'm trying to compile v2.2.2 on my system, I got folowing error: >> >> libnuthalmain.a(main-hal.o): In function `main': >> main-hal.c:(.text+0x8f0): undefined reference to `g_timeout_add_seconds' >> collect2: ld returned 1 exit status >> make[1]: *** [hald-addon-usbhid-ups] Error 1 >> make[1]: Leaving directory `/usr/src/nut-2.2.2/drivers' >> make: *** [all-recursive] Error 1 >> > > What is the name of your OS? > I think, this message means that glib library is not properly installed in > your system. Or it is a bug :) > If you don't need hal support you can add --without-hal to the ./configure > options.My OS is Slackware 12.0, glib v1.2.10 glib2 v2.12.12>> When I'm trying to start megatec_usb -a ippon -DDD after adding vendorid >> and subdriver to ups.conf I get the folowing: >> >> Network UPS Tools 2.2.1 - Megatec protocol driver 1.5.9 [megatec_usb] >> Carlos Rodrigues (c) 2003-2007 >> >> Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] >> Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) >> 2007 >> >> debug level is '3' >> Checking device (06DA/0003) (1/3) >> - VendorID: 06da >> - ProductID: 0003 >> - Manufacturer: OMRON >> - Product: USB UPS >> - Serial Number: unknown >> - Bus: 1 >> Trying to match device >> Device matches >> Starting UPS detection process... >> Asking for UPS status [Q1]... >> Q1 => FAILED [timeout] >> Asking for UPS status [Q1]... >> Q1 => FAILED [timeout] >> Asking for UPS status [Q1]... >> Q1 => FAILED [timeout] >> Asking for UPS status [Q1]... >> Q1 => FAILED [timeout] >> Asking for UPS status [Q1]... >> Q1 => FAILED [timeout] >> 5 out of 5 detection attempts failed (minimum failures: 2). >> Megatec protocol UPS not detected. > > So you have to upgrade.Well, it compiles without hal, and I have some changes in `megatec_usb -a ippon -DDD` output: Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb] Carlos Rodrigues (c) 2003-2008 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 debug level is '3' Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Starting UPS detection process... Asking for UPS status [Q1]... ser_get_line: Device detached? (error -110: No error) ================================================== device has been disconnected, try to reconnect =================================================Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Successfully reconnected Q1 => FAILED [timeout] Asking for UPS status [Q1]... ser_get_line: Device detached? (error -110: No error) ================================================== device has been disconnected, try to reconnect =================================================Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Successfully reconnected Q1 => FAILED [timeout] Asking for UPS status [Q1]... ser_get_line: Device detached? (error -110: No error) ================================================== device has been disconnected, try to reconnect =================================================Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Successfully reconnected Q1 => FAILED [timeout] Asking for UPS status [Q1]... ser_get_line: Device detached? (error -110: No error) ================================================== device has been disconnected, try to reconnect =================================================Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Successfully reconnected Q1 => FAILED [timeout] Asking for UPS status [Q1]... ser_get_line: Device detached? (error -110: No error) ================================================== device has been disconnected, try to reconnect =================================================Checking device (06DA/0003) (1/3) - VendorID: 06da - ProductID: 0003 - Manufacturer: OMRON - Product: USB UPS - Serial Number: unknown - Bus: 1 Trying to match device Device matches Successfully reconnected Q1 => FAILED [timeout] 5 out of 5 detection attempts failed (minimum failures: 2). Megatec protocol UPS not detected.