配置 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繼續
儲存log到檔案中 啟動minicom時按Ctrl+A再按L,會提示要儲存的檔案名
-
+-----------------------------------------+
-
|Capture to which file? |
-
|> minicom.cap |
-
+-----------------------------------------+
此時minicom開始捕獲所有的輸出log,再次按Ctrl+A L,提示是否要結束或暫停捕獲
-
+--------------------------------+
-
| Capture file |
-
| Close Pause Exit |
-
+--------------------------------+
選擇Close,退出minicom,可看到目前目錄下的minicom.cap檔案,打開分析即可