| minicom使用介紹 2007/10/28 11:05 當(dāng)前版本 |
| + | ===== 一.Minicom介紹 ===== |
| | | |
| + | Linux下的Minicom的功能與Windows下的超級終端功能相似,可以通過串口控制外部的硬件\\ |
| + | 設(shè)備.適于在linux通過超級終端對嵌入式設(shè)備行管理.同樣也可以使用minicom對外置Modem\\ |
| + | 進行控制.\\ |
| + | |
| + | ===== 二.Minicom的安裝 ===== |
| + | |
| + | ==== 1.rpm包方式 ==== |
| + | |
| + | GTES 10,10.5,11版本都包含minicom包,你可以直接安裝他們:\\ |
| + | <code> |
| + | # rpm -ivh minicom-xxx.rpm |
| + | </code> |
| + | |
| + | ==== 2.源碼包方式 ==== |
| + | |
| + | 源碼包下載地址:\\ |
| + | <code> |
| + | http://alioth.debian.org/projects/minicom/ |
| + | </code> |
| + | 安裝源碼包:\\ |
| + | <code> |
| + | # tar zxf minicom-2.2.tar.gz |
| + | # cd minicom-2.2 |
| + | # ./configure |
| + | # make |
| + | # make install |
| + | </code> |
| + | |
| + | ===== 三.Minicom的使用 ===== |
| + | |
| + | ==== 1.界面介紹 ==== |
| + | |
| + | 第一次運行minicom,需要進行minicom的設(shè)置:\\ |
| + | <code> |
| + | # 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 │ |
| + | └──────────────────────────┘ |
| + | </code> |
| + | <serial port setup>\\ |
| + | <code> |
| + | A — Serial Device : /dev/ttyS0 |
| + | |
| + | B — lockfile Location : /var/lock |
| + | |
| + | C — Calling Program : |
| + | |
| + | D — Callout Program: |
| + | |
| + | E — Bps/par/Bits : 9600 8N1 |
| + | |
| + | F — Hardware Flow Control : YES |
| + | |
| + | G — Software Flow Control : NO |
| + | |
| + | Change with setting? |
| + | </code> |
| + | 將選項A的值設(shè)置為/dev/ttyS0 表示是串口1.\\ |
| + | 將選項E的值設(shè)置為9600.\\ |
| + | |
| + | |
| + | 初始化設(shè)置中可以設(shè)置默認上傳/下載的目錄,傳輸協(xié)議參數(shù),串口波特率等.設(shè)置完成后,\\ |
| + | 選擇"Save setup as dfl",保存為默認設(shè)置.然后選擇"Exit",按Ctrl-A,再按z,\\ |
| + | 即可進入Minicom的主界面.\\ |
| + | |
| + | <code> |
| + | |
| + | Welco┌───────────────────────────────────────────────────────────────────┐ |
| + | │ Minicom Command Summary │ |
| + | OPTIO│ │ |
| + | Compi│ Commands can be called by CTRL-A <key> │ |
| + | │ │ |
| + | Press│ 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 │ |
| + | │ | scroll Back........B │ |
| + | │ │ |
| + | │ Select function or press Enter for none. │ |
| + | │ │ |
| + | │ Written by Miquel van Smoorenburg 1991-1995 │ |
| + | │ Some additions by Jukka Lahtinen 1997-2000 │ |
| + | │ i18n by Arnaldo Carvalho de Melo 1998 │ |
| + | └───────────────────────────────────────────────────────────────────┘ |
| + | CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.00.0 | VT102 | Offline |
| + | </code> |
| + | 可以按快捷鍵進入相應(yīng)的菜單.\\ |
| + | |
| + | ==== 2.示例 ==== |
| + | |
| + | 調(diào)試北電ALTEON 180E設(shè)備示例.\\ |
| + | <code> |
| + | Welcome to minicom 2.00.0 |
| + | OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n |
| + | Compiled on Mar 7 2005, 10:29:09. |
| + | |
| + | Press CTRL-A Z for help on special keys |
| + | |
| + | Enter password: |
| + | Password incorrect. |
| + | |
| + | Enter password: |
| + | System Information at 14:53:56 Fri Dec 15, 2006 |
| + | |
| + | Alteon 180e |
| + | sysName: 180e |
| + | sysLocation: |
| + | |
| + | Switch is up 0 days, 0 hours, 8 minutes and 50 seconds. |
| + | Last boot: 14:45:06 Fri Dec 15, 2006 (power cycle) |
| + | MAC address: 00:60:cf:48:82:d0 IP (If 1) address: 0.0.0.0 |
| + | Hardware Revision: A |
| + | Hardware Part No: E09_5B-B_7B-A |
| + | Software Version 10.0.25-SSH (FLASH image1), active configuration. |
| + | *****DNS Load Balancing***** |
| + | ------------------------------------------------------------ |
| + | [Main Menu] |
| + | info - Information Menu |
| + | stats - Statistics Menu |
| + | cfg - Configuration Menu |
| + | oper - Operations Command Menu |
| + | boot - Boot Options Menu |
| + | maint - Maintenance Menu |
| + | diff - Show pending config changes [global command] |
| + | apply - Apply pending config changes [global command] |
| + | save - Save updated config to FLASH [global command] |
| + | revert - Revert pending or applied changes [global command] |
| + | exit - Exit [global command, always available] |
| + | </code> |