Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91149
  • 博文数量: 21
  • 博客积分: 548
  • 博客等级: 中士
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-01 12:11
文章分类

全部博文(21)

文章存档

2012年(12)

2011年(9)

我的朋友

分类: LINUX

2012-01-12 13:20:04

RHEL6.0C-kermit的安装及配置

1.安装

sudo yum install ckermit

2.配置

vim ~/.kermrc

#内容如下

  1. set line /dev/ttyS0
  2. set speed 115200
  3. set carrier-watch off
  4. set handshake none
  5. set flow-control none
  6. robust
  7. set file type bin
  8. set file name lit
  9. set rec pack 1000
  10. set send pack 1000
  11. set window 5

#保存退出

3.连接串口

sudo kermit -c

#出现如下提示:

?SET SPEED has no effect without prior SET LINE

Sorry, you must SET LINE or SET HOST first

#出现这个的原因是kermitroot用户的,在运行时不会使用~/.kermrc配置

#解决办法,将配置文件移动到root目录下

sudo mv ~/.kermrc /root/

#这个办法是参考一网上的方案的,详见参考链接,不过我对作者关于Ubuntu 9.04不能使用~/.kermrc配置持保持态度,因为我以前使用Ubuntu9.04LTSUbuntu10.04LTS都没有出现这个问题。

#正常运行是如下提示:

Connecting to /dev/ttyS0, speed 115200

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

Communications disconnect (Back at localhost.localdomain)

----------------------------------------------------

C-Kermit 9.0.301 OPEN SOURCE:, 11 Jul 2011, for Linux

Copyright (C) 1985, 2011,

Trustees of Columbia University in the City of New York.

Type ? or HELP for help.


#另一个要注意的是:

在串口通信下,外接键盘无法响应Ctrl+\c组合键,使用笔记本上的按键就没问题。

使用dmesg | grep tty* 可以查看到有几个串口.


参考链接:

http://hi.baidu.com/igouwa/blog/item/e64877fca699314dd7887d4e.html

附一查看物理串口的方法链接(我怕以后找不到^-^):

阅读(1409) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~