我在戴尔 7010 (i5-3570S) 上使用 Ubuntu 16.04.2 并拥有 EATON 5E 850i (前 MGE)。我已经阅读并尝试了各种指南,包括此处的所有答案:如何使用 USB 连接配置 UPC
运行时upsdrvctl start
,我仍然得到:
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
No matching HID UPS found
Driver failed to start (exit status=1)
一个障碍是重启后 UPS 不再被lsusb
. 我需要手动拔下并重新插入 USB 电缆,然后它才会出现。
lsusb
说:
# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 042: ID 0463:ffff MGE UPS Systems UPS
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -v
说:
# lsusb -v -d 0463:ffff
Bus 003 Device 042: 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 (error)
iProduct 2 (error)
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
有什么线索吗?
经过一番刮擦,发现 USB 电缆太长了:我使用了 5m 的 USB 电缆,它可以很好地与打印机配合使用,但是在这种 UPS 的情况下,当它上面有更多的通信时就会失败。使用 1m 电缆 (*) 工作正常,我可以成功与 UPS 通话。
(*)我完全偏执,还在电缆上添加了一个铁氧体磁芯......
我有类似的问题;USB 连接不稳定。对我来说, lsusb 甚至没有在重新启动时显示带有原始电缆的设备。拔出和插入设备确实使设备显示在 lsusb 中,还让我加载驱动程序。
更换电缆也无济于事(尝试了另外两条电缆(甚至短于一米))。最终的帮助是在两者之间放置了一个 USB 集线器。
另请参阅https://github.com/networkupstools/nut/issues/515。