arduino - 如何将 Arduino nano 与沁恒电子 HL-340 USB 串行适配器连接到 OpenWrt?

标签 arduino openwrt

当我将 USB 接口(interface)从 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

关于arduino - 如何将 Arduino nano 与沁恒电子 HL-340 USB 串行适配器连接到 OpenWrt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31077130/

相关文章:

node.js - 在 mediatek 7688 上守护 nodejs 应用程序

linux - 为嵌入式Linux发行版(openwrt)编译软件

c - OpenWRT 与 NetBeans 7.3.1

c - Arduino C 不进入循环?

c - ESP32直接端口操作

c++ - Arduino 打印在大量打印时失败

c - Openwrt包的Makefile中错误定义宏

github - Mac 操作系统中致命的 : Not a git repository (or any of the parent directories): . git

c++ - 尝试创建一个 if 语句来检查字符串是否包含使用 indexOf 的字符。有点麻烦

makefile - Openwrt : How to add a specific library dependency in new package