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