C-kermit的安装及配置

原文:http://blog.chinaunix.net/uid-21931325-id-3057521.html

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

1.安装

sudoyum install ckermit

2.配置

vim~/.kermrc

#内容如下

  1.     set line /dev/ttyUSB0
        set speed 115200
        set carrier-watch off
        set handshake none
        set flow-control none
        robust
        set file type bin
        set file name lit
        set rec pack 1000
        set send pack 1000
        set window 5

  2. 注: 我使用的是OpenJtag,它有USB转串口功能,所以用ttyUSB*,还有就是要确定自己的是不是ttyUSB0。如果直接使用串口,则使用ttyS* (如ttyS0)

#保存退出

3.连接串口

sudokermit -c

#出现如下提示:

?SETSPEED has no effect without prior SET LINE

Sorry,you must SET LINE or SET HOST first

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

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

sudomv ~/.kermrc /root/

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

#正常运行是如下提示:

Connectingto /dev/ttyS0, speed 115200

Escapecharacter: Ctrl-\ (ASCII 28, FS): enabled

Typethe escape character followed by C to get back,

orfollowed by ? to see other options.

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

Communicationsdisconnect (Back at localhost.localdomain)

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

C-Kermit9.0.301 OPEN SOURCE:, 11 Jul 2011, for Linux

Copyright(C) 1985, 2011,

Trusteesof 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

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

http://vrlinux.com/xitongguanli/20110105/83705.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值