当我将USB接口从我的arduino nano连接到openwrt路由器时,命令lsusb
显示:
Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
但我没有在/dev/tty*
我安装了kmod-usb-serial
。
答案 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