配置
sudo minicom -s打开配置选项,如下,上下键移动,回车选择
+-----[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,
出现串口设置界面,
通过按键A~G选择对应选项,一般修改串口节点即可。如果需要在串口中输入命令,需要按F键将
Hardware
Flow
Control
改为No,修改完成后回车,选择
Save
setup as dfl
保存为默认设置,然后选择
Exit
即可进入终端界面。
+-----------------------------------------------------------------------+
| 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? |
+-----------------------------------------------------------------------+
功能
进入minicom后,先按Ctrl+A,终端会暂停输出,再按不同的键(不区分大小写)选择不同功能,如下
+-------------------------------------------------------------------+
| Minicom Command Summary |
| |
| Commands can be called by CTRL-A <key> |
| |
| Main Functions Other Functions |
| |
| Dialing directory..D run script (Go)....G | Clear Screen.......C |
| Send files.........S Receive files......R | cOnfigure Minicom..O |
| comm Parameters....P Add linefeed.......A | Suspend minicom....J |
| Capture on/off.....L Hangup.............H | eXit and reset.....X |
| send break.........F initialize Modem...M | Quit with no reset.Q |
| Terminal settings..T run Kermit.........K | Cursor key mode....I |
| lineWrap on/off....W local Echo on/off..E | Help screen........Z |
| Paste file.........Y Timestamp toggle...N | scroll Back........B |
| Add Carriage Ret...U |
| |
| Select function or press Enter for none. |
+-------------------------------------------------------------------+
常用
Ctrl+A X 退出
Ctrl+A C 清屏
Ctrl+A L 保存log到文件
Ctrl+A O 转到配置界面
Ctrl+A J 挂起minicom,退到terminal
Ctrl+A Z 输出所有命令的help信息
Ctrl+A 有时log打印过快,可以通过Ctrl+A暂停输出,再按Ctrl+A继续
启动minicom时按Ctrl+A再按L,会提示要保存的文件名
-
+-----------------------------------------+
-
|Capture to which file? |
-
|> minicom.cap |
-
+-----------------------------------------+
此时minicom开始捕获所有的输出log,再次按Ctrl+A L,提示是否要结束或暂停捕获
-
+--------------------------------+
-
| Capture file |
-
| Close Pause Exit |
-
+--------------------------------+
选择Close,退出minicom,可看到当前目录下的minicom.cap文件,打开分析即可