USB 串行适配器在环回时输出垃圾

USB 串行适配器在环回时输出垃圾

我见过USB 转串行适配器不起作用,但这不是我的问题。当我插入适配器并启动 minicom 时,什么都没起作用。但是当我短接 Tx/Rx(2 和 3)时,当我输入字符时,它的行为就像我在 VI 或 emacs 中一样;“j”向下移动,“k”向上移动,“i”制表符等。

lsusb 的输出是:

$ lsusb Bus 002 Device 003: ID 8087:07da Intel Corp. Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 064e:8126 Suyin Corp. Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reade$ Controller Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Bus 003 Device 006: ID 214b:7250
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg 的相关输出为:

[14210.926376] usb 3-4: new full-speed USB device number 4 using xhci_hcd [14211.055118] usb 3-4: New USB device found, idVendor=1a86, idProduct=7523 [14211.055124] usb 3-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [14211.055128] usb 3-4: Product: USB2.0-Ser! [14211.055830] ch341 3-4:1.0: ch341-uart converter detected [14211.056589] usb 3-4: ch341-uart converter now attached to ttyUSB0

相关内容