Ubuntu 22.04 解决CH340 usb转串失败问题

1 ,  发现PC上不能识别USB转串口设备.  用lsusb命令查看可以找到设备

Bus 001 Device 012: ID 1a86:7523 QinHeng Electronics CH340 serial converter

2,说明驱动程序出了问题.

    到网上去找驱动CH341SER_LINUX.ZIP - 南京沁恒微电子股份有限公司

根据readme.txt文件, make后得到ch341.ko

3, 但是,拔插usb后,还是没有 ttyUSB 设备. dmesg 可以看到一下信息

[  721.918560] usb 1-1: USB disconnect, device number 10
[  725.265898] usb 1-1: new full-speed USB device number 11 using xhci_hcd
[  725.416612] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
[  725.416629] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  725.416637] usb 1-1: Product: USB2.0-Serial
[  725.419432] ch341 1-1:1.0: ch341-uart converter detected
[  725.420318] usb 1-1: ch341-uart converter now attached to ttyUSB0
[  726.008084] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input25
[  726.130899] usb 1-1: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[  726.131514] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  726.131528] ch341 1-1:1.0: device disconnected

说明驱动程序被 brltty 占用了.直接移除就成。

sudo apt remove brltty

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值