ROS交流群
ROS Group 产品服务
Product Service 开源代码库
Github 官网
Official website 技术交流
Technological exchanges 激光雷达
LIDAR ROS教程
ROS Tourials 深度学习
Deep Learning 机器视觉
Computer Vision
ROS Group 产品服务
Product Service 开源代码库
Github 官网
Official website 技术交流
Technological exchanges 激光雷达
LIDAR ROS教程
ROS Tourials 深度学习
Deep Learning 机器视觉
Computer Vision
解决USB设备不断重新连接问题
-
在使用USB设备的时候有时会发现设备不断重新连接的情况。比如如果看syslog会发现这样的记录
Jun 21 05:36:09 hoperun-developer kernel: [ 6862.683901] usb 1-1.1: New USB device found, idVendor=05a3, idProduct=9230 Jun 21 05:36:09 hoperun-developer kernel: [ 6862.683918] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0 Jun 21 05:36:09 hoperun-developer kernel: [ 6862.683924] usb 1-1.1: Product: USB 2.0 Camera Jun 21 05:36:09 hoperun-developer kernel: [ 6862.683929] usb 1-1.1: Manufacturer: HD Camera Manufacturer Jun 21 05:36:09 hoperun-developer kernel: [ 6862.718478] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (05a3:9230) Jun 21 05:36:09 hoperun-developer kernel: [ 6862.759942] input: USB 2.0 Camera as /devices/platform/soc/soc:hisi_dwc3/ff100000.dwc3/xhci-hcd.1.auto/usb1/1-1/1-1.1/1-1.1:1.0/input/input34 Jun 21 05:36:09 hoperun-developer kernel: [ 6862.770842] hub 1-1:1.0: hub_ext_port_status failed (err = -71) Jun 21 05:36:10 hoperun-developer kernel: [ 6863.707508] usb 1-1.1: USB disconnect, device number 45 Jun 21 05:36:10 hoperun-developer kernel: [ 6863.899217] usb 1-1: reset high-speed USB device number 2 using xhci-hcd Jun 21 05:36:10 hoperun-developer kernel: [ 6864.386790] usb 1-1.1: new high-speed USB device number 46 using xhci-hcd Jun 21 05:36:10 hoperun-developer kernel: [ 6864.559916] usb 1-1.1: New USB device found, idVendor=05a3, idProduct=9230 Jun 21 05:36:10 hoperun-developer kernel: [ 6864.559939] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0 Jun 21 05:36:10 hoperun-developer kernel: [ 6864.559948] usb 1-1.1: Product: USB 2.0 Camera Jun 21 05:36:10 hoperun-developer kernel: [ 6864.559957] usb 1-1.1: Manufacturer: HD Camera Manufacturer Jun 21 05:36:10 hoperun-developer kernel: [ 6864.574552] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (05a3:9230) Jun 21 05:36:11 hoperun-developer kernel: [ 6864.616686] input: USB 2.0 Camera as /devices/platform/soc/soc:hisi_dwc3/ff100000.dwc3/xhci-hcd.1.auto/usb1/1-1/1-1.1/1-1.1:1.0/input/input35 Jun 21 05:36:12 hoperun-developer kernel: [ 6865.819516] usb 1-1.1: USB disconnect, device number 46 Jun 21 05:36:12 hoperun-developer kernel: [ 6866.011230] usb 1-1: reset high-speed USB device number 2 using xhci-hcd Jun 21 05:36:12 hoperun-developer kernel: [ 6866.438866] hub 1-1:1.0: hub_ext_port_status failed (err = -71) Jun 21 05:36:13 hoperun-developer kernel: [ 6866.710782] usb 1-1.1: new high-speed USB device number 47 using xhci-hcd Jun 21 05:36:13 hoperun-developer kernel: [ 6866.883601] usb 1-1.1: New USB device found, idVendor=05a3, idProduct=9230 Jun 21 05:36:13 hoperun-developer kernel: [ 6866.883617] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0 Jun 21 05:36:13 hoperun-developer kernel: [ 6866.883623] usb 1-1.1: Product: USB 2.0 Camera Jun 21 05:36:13 hoperun-developer kernel: [ 6866.883627] usb 1-1.1: Manufacturer: HD Camera Manufacturer Jun 21 05:36:13 hoperun-developer kernel: [ 6866.910450] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (05a3:9230) Jun 21 05:36:13 hoperun-developer kernel: [ 6866.951825] input: USB 2.0 Camera as /devices/platform/soc/soc:hisi_dwc3/ff100000.dwc3/xhci-hcd.1.auto/usb1/1-1/1-1.1/1-1.1:1.0/input/input36 Jun 21 05:36:14 hoperun-developer kernel: [ 6867.739554] usb 1-1.1: USB disconnect, device number 47
这可能是由于USB的不同驱动相互冲突导致的。在编译内核的时候禁用掉不相关的驱动。比如如果你是USB3.0的接口,就禁用掉2.0和1.0的驱动。
然后编译更新内核就可以了。