xmodem,ymodem,zmodem,kermit的主要区别

原文链接:http://blog.csdn.net/wu407797466/article/details/7758637

http://blog.chinaunix.net/u1/44250/showart_1844934.html
在Linux可以通过minicom和嵌入式设备进行通讯,对其中的文件传输在网上就有很多选择有xmodem/ymodem/zmodem /kermit/ascii等方式,大部分采用xmodem。在具体的环境中,通过多次采用的xmodem的传输可以发现,不管是直接传输,还是按照网上 的说法采用rz sz传输,都很难将文件正确传输到嵌入式设备上。当采用zmodem进行传输的时候却发现传输的效率很高,几乎没有失败。在网上查看 xmodem/ymodem/zmodem的区别发现了以下的一段话:  
XMODEM
Xmodemis one of the most widely used file transfer protocols. The original Xmodem protocol uses 128-byte packets and a simple "checksum" method of error detection. A later enhancement, Xmodem-CRC, uses a more secure Cyclic Redundancy Check (CRC) method for error detection. Xmodem protocol always attempts to use CRC first. If the sender does not acknowledge the requests for CRC, the receiver shifts to the checksum mode and continues its request for transmission.Xmodem-1KXmodem 1K is essentially Xmodem CRC with 1K (1024 byte) packets. On some systems and bulletin boards it may also be referred to as Ymodem. Some communication software programs, most notably Procomm Plus 1.x, also list Xmodem-1K as Ymodem. Procomm Plus 2.0 no longer refers to Xmodem-1K as Ymodem.
YMODEM
Ymodem is essentially Xmodem 1K that allows multiple batch file transfer. On some systems it is listed as Ymodem Batch.Ymodem-gYmodem-g is a variant of Ymodem. It is designed to be used with modems that support error control. This protocol does not provide software error correction or recovery, but expects the modem to provide the service. It is a streaming protocol that sends and receives 1K packets in a continuous stream until instructed to stop. It does not wait for positive acknowledgement after each block is sent, but rather sends blocks in rapid succession. If any block is unsuccessfully transferred, the entire transfer is canceled.
ZMODEM
Zmodem is generally the best protocol to use if the electronic service you are calling supports it. Zmodem has two significant features: it is extremely efficient and it provides crash recovery.Like Ymodem-g, Zmodem does not wait for positive acknowledgement after each block is sent, but rather sends blocks in rapid succession. If a Zmodem transfer is canceled or interrupted for any reason, the transfer can be resurrected later and the previously transferred information need not be resent.   简而言之:xmodem/ymodem/zmodem是modem中采用了的三种文件传输协议,区别在于

  xmodem:简单通用,传输信息单位是“包=128B”,传输速度慢,适合电话线路质量差的情况下用   
ymodem:由XMODEM演变来,效率可靠性高,包=128*8B;一次传输可发送或接受几个文件   
zmodem:于上两种不同,已连续的数据流发送数据,效率更高

 

因此,我在用minicom进行文件传输的时候通常采用了zmodem。具体方法是:首先在shell里进入目标目录,就可以用zmodem传输到当前的目标目录了。

kermit 
[功能] 
一个串口传工具。可以传送文件。 

[描述] 
C-kermit是一款集成了网络通信、串口通信的工具,它有如下多种功能: 
1.支持kermit文件传输协议 
2.自定义了一种脚本语言,它强大而易于使用,可用于自动化工作 
3.无论是网络通信,还是串口通信,操作是一致的,并支持多种硬件、软件平台 
4.有安全认证、加密功能 
5.内建FTP、HTTP客户端功能及ssh接口 
6.支持字符集转换


你可能感兴趣的:(xmodem,ymodem,zmodem,kermit的主要区别)