Linux串口软件c-kermit配置和使用问题?

elesun8 2015-01-10 12:48:08
Linux串口软件c-kermit配置和使用问题?

应用环境:PC 虚拟机 redhat Linux(2.6.18-53.el5) gcc(4.1.2) arm-linun-gcc(4.3.2)

安装:
下载tar包:http://www.columbia.edu/kermit/ftp/archives/cku302.tar.gz
tar zxvf cku302.tar.gz -C kermit
cd kermit
make linux
cp wermit /usr/bin
cp wart /usr/bin


配置
# vi ~/.kermrc
输入:
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
c


使用:
[root@localhost /]# wermit
Locked by process 13625
?SET SPEED has no effect without prior SET LINE
Sorry, you must SET LINE or SET HOST first
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux
Copyright (C) 1985, 2011,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/) C-Kermit>connect
Sorry, you must SET LINE or SET HOST first
(/) C-Kermit>

这是怎么回事?如何解决?
...全文
1255 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhaobi12 2017-08-05
  • 打赏
  • 举报
回复
权限问题.使用sudo -s
alpbrook 2015-03-11
  • 打赏
  • 举报
回复
Locked by process 13625:串口已经被进程13625打开了。把那个进程关闭就行了。 ll /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 Mar 11 21:12 /dev/ttyUSB0 不需要超级用户权限。只要把用户加到dialout组就行了。 usermod -aG dialout <userid>
elesun8 2015-02-01
  • 打赏
  • 举报
回复
恳请高手指点
elesun8 2015-01-27
  • 打赏
  • 举报
回复
还是不行啊。。。。。。
chou_o_ning 2015-01-23
  • 打赏
  • 举报
回复
可能是 /dev/ttyUSB0的权限问题,试试 sudo chmod 777 /dev/ttyUSB0
elesun8 2015-01-22
  • 打赏
  • 举报
回复
恳请高手们指教

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧