minicom 类似于windows下的超级终端。
首次使用,会遇到如下打印消息:
[root@localhost ~]# minicom
minicom: WARNING: configuration file not found, using defaults
Device /dev/modem access failed: No such file or directory.
说明,一没有串口配置文件,二没有选对串口设备。
输入:minicom -s
此时,显示:
………………………………[configuration]……………………………………
…………………… Filename and paths …………………………
…………………… File transfer and protocols …………………………
…………………… Serial port setup …………………………
…………………… Modem and dialing …………………………
…………………… Screen and keyboard …………………………
…………………… Save setup as df1 …………………………
…………………… Save setup as…… …………………………
…………………… Exit …………………………
…………………… Exit from minicom …………………………
……………………………………………………………………………………
1. 使用down箭头选择serial port setup,出现具体各选项的配置:
A — Serial Device : /dev/ttyS0
B — lockfile Location : /var/lock
C — Calling Program :
D — Callout Program:
E — Bps/par/Bits : 115200 8N1
F — Hardware Flow Control : NO
G — Software Flow Control : NO
Change with setting?
将选项A的值设置为/dev/ttyS0 表示是串口1。
如果需要修改选项A的值,在Change with setting?选项后输入A则光标转移到A选项后,
可以对A选项的值进行修改。修改完,按回车键返回
2. 设置Modem and dialing
使用方向箭头选中modem and dialing 项,则修改modem and dialing 选项中的配置项。
需要修改的是去掉A — initing string ……:,B — Reset string ……:
K — Hang-up string ……三个配置项。
3. 选择Save as df1。
选择Save as df1选项将修改后的配置信息进行保存为默认的配置选项。
4. Exit from minicom 。
选择Exit from minicom 选项从配置菜单返回到命令行。
5. 重新启动Minicom。
输入 minicom
6. ctra-a-z 进入配置界面。 ctra-q 退出