分享

minicom使用介绍 [TurboLinux知识库]

 jijo 2008-05-26
minicom使用介绍 2007/10/28 11:05 当前版本
行 1: 行 1:
  + ===== 一.Minicom介绍 =====
  + Linux下的Minicom的功能与Windows下的超级终端功能相似,可以通过串口控制外部的硬件\\
  + 设备.适于在linux通过超级终端对嵌入式设备行管理.同样也可以使用minicom对外置Modem\\
  + 进行控制.\\
  +
  + ===== 二.Minicom的安装 =====
  +
  + ==== 1.rpm包方式 ====
  +
  + GTES 10,10.5,11版本都包含minicom包,你可以直接安装他们:\\
  + <code>
  + # rpm -ivh minicom-xxx.rpm
  + </code>
  +
  + ==== 2.源码包方式 ====
  +
  + 源码包下载地址:\\
  + <code>
  + http://alioth./projects/minicom/
  + </code>
  + 安装源码包:\\
  + <code>
  + # tar zxf minicom-2.2.tar.gz
  + # cd minicom-2.2
  + # ./configure
  + # make
  + # make install
  + </code>
  +
  + ===== 三.Minicom的使用 =====
  +
  + ==== 1.界面介绍 ====
  +
  + 第一次运行minicom,需要进行minicom的设置:\\
  + <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的值设置为/dev/ttyS0 表示是串口1.\\
  + 将选项E的值设置为9600.\\
  +
  +
  + 初始化设置中可以设置默认上传/下载的目录,传输协议参数,串口波特率等.设置完成后,\\
  + 选择"Save setup as dfl",保存为默认设置.然后选择"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>
  + 可以按快捷键进入相应的菜单.\\
  +
  + ==== 2.示例 ====
  +
  + 调试北电ALTEON 180E设备示例.\\
  + <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>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多