Linux---关于USB_OTG识别设备报-110错误

USB_oTG 上连接设备时,Linux内核启动信息异常如下:

ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
ci_hdrc ci_hdrc.0: port 1 reset error -110
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
usb usb1-port1: unable to enumerate USB device

 

查linux 错误代码110可知:

ETIMEDOUT

110

Connection timed

是因为连接设备超时。

1. 保证核心板上的USB_OTG_VBUS 连接到5V,否则将不会识别设备;

2. 确定USB_OTG_ID ,若是核心板作为host(主设备),则应接串电阻(如10K)GND

                                       若是核心板作为device(从设备),则该脚应悬空

3. 确保USB的差分数据线DP/DN 的PCB走线合理,否则会导致通讯不稳定或是不能通讯;

4. 确保被连接设备工作正常(如工作电压是否稳定,是否处于正常工作状态下)重点关注RESET 或是 DISABLE 这类使能控制脚位(大概率)。

 

实际情况下,是通过USB接口连接一个龙尚U9300C的4G模块,正常情况下有如下打印信息:

usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1:1.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3

 

 

 

你可能感兴趣的:(Linux)