Chinaunix首页 | 论坛 | 博客
  • 博客访问: 71857
  • 博文数量: 16
  • 博客积分: 1465
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 09:32
文章分类

全部博文(16)

文章存档

2012年(1)

2011年(1)

2010年(14)

我的朋友

分类: LINUX

2010-01-22 08:38:01

PC系统:Fedora 11(完全安装)
    如果你完全安装了Fedora 11,系统中已经存在minicom软件包,无需单独下载或安装。在进行配置时要切换为root权限。下面为详细步骤。
    1.在命令行中输入如下命令切换为root权限
    [work@localhost ~]$ su
    密码:******
    [root@localhost work]#
    2.配置minicom
    [root@localhost work]# 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        |
             +------------------------------+
    1>Serial port setup选项
     +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/ttyUSB0                              |
    | B - Lockfile Location     : /var/unlock                               |
    | 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?                                              |
    +-----------------------------------------------------------------------+
    因为我的电脑是笔记本,没有串行口,使用OPENJTAG,因此A项配置为/dev/ttyUSB0;若为有串行口计算机可直接配置为/dev/ttySAC0。其他选项按照图像要求即可。然后按回车退出该项设置。
    2>Modem and dialing选项
    进入这个选项后, 将A、B、K子选项的内容全部清除,如下:
 +--------------------[Modem and dialing parameter setup]---------------------+
 |                                                                            |
 | A - Init string .........                                                  |
 | B - Reset string ........                                                  |
 | C - Dialing prefix #1.... ATDT                                             |
 | D - Dialing suffix #1.... ^M                                               |
 | E - Dialing prefix #2.... ATDP                                             |
 | F - Dialing suffix #2.... ^M                                               |
 | G - Dialing prefix #3.... ATX1DT                                           |
 | H - Dialing suffix #3.... ;X4D^M                                           |
 | I - Connect string ...... CONNECT                                          |
 | J - No connect strings .. NO CARRIER            BUSY                       |
 |                           NO DIALTONE           VOICE                      |
 | K - Hang-up string ......                                                  |
 | L - Dial cancel string .. ^M                                               |
 |                                                                            |
 | M - Dial time ........... 45      Q - Auto bps detect ..... No             |
 | N - Delay before redial . 2       R - Modem has DCD line .. Yes            |
 | O - Number of tries ..... 10      S - Status line shows ... DTE speed      |
 | P - DTR drop time (0=no). 1       T - Multi-line untag .... No             |
 |                                                                            |
 | Change which setting?       (Return or Esc to exit)                        |
 +----------------------------------------------------------------------------+
    按回车退出,又回到主菜单。
    3.保存配置
    将光标移动到Save setup as dfl,确定保存配置。
    4.退出配置
    将光标移动到Exit from Minicom或Exit选项,确定退出。其中,前者退出的是minicom,后者只是退出配置状态而进入minicom。
    到此,minicom的配置就完成了。要注意的是,运行minicom必须要在root权限下运行,否则会提示没有权限。
阅读(947) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~