linux C-kermit 安装使用

linux C-kermit 安装使用

  1. 系统环境
    Ubuntu 14.04.5 LTS

  2. 安装
    sudo apt-get install ckermit

  3. 修改配置文件 ~/.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    
set protocol xmodem    
set protocol zmodem    
define rz !rz < /dev/ttyUSB0 > /dev/ttyUSB0    
define sz !sz \%0 > /dev/ttyUSB0 < /dev/ttyUSB0    
c  #这个可以不加,因为加了直接进入串口设备,可以进入了命令行再输入c

4 . 操作
4.1 进入kermit:

➜  ~: kermit
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)
 Copyright (C) 1985, 2011,
  Trustees of Columbia University in the City of New York.
Type ? or HELP for help.


(/home/xiao/) C-Kermit>

4.2 进入设备命令行(输入命令c):

(/home/xiao/) C-Kermit>**c**
Connecting to /dev/ttyUSB0, 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.
----------------------------------------------------

4.3 退出设备命令行:
按下Ctrl + \ ,再按c 就跳回kermit跳回串口控制界面。
按下Ctrl + \ ,再按q ,则退出kermit。


5 .传输文件到设备:

5.1 在设备终端模式执行命令rz

[/root]# rz
rz ready. Type "sz file ..." to your modem program
�**B010000012f4ced

5.2 在kermit命令模式执行send file
先按Ctrl + \退回kermit命令行,然后使用send命令发送文件。

你可能感兴趣的:(Linux)