Arduino nano如何与秦恒电子HL-340 USB串口适配器连接到OpenWrt?

How do I connect Arduino nano with QinHeng Electronics HL-340 USB Serial Adaptor to OpenWrt?

当我将 USB 接口从我的 arduino nano 连接到我的 openwrt 路由器时,命令 lsusb 显示:

Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

但是我在/dev/tty*

中没有得到新的串口设备

我已经安装了kmod-usb-serial

张贴此内容以防对其他人有用。答案原来是我需要 kmod-usb-serial-ch341 内核包:

opkg install kmod-usb-serial-ch341

HL-340 是 CH 340 兼容设备。

安装 ch341 驱动程序后,nano 显示为 /dev/ttyUSB0,默认为 115200 波特。来自 dmesg

[   20.000000] usbcore: registered new interface driver ch341
[   20.000000] usbserial: USB Serial support registered for ch341-uart
[   20.010000] ch341 1-1.2:1.0: ch341-uart converter detected
[   20.040000] usb 1-1.2: ch341-uart converter now attached to ttyUSB0