最近迷上了Linux,入了一块板。电脑使用win7+ubuntu 双系统,可是调试的时候就麻烦了,ubuntu下写好sd卡镜像,调试的时候还要切换到win7,手上的usb转串口驱动芯片时CH340,于是就想看ubuntu下时候可以安装ch340驱动。 网上搜了一下,还真有,不过时很早的内容了。 因为属于小白,所以就摸着走呗...把ch340 一端插入电脑 输入命令: lsmod | grep usbserial 输出:usbserial 53248 1 ch341 成功发现了设备,识别出时 ch341 是我记错了?? 输入:lsusb 输出一下信息: Bus 002 Device 003: ID 17ef:4810 Lenovo Integrated Webcam [R5U877] Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 002: ID 1a81:1004 Holtek Semiconductor, Inc. Bus 006 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 发现了ch341的一些相关信息 输入命令(查看USB转串口接入状态):dmesg 输出相关信息,部分信息如下: [ 429.184170] usb 6-1: new full-speed USB device number 3 using uhci_hcd [ 429.345937] usb 6-1: New USB device found, idVendor=1a86, idProduct=7523 [ 429.345944] usb 6-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 429.345948] usb 6-1: Product: USB2.0-Ser! [ 429.368123] usbcore: registered new interface driver usbserial [ 429.368396] usbcore: registered new interface driver usbserial_generic [ 429.368875] usbserial: USB Serial support registered for generic [ 429.374125] usbcore: registered new interface driver ch341 [ 429.374143] usbserial: USB Serial support registered for ch341-uart [ 429.374165] ch341 6-1:1.0: ch341-uart converter detected [ 429.386851] usb 6-1: ch341-uart converter now attached to ttyUSB0 ID信息与lsusb检测到的一致,ch341-uart converter now attached to ttyUSB0 成功驱动,端口为ttyUSB0 太惊喜了。免的安装驱动了 下一步,安装串口终端软件,搜到了一个minicom,动手试试: 安装:sudo apt-get install minicom 打印一些信息,输入‘y’。 等待安装成功,然后用sudo minicom -s 设置minicom的端口对应到ttyUSB0(对应使用dmesg命令看到的信息)。 出现配置菜单: