如何将Arduino nano与QinHeng Electronics HL-340 USB串行适配器连接到OpenWrt?

时间:2015-06-26 15:36:18

标签: arduino 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

1 个答案:

答案 0 :(得分:4)

发布此内容以防其他人有用。答案结果是我需要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