Manuel Wolfshant
2017-Jun-07 09:47 UTC
[Nut-upsuser] Unable to use nut-2.7.4 with Eaton 5E1500I USB
Hello
I have a remote Dell R310 to which I connected via USB a new UPS,
model Eaton 5E1500I USB. Assuming I interpreted correctly the docs, it
should normally work using the usbhid-ups driver. However, no matter
what I tried, I get an error which you can also is included in the below
paste:
#usbhid-ups -DDDD -u root -x explore -x vendorid="0463" -a eaton
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
0.000000 debug level is '4'
0.000323 upsdrv_initups...
0.000505 Checking device (0463/FFFF) (002/004)
0.001550 - VendorID: 0463
0.001576 - ProductID: ffff
0.001613 - Manufacturer: unknown
0.001634 - Product: unknown
0.001654 - Serial Number: unknown
0.001668 - Bus: 002
0.001673 - Device release number: 0001
0.001679 Trying to match device
0.001721 Device matches
0.001733 failed to claim USB device: could not claim interface
0: Device or resource busy
0.002796 detached kernel driver from USB device...
0.002817 nut_usb_set_altinterface: skipped
usb_set_altinterface(udev, 0)
0.006167 Unable to get HID descriptor (error sending control
message: Broken pipe)
0.006187 HID descriptor length (method 1) -1
0.006194 i=0, extra[i]=09, extra[i+1]=21
0.006203 HID descriptor, method 2: (9 bytes) => 09 21 10 01 21
01 22 25 02
0.006209 HID descriptor length (method 2) 549
0.006215 HID descriptor length 549
0.006729 Unable to get Report descriptor: Broken pipe
I assume it's not a matter of incorrect permissions because I tested as
root and on top of that they seem to be correctly set by udev:
#ls -l /dev/bus/usb/ -R
/dev/bus/usb/002:
total 0
crw-rw-r--. 1 root root 189, 128 Jun 7 11:38 001
crw-rw-r--. 1 root root 189, 129 Jun 1 02:01 002
crw-rw-r--. 1 root dialout 189, 131 Jun 7 11:29 004
[root at belgrade ~]# id nut
uid=57(nut) gid=57(nut) groups=57(nut),18(dialout)
/etc/ups/ups.conf contains:
[eaton]
driver = usbhid-ups
port = auto
If that matters, the OS is a fully updated CentOS 6.9 and this
(latest stable ) version of nut was packaged by me. The problem appears
on any of the USB ports ( well, I tried the 2 in front and one in the
back of the server ).
lsusb -v reports:
# lsusb -v -s 002:004
Bus 002 Device 004: ID 0463:ffff MGE UPS Systems UPS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0463 MGE UPS Systems
idProduct 0xffff UPS
bcdDevice 0.01
iManufacturer 1
iProduct 2
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 20mA
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.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 549
Warning: incomplete report descriptor
Report Descriptor: (length is 9)
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), data=none
Item(Main ): (null), 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 20
Device Status: 0x0001
Self Powered
Does anyone have any idea what should I do to fix this ?
manuel
Charles Lepple
2017-Jun-07 12:40 UTC
[Nut-upsuser] Unable to use nut-2.7.4 with Eaton 5E1500I USB
On Jun 7, 2017, at 5:47 AM, Manuel Wolfshant <wolfy at nobugconsulting.ro> wrote:> > If that matters, the OS is a fully updated CentOS 6.9 and this (latest stable ) version of nut was packaged by me. The problem appears on any of the USB ports ( well, I tried the 2 in front and one in the back of the server ). > > lsusb -v reports:...> wDescriptorLength 549 > Warning: incomplete report descriptor > Report Descriptor: (length is 9) > Item(Main ): (null), data=noneBecause both NUT and lsusb are having trouble retrieving the HID Report Descriptor, I think the problem is at a lower level: probably between the UPS, the kernel, and the USB HCI. The archives have a number of unresolved emails about the 5E and "broken pipe" errors. Probably worth checking with Eaton, too.
Arnaud Quette
2017-Jun-13 14:48 UTC
[Nut-upsuser] Unable to use nut-2.7.4 with Eaton 5E1500I USB
Hi Manuel 2017-06-07 14:40 GMT+02:00 Charles Lepple <clepple at gmail.com>:> On Jun 7, 2017, at 5:47 AM, Manuel Wolfshant <wolfy at nobugconsulting.ro> > wrote: > > > > If that matters, the OS is a fully updated CentOS 6.9 and this > (latest stable ) version of nut was packaged by me. The problem appears on > any of the USB ports ( well, I tried the 2 in front and one in the back of > the server ). > > > > lsusb -v reports: > ... > > wDescriptorLength 549 > > Warning: incomplete report descriptor > > Report Descriptor: (length is 9) > > Item(Main ): (null), data=none > > Because both NUT and lsusb are having trouble retrieving the HID Report > Descriptor, I think the problem is at a lower level: probably between the > UPS, the kernel, and the USB HCI. The archives have a number of unresolved > emails about the 5E and "broken pipe" errors. > > Probably worth checking with Eaton, too. >Charles is right in both the fact that the issue is (or at least seems to be) upstream to NUT, and also that it's worth checking with "Eaton" Could you please tell me your kernel and libusb (0.1) version? Would you also be able to test some github code? We have the libusb-1.0 branch that provides both libusb 1.0 support (interesting to test to see if the problem still happens) along with few other improvements (though these should not help for your issue): https://github.com/networkupstools/nut/tree/libusb-1.0 Don't hesitate if you need more guidance for trying this branch. FYI, I've just made a test with the same unit, on a Debian jessie (kernel 3.16.43-2, libusb 0.1.12-25) both with 2.7.4 and the latest git master, and it works fine: battery.charge: 62 battery.runtime: 2725 battery.type: PbAc device.mfr: EATON device.model: 5E 1500i device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no driver.version: 2.7.4.1 driver.version.data: MGE HID 1.42 driver.version.internal: 0.42 input.voltage: 240.0 outlet.1.status: on outlet.desc: Main Outlet outlet.id: 1 outlet.switchable: no output.frequency: 49.9 output.frequency.nominal: 50 output.voltage: 241.0 output.voltage.nominal: 230 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.firmware: 02.06.0019 ups.load: 0 ups.mfr: EATON ups.model: 5E 1500i ups.power.nominal: 1500 ups.productid: ffff ups.start.battery: yes ups.status: OL ups.timer.shutdown: -1 ups.vendorid: 0463 cheers, Arno -- Eaton Data Center Automation Solutions - Opensource Leader - http://42ity.org NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170613/6d1530e8/attachment.html>