在某宝买了一个 USB 转 TTL 模块,芯片型号是 CH340,芯片厂家是南京沁恒微电子股份有限公司。
产品介绍,驱动程序,技术手册和原理图页面位于USB转串口芯片:CH340。
USB to Serial Port Chips
Interface conversion expert
Linux
进入 Linux 系统,将这个 USB 转 TTL 模块插入 USB A 口后自动识别。
dmesg
1 2 3 4 5 6 7 8 9 10 11
$ dmesg -w [ 160.990615] usb 2-6: new full-speed USB device number 4 using xhci_hcd [ 161.139926] usb 2-6: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64 [ 161.139932] usb 2-6: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 161.139934] usb 2-6: Product: USB Serial [ 161.165466] usbcore: registered new interface driver usbserial_generic [ 161.165513] usbserial: USB Serial support registered for generic [ 161.167670] usbcore: registered new interface driver ch341 [ 161.167684] usbserial: USB Serial support registered for ch341-uart [ 161.167703] ch341 2-6:1.0: ch341-uart converter detected [ 161.168611] usb 2-6: ch341-uart converter now attached to ttyUSB0
lsusb
1 2 3 4 5 6 7 8
$ lsusb Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Bus 002 Device 003: ID 0c45:64d2 Microdia Integrated Webcam Bus 002 Device 002: ID 1d57:0008 Xenta 2.4G Wireless Optical Mouse Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub