我在 Dell 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
有什么线索吗?
答案1
经过一番尝试,我发现 USB 电缆太长了:我使用了一根 5 米长的 USB 电缆,它与打印机配合得很好,但当 UPS 需要进行更多通信时,它就失效了。使用一根 1 米长的电缆 (*) 就没问题了,我可以成功地与 UPS 通信。
(*) 我变得十分疑神疑鬼,还在电缆上加了一个铁氧体磁芯……
答案2
我遇到过类似的问题;USB 连接不稳定。对我来说,重启时 lsusb 甚至没有显示带有原始电缆的设备。拔出并插入设备后,设备确实显示在 lsusb 中,并且还允许我加载驱动程序。
更换电缆也没有用(尝试了另外两根电缆(甚至短于一米)。最后有用的是在中间放置一个 USB 集线器。