Hi,
I'm trying to get a Powerware 5115 to communicate with the NUT via USB under
Debian Linux and need help.
Here is the output that I see.
co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# /usr/local/ups/bin/upsdrvctl -u root
start
Network UPS Tools - UPS driver controller 2.4.1
Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1)
USB communication subdriver 0.17
Communications with UPS lost: Receive error (Request command): COMMAND: 31
RECONNECT USB DEVICE
Communications with UPS lost: Receive error (Request command): COMMAND: 31
RECONNECT USB DEVICE
Communications with UPS lost: Receive error (Request command): COMMAND: 31
RECONNECT USB DEVICE
Communications with UPS lost: Receive error (Request command): COMMAND: 31
RECONNECT USB DEVICE
Communications with UPS lost: Receive error (Request command): COMMAND: 31
RECONNECT USB DEVICE
Communications with UPS lost: Error executing command
Could not communicate with the ups: Inappropriate ioctl for device
CLOSING
Driver failed to start (exit status=1)
co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# lsusb -s 2:4 -v
Bus 002 Device 004: ID 06da:0002 Phoenixtec Power Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x06da Phoenixtec Power Co., Ltd
idProduct 0x0002
bcdDevice 1.20
iManufacturer 4 Powerware
iProduct 24 Powerware UPS
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
(Missing must-be-set bit!)
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
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)
co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1#
So, I am able to see basic information through lsusb, but I am not able to get
bcmxcp_ups to establish communication with the 5115. Also, I am able to get
LanSafe to communicate with the UPS via USB under WindowsXP and I have tried two
different Powerware 5115 boxes. I have verified the USB cable and the USB port
on the host and they are both operating. I have also tested the host interface
and libusb with custom software layered on libhid (on top of libusb) that
operates with a Powerware 5125 and that operates correctly (of course I
can't use libhid with the 5115).
Here is some additional basic information:
Linux 2.6.25
The distribution is based on Debian 4.1.1-21
The NUT version is 2.4.1
The libusb version is 0.1-4 a.k.a. 0.1.12
Any help that you can provide would be appreciated,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20090921/4a39857a/attachment-0001.htm>
> Hi, >Hi Rich,> I'm trying to get a Powerware 5115 to communicate with the NUT via USB > under Debian Linux and need help. > > Here is the output that I see. > > co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# /usr/local/ups/bin/upsdrvctl -u > root start Network UPS Tools - UPS driver controller 2.4.1 > Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1) > USB communication subdriver 0.17 > Communications with UPS lost: Receive error (Request command): COMMAND: 31 > > RECONNECT USB DEVICEIt looks like it is finding the ups, but can not communicate. Try this. Start only the driver in debug mode. /path/to/bcmxcp_usb -DD -a name -u root Where 'name' is the tag you set in your ups.conf. [pw5115] <-------- this driver=bcmxcp_usb port=auto ..... It should spit out some info from the ups. If it does, you have a permission error. The rest of your info is OK. Should work. So maybe there is some problem with the permission on the /dev/bus/usb/00x/00x that the ups is connected to. From my computer. As you see it is connected to bus 002 device 003. Yours was at 002/004, as I can see. lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Bus 002 Device 003: ID 0592:0002 Powerware Corp. UPS (X-Slot) Bus 002 Device 002: ID 03f0:0601 Hewlett-Packard ScanJet 6300c Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub ls -l /dev/bus/usb/002/003 crw-rw-r-- 1 root nut 189, 130 Sep 21 19:09 /dev/bus/usb/002/003 As I run it under the nut group. /Kjell
Kjell, Thanks for the response.>Try this. Start only the driver in debug mode. >/path/to/bcmxcp_usb -DD -a name -u rootThe response is no different than before.>It should spit out some info from the ups. If it does, you have a >permission error.Here are my permissions -- they look the same as yours. co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# lsusb Bus 008 Device 001: ID 1d6b:0002 Bus 007 Device 005: ID 046b:ff10 American Megatrends, Inc. Bus 007 Device 004: ID 046b:ff01 American Megatrends, Inc. Bus 007 Device 001: ID 1d6b:0002 Bus 002 Device 009: ID 06da:0002 Phoenixtec Power Co., Ltd Bus 002 Device 001: ID 1d6b:0001 Bus 003 Device 001: ID 1d6b:0001 Bus 006 Device 001: ID 1d6b:0001 Bus 005 Device 001: ID 1d6b:0001 Bus 004 Device 003: ID 0463:ffff MGE UPS Systems UPS Bus 004 Device 001: ID 1d6b:0001 Bus 001 Device 001: ID 1d6b:0001 co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# ls -l /dev/bus/usb/002/009 crw-rw-r-- 1 root nut 189, 136 Sep 21 21:42 /dev/bus/usb/002/009 Rich
OK Rich,> Kjell, > > Thanks for the response. > > >Try this. Start only the driver in debug mode. > >/path/to/bcmxcp_usb -DD -a name -u root > > The response is no different than before. >This is strange. The only thing that can produce this is a already running instant of bcmxcp_usb. Check if you have any running bcmxcp process. Did you compile the 2.4.1 from source ? In that case, did you run configure --without-hal.> >It should spit out some info from the ups. If it does, you have a > > >permission error. > > Here are my permissions -- they look the same as yours. > > co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# lsusb > Bus 008 Device 001: ID 1d6b:0002 > Bus 007 Device 005: ID 046b:ff10 American Megatrends, Inc. > Bus 007 Device 004: ID 046b:ff01 American Megatrends, Inc. > Bus 007 Device 001: ID 1d6b:0002 > Bus 002 Device 009: ID 06da:0002 Phoenixtec Power Co., Ltd > Bus 002 Device 001: ID 1d6b:0001 > Bus 003 Device 001: ID 1d6b:0001 > Bus 006 Device 001: ID 1d6b:0001 > Bus 005 Device 001: ID 1d6b:0001 > Bus 004 Device 003: ID 0463:ffff MGE UPS Systems UPS > Bus 004 Device 001: ID 1d6b:0001 > Bus 001 Device 001: ID 1d6b:0001 > co-nh5:/tmp/mnt/projects/pwusb/nut-2.4.1# ls -l /dev/bus/usb/002/009 > crw-rw-r-- 1 root nut 189, 136 Sep 21 21:42 /dev/bus/usb/002/009 >That looks OK. And I suppose the Phoenixtec is the only one giving you trouble ? /Kjell
Hello, any news about this? I have the same ups and the same symptoms: Debian Stable (lenny) Linux 2.6.26-2-686-bigmem Powerware 5115, USB connection tried with nut 2.2.2-6.4 (from lenny) and 2.4.1-3 (from squeeze) yankee:~# /lib/nut/bcmxcp_usb -DDD -a ups -u root Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1) USB communication subdriver 0.17 debug level is '3' Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE Communications with UPS lost: Error executing command Could not communicate with the ups: Inappropriate ioctl for device CLOSING yankee:~# ps axf | grep bcmxcp 27210 pts/0 S+ 0:00 \_ grep bcmxcp yankee:~# lsusb | grep UPS Bus 002 Device 003: ID 06da:0002 Phoenixtec Power Co., Ltd UPS yankee:~# ls -l /dev/bus/usb/002/003 crw-rw-r-- 1 root nut 189, 130 Oct 12 16:40 /dev/bus/usb/002/003 yankee:~# cat /etc/nut/ups.conf [ups] driver = bcmxcp_usb port = auto yankee:~# export USB_DEBUG=3 yankee:~# /lib/nut/bcmxcp_usb -DDD -a ups -u root Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1) USB communication subdriver 0.17 debug level is '3' usb_set_debug: Setting debugging level to 3 (on) usb_os_init: Found USB VFS at /dev/bus/usb usb_os_find_busses: Found 004 usb_os_find_busses: Found 003 usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_devices: Found 005 on 004 usb_os_find_devices: Found 001 on 004 usb_os_find_devices: Found 001 on 003 usb_os_find_devices: Found 005 on 002 skipped 1 class/vendor specific interface descriptors skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 004 on 002 skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 003 on 002 skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 002 on 002 usb_os_find_devices: Found 001 on 002 error obtaining child information: Inappropriate ioctl for device error obtaining child information: Inappropriate ioctl for device error obtaining child information: Inappropriate ioctl for device usb_os_find_devices: Found 003 on 001 skipped 1 class/vendor specific interface descriptors skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Communications with UPS lost: Receive error (Request command): COMMAND: 31 RECONNECT USB DEVICE (repeats n times) Thanks, Joao S Veiga