PC使用Ubuntu系统,与路由器开发板之间用USB转串口线连接。
先确认Ubuntu对USB转串口设备的支持。
1、# lsmod | grep usbserial
如果有usbserial,说明系统支持USB转串口。
[email protected]:~$ lsmod |grep usbserialusbserial 39125 3 ftdi_sio
2、插上USB转串口,在终端输入命令#dmesg | grep ttyUSB0,如果出现连接成功信息,则说明ubuntu系统已经识别该设备了。
[email protected]:~$ dmesg | grep tty[ 0.000000] console [tty0] enabled[ 1.854936] 0000:00:03.3: ttyS4 at I/O 0x1830 (irq = 17, base_baud = 115200) is a 16550A[ 920.550979] usb 6-1: FTDI USB Serial Device converter now attached to ttyUSB0
串口通信软件我们使用minicom,一款linux系统下的串口通信软件,全键盘操作,用用就习惯了。
minicom的安装配置可以参考这篇:ubuntu下的usb转串口的使用。
时间: 2024-08-24 00:37:28