minicom是一个串口通信工具,就像Windows下的超级终端,可用来与串口设备通信。minicom完全通过键盘实现操作。
install
sudo apt-get install minicom
configuration
1
lsmod | grep usbserial
使用该命令查看系统是否支持usb转串口
2
sudo minicom -s
进入minicom的配置流程
3
+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
选择Serial port setup
4
+-----------------------------------------------------------------------+
| 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? |
+-----------------------------------------------------------------------+
点A配置Serial Device。USB转串口时配置为/dev/ttyUSB0,直接使用串口时配置为/dev/ttyS0
点F配置Hardware Flow Control为No
5
回到第3步界面,选择Save setup as dfl将当前配置保存为默认配置
选择Exit退出配置流程,进入minicom界面
此时minicom已经完成了串口设备的连接。