usb转串口使用的是pl2303芯片,linux2.4以上版本已经自带驱动。
1.安装minicom
Ubuntu中使用 sudo apt-get install minicom 安装即可
2.配置minicom
# minicom -s
Serial port setup[Enter]
+-------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program -: |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-------------------------------------------------------------+
注: 如果没有使用USB转接口,Serial Device要配置为/dev/ttyS0
Save setup as dfl Exit from Minicom
使用USB转串口需要注意:首先要加载USB-serial转换线驱动:modprobe pl2303
查看状态:dmesg | grep pl2303
[ 2788.401258] usb 6-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 6664.718291] usbcore: registered new interface driver pl2303
3.使用minicom传输文件
--------------------------------------------------
# minicom
(Ctrl + a) --> s --> zmodem --> [Okay] -->
+-----------------------------------------+
|No file selected - enter filename: |
|> /home/zxl/ssl/codes/led/lls_led.ko | [Enter]
+-----------------------------------------+