问题:C-Kermit>c Sorry, you must SET LINE or SET HOST first
来源:互联网 发布:如何利用网络做直销 编辑:程序博客网 时间:2024/06/06 18:33
【转载】
1.安装
sudo yum install ckermit
2.配置
vim ~/.kermrc
#内容如下
set line /dev/ttyS0
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
#保存退出
3.连接串口
sudo kermit -c
#出现如下提示:
?SET SPEED has no effect without prior SET LINE
Sorry, you must SET LINE or SET HOST first
#出现这个的原因是kermit是root用户的,在运行时不会使用~/.kermrc配置
#解决办法,将配置文件移动到root目录下
sudo mv ~/.kermrc /root/
#这个办法是参考一网上的方案的,详见http://www.linuxidc.com/Linux/2012-11/74558p2.htm ,不过我对作者关于Ubuntu 9.04不能使用~/.kermrc配置持保持态度,因为我以前使用Ubuntu 9.04LTS和Ubuntu 10.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* 可以查看到有几个串口.
- 问题:C-Kermit>c Sorry, you must SET LINE or SET HOST first
- You must set ES_CLASSPATH var
- <c:set> c:forEach> 问题
- kermit安装 ?SET SPEED has no effect without prior SET LINE -l or -j or -X required错误--》chmod 777 /dev/
- java.lang.IllegalStateException: Target host must not be null, or set in parameters.
- Caused by: java.lang.IllegalStateException: Target host must not be null, or set in parameters.
- java.lang.IllegalStateException: Target host must not be null, or set in parameters.
- Error: Target host must not be null, or set in parameters
- HttpClient:Target host must not be null, or set in parameters
- 解决Target host must not be null, or set in parameters.
- C++set
- kermit -c
- C/C++--set排序
- Android开发出现Java.lang.IllegalStateException的原因;Target host must be null,or set in parameters
- 在发送请求时 java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=n
- java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, ho
- Caused by: java.io.IOException: Target host must not be null, or set in parameters. scheme=null
- When running gradle with java 5, 6 or 7, you must set the path to jdk8, either with property retrola
- Linux驱动笔记:MTD子系统
- 7.27--SSH学习之SpringMVC,Ajax请求、拦截器、文件上传和MyBatis访问数据库基本操作
- hdu--6045 Is Derek Lying
- 快速删除电脑上的大文件
- 南阳acm士兵杀敌系列
- 问题:C-Kermit>c Sorry, you must SET LINE or SET HOST first
- HDU6046 hash 【2017多校联训第二场B】
- Linux修改主机名永久生效
- LeetCode(25)--Reverse Nodes in k-Group
- Linux和Windonws下静态库与动态库(静态库篇)
- 求两个单链表list1与list2的差集,并将结果保存至list1中
- 服务器centos 7.2 LAMP环境安装
- js中常用方法总结
- Android—(提交数据至服务器)