linux环境中CH348无法识别串口

环境:rocky linux 9, x86-64

驱动:V2.0

场景描述:一台电脑上接了两个CH348设备,每个设备周期性上下电,某次上电之后,一个CH348设备的串口无法被识别,/dev目录下面只有8个串口(预期16个)。


dmesg日志有驱动的错误,日志如下:

[09:52:40] usb 1-1: new high-speed USB device number 44 using xhci_hcd

[09:52:40] usb 1-1: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.37

[09:52:40] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[09:52:40] usb 1-1: Product: USB2.0 To Multi Serial Ports

[09:52:40] usb 1-1: Manufacturer: wch.cn

[09:52:40] usb_ch9344 1-1:1.0: ttyCH9344USB from 8 - 15: ch9344 device attached.

[09:54:19] usb 1-2: USB disconnect, device number 43

[09:54:19] usb_ch9344 1-2:1.0: ch9344 usb device disconnect.

[09:54:30] usb 1-2: new high-speed USB device number 45 using xhci_hcd

[09:54:30] usb 1-2: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.36

[09:54:30] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[09:54:30] usb 1-2: Product: USB2.0 To Multi Serial Ports

[09:54:30] usb 1-2: Manufacturer: wch.cn

[09:54:30] usb_ch9344 1-2:1.0: ttyCH9344USB from 0 - 7: ch9344 device attached.

[09:57:32] usb 1-2: USB disconnect, device number 45

[09:57:32] usb_ch9344 1-2:1.0: ch9344 usb device disconnect.

[09:57:41] usb 1-1: USB disconnect, device number 44

[09:57:41] usb_ch9344 1-1:1.0: ch9344 usb device disconnect.

[09:57:43] usb 1-2: new high-speed USB device number 46 using xhci_hcd

[09:57:43] usb 1-2: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.36

[09:57:43] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[09:57:43] usb 1-2: Product: USB2.0 To Multi Serial Ports

[09:57:43] usb 1-2: Manufacturer: wch.cn

[09:57:43] usb_ch9344 1-2:1.0: ttyCH9344USB from 0 - 7: ch9344 device attached.

[09:57:53] usb 1-1: new high-speed USB device number 47 using xhci_hcd

[09:57:53] usb 1-1: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.37

[09:57:53] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[09:57:53] usb 1-1: Product: USB2.0 To Multi Serial Ports

[09:57:53] usb 1-1: Manufacturer: wch.cn

[09:57:53] usb_ch9344 1-1:1.0: ttyCH9344USB from 8 - 15: ch9344 device attached.

[10:00:41] usb 1-2: USB disconnect, device number 46

[10:00:41] usb_ch9344 1-2:1.0: ch9344 usb device disconnect.

[10:00:52] usb 1-2: new high-speed USB device number 48 using xhci_hcd

[10:00:53] usb 1-2: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.36

[10:00:53] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[10:00:53] usb 1-2: Product: USB2.0 To Multi Serial Ports

[10:00:53] usb 1-2: Manufacturer: wch.cn

[10:00:53] usb_ch9344 1-2:1.0: ttyCH9344USB from 0 - 7: ch9344 device attached.

[10:02:54] usb 1-1: USB disconnect, device number 47

[10:02:54] usb_ch9344 1-1:1.0: ch9344 usb device disconnect.

[10:03:05] usb 1-1: new high-speed USB device number 49 using xhci_hcd

[10:03:05] usb 1-1: New USB device found, idVendor=1a86, idProduct=55d9, bcdDevice= 1.37

[10:03:05] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[10:03:05] usb 1-1: Product: USB2.0 To Multi Serial Ports

[10:03:05] usb 1-1: Manufacturer: wch.cn

[10:03:05] usb_ch9344 1-1:1.0: ttyCH9344USB from 8 - 15: ch9344 device attached.

[10:03:07] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:03:07] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:03:10] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:03:12] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:03:14] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:04:17] usb 1-2: USB disconnect, device number 48

[10:04:17] usb_ch9344 1-2:1.0: ch9344 usb device disconnect.

[10:04:29] usb 1-2: new high-speed USB device number 50 using xhci_hcd

[10:04:34] usb 1-2: device descriptor read/64, error -110

[10:04:50] usb 1-2: device descriptor read/64, error -110

[10:04:51] usb 1-2: new high-speed USB device number 51 using xhci_hcd

[10:04:56] usb 1-2: device descriptor read/64, error -110

[10:05:12] usb 1-2: device descriptor read/64, error -110

[10:05:12] usb usb1-port2: attempt power cycle

[10:05:12] usb 1-2: new high-speed USB device number 52 using xhci_hcd

[10:05:17] usb 1-2: device descriptor read/8, error -110

[10:05:32] usb 1-2: device descriptor read/8, error -110

[10:05:33] usb 1-2: new high-speed USB device number 53 using xhci_hcd

[10:05:38] usb 1-2: device descriptor read/8, error -110

[10:05:53] usb 1-2: device descriptor read/8, error -110

[10:05:54] usb usb1-port2: unable to enumerate USB device

[10:06:43] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:06:46] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:06:46] pl2303 ttyUSB1: error sending break = -32

[10:06:46] pl2303 ttyUSB0: error sending break = -32

[10:07:01] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32

[10:07:01] pl2303 ttyUSB1: pl2303_get_line_request - failed: -32

[10:07:03] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:07:05] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:07:07] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:07:09] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:07:11] usb_ch9344 1-1:1.0: usb_bulk_msg(send) failed, err -110

[10:07:12] pl2303 ttyUSB1: error sending break = -32

[10:07:12] pl2303 ttyUSB0: error sending break = -32


您好,从如上日式显示内容,应该是USB通信不稳定导致。日志中发生了USB设备的连接断线、USB传输失败等行为。

如使用延长线,可更换线材或主机上连接的端口再看下效果,建议先使用短线,带屏蔽等效果更佳的线缆。

此外,留意到日志中USB传输出错时多款芯片均有报错,应该是上层的Hub控制和通讯这里出了问题。


只有登录才能回复,可以选择微信账号登录