Location:
Search - 计算校验和,校验
Search list
Description: 计算校验和
命令行:check_sum infile
其中check_sum是程序名,infile是数据文件名
输出:数据文件的校验和。
目的是通过数据链路层与介质访问控制层的学习,根据数据链路层的基本原理,针对普遍应用的Ethernet帧,通过构造一个具体的帧,深入理解网络协议的基本概念与网络问题处理的一般方法。-calculated checksum command line : check_sum infile which check_sum procedures, and infile data output file name : data files, the checksum. The purpose of the data link layer and the MAC layer of learning, according to the data link layer to the basic principles of universal application against the Ethernet frame, and by constructing a concrete frames, in-depth understanding of network protocols and the basic concepts of network issues to deal with the general approach.
Platform: |
Size: 1245 |
Author: 王慧娟 |
Hits:
Description: 计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP和TCP 等等。计算这些校验和的算法称为网际校验和算法,简单来说就是:把被校验的数据16位进行累加,然后取反码,若数据字节长度为奇数,则数据尾部补一个字节的0以凑成偶数。
由于从输入文件读入的数据不能直接满足计算校验和的条件,所以首先对从文件读入缓冲区的数据进行预处理,即读入缓冲区时忽略空格。由于累加是按16位进行的,所以每次从缓冲区中读出4个字符,并将字符转换成对应的16进制数字,如此依次累加,直至数据全部读完。
还有一种情况,即如果数据长度为奇数个字节,则需要判断,并补0累加。程序中利用的是缓冲区长度计数器i和当前读取到计数器j判断数据长度是否为奇数。即如果数据长度为偶数,则读完数据时当前读取到计数器j的值应与缓冲区长度i相等,而如果数据长度为奇数,则读完数据时,当前读取到计数器j>缓冲区长度i,此时需将缓冲区中剩余的两个字符读出,并补0,转换成相应16进制数以后参与累加。
当累加结束后,将累加和的16位以上数据位移下再进行一次累加,并对最后累加和取反即得所求校验和。
-calculated checksum checksum algorithm Description : To ensure the network transmission of data reliability, in many of the agreements are set up and calibration, for example : IPv4, ICMPv4, IGMPV4, ICMPv6. UDP and TCP so on. Calculating checksum algorithm called the Internet checksum algorithm, the simple answer is : as has been the calibration data for 16 cumulative, and then take the anti-code, if the data byte length of the odd, data will make up the tail of a 0 byte to make up even. As the input file is read into the data can not be directly calculated checksum meet the conditions, So, the first right from the document read into the buffer data preprocessing, read into the buffer zone that is overlooked spaces. As the cumulative basis for the 16, so every time from the buffer read out
Platform: |
Size: 88943 |
Author: 阿蒙 |
Hits:
Description: 可以用来修改pcap格式的抓包文件,对报文的内容可以进行修改。可以重新自动计算校验和。-can be used to change the format pcap-capturing Packet documents, reported on the contents of the text can be amended. Can be automatically re-calculated checksum.
Platform: |
Size: 1434733 |
Author: Alex |
Hits:
Description: 计算校验和程序内涵说明书
Platform: |
Size: 82503 |
Author: zhangyuexuexi |
Hits:
Description: 计算校验和
命令行:check_sum infile
其中check_sum是程序名,infile是数据文件名
输出:数据文件的校验和。
目的是通过数据链路层与介质访问控制层的学习,根据数据链路层的基本原理,针对普遍应用的Ethernet帧,通过构造一个具体的帧,深入理解网络协议的基本概念与网络问题处理的一般方法。-calculated checksum command line : check_sum infile which check_sum procedures, and infile data output file name : data files, the checksum. The purpose of the data link layer and the MAC layer of learning, according to the data link layer to the basic principles of universal application against the Ethernet frame, and by constructing a concrete frames, in-depth understanding of network protocols and the basic concepts of network issues to deal with the general approach.
Platform: |
Size: 1024 |
Author: 王慧娟 |
Hits:
Description: 计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP和TCP 等等。计算这些校验和的算法称为网际校验和算法,简单来说就是:把被校验的数据16位进行累加,然后取反码,若数据字节长度为奇数,则数据尾部补一个字节的0以凑成偶数。
由于从输入文件读入的数据不能直接满足计算校验和的条件,所以首先对从文件读入缓冲区的数据进行预处理,即读入缓冲区时忽略空格。由于累加是按16位进行的,所以每次从缓冲区中读出4个字符,并将字符转换成对应的16进制数字,如此依次累加,直至数据全部读完。
还有一种情况,即如果数据长度为奇数个字节,则需要判断,并补0累加。程序中利用的是缓冲区长度计数器i和当前读取到计数器j判断数据长度是否为奇数。即如果数据长度为偶数,则读完数据时当前读取到计数器j的值应与缓冲区长度i相等,而如果数据长度为奇数,则读完数据时,当前读取到计数器j>缓冲区长度i,此时需将缓冲区中剩余的两个字符读出,并补0,转换成相应16进制数以后参与累加。
当累加结束后,将累加和的16位以上数据位移下再进行一次累加,并对最后累加和取反即得所求校验和。
-calculated checksum checksum algorithm Description : To ensure the network transmission of data reliability, in many of the agreements are set up and calibration, for example : IPv4, ICMPv4, IGMPV4, ICMPv6. UDP and TCP so on. Calculating checksum algorithm called the Internet checksum algorithm, the simple answer is : as has been the calibration data for 16 cumulative, and then take the anti-code, if the data byte length of the odd, data will make up the tail of a 0 byte to make up even. As the input file is read into the data can not be directly calculated checksum meet the conditions, So, the first right from the document read into the buffer data preprocessing, read into the buffer zone that is overlooked spaces. As the cumulative basis for the 16, so every time from the buffer read out
Platform: |
Size: 89088 |
Author: |
Hits:
Description: 可以用来修改pcap格式的抓包文件,对报文的内容可以进行修改。可以重新自动计算校验和。-can be used to change the format pcap-capturing Packet documents, reported on the contents of the text can be amended. Can be automatically re-calculated checksum.
Platform: |
Size: 1434624 |
Author: Alex |
Hits:
Description: 函数名称:CRC-16 Process
函数原型:INT16U make_crc16(INT8U *msgaddr,INT8U datalen)
函数功能:进行CRC校验和产生CRC代码.这个函数只影响全局变量crc16.
校验字放在字符串最后,低8位在前高8位在后.
msgaddr : 进行CRC16校验的据块的首地址
datalen : 进行CRC16校验的据块的个数
CRC-ITU的计算算法如下:
a.寄存器组初始化为全"1"(0xFFFF)。
b.寄存器组向右移动一个字节。
c.刚移出的那个字节与数据字节进行异或运算,得出一个指向值表的索引。
d.索引所指的表值与寄存器组做异或运算。
f.数据指针加1,如果数据没有全部处理完,则重复步骤b。
g.寄存器组取反,得到CRC,附加在数据之后(这一步可省略)。
Platform: |
Size: 1024 |
Author: liu |
Hits:
Description: 单片机用的,计算校验和程序源码.对单片机开发者很有帮助。-Single-chip used in calculating the calibration source and procedures. Helpful to the single-chip developers.
Platform: |
Size: 229376 |
Author: Solonet |
Hits:
Description: 实现计算校验和的程序源代码,编程环境为VC-Checksum calculation procedures, programming environment for VC
Platform: |
Size: 75776 |
Author: Leejun |
Hits:
Description: 计算校验和程序
程序要求以命令行方式运行:Checksum inputfile outputfile
其中Checksum是程序名;inputfile是输入文件,其中包含数据字段封装的内容;outputfile为输出文件,该文件保存封装后的整数据报。本光盘中提供了两个输入文件:input1.txt和input2.txt(存放在“Exe”目录下)。
-Checksum calculation procedure
Procedural requirements to run the command line: Checksum inputfile outputfile
Checksum which is the program name inputfile is the input file, which contains the contents of the package data fields outputfile is the output file, the file is saved after the entire package of data reported. The CD provides two input files: input1.txt and input2.txt (stored in the "Exe" directory).
Platform: |
Size: 7168 |
Author: zhb |
Hits:
Description: 计算校验和的代码,可以运行,可用-Checksum calculation
Platform: |
Size: 1024 |
Author: 冰冰 |
Hits:
Description: 计算校验和程序。其中Checksum是程序名;inputfile是输入文件,其中包含数据字段封装的内容;outputfile为输出文件,该文件保存封装后的整数据报。-Calculate Checksum procedures. Checksum is the name of the program inputfile is the input file, which contains the contents of the data field encapsulation outputfile for output file, the file is saved to the whole datagram encapsulated.
Platform: |
Size: 7168 |
Author: |
Hits:
Description: 计算校验和程序,程序要求以命令行方式运行:Checksum inputfile outputfile
其中Checksum是程序名;inputfile是输入文件,其中包含数据字段封装的内容;outputfile为输出文件,该文件保存封装后的整数据报。-Calculate the checksum and procedures, program requirements to run from command line: the Checksum inputfile outputfile including Checksum is the name of the program inputfile is the input file, which contains the contents of the data field encapsulation outputfile for output file, save the file after the whole package data reported.
Platform: |
Size: 58368 |
Author: NKlwf |
Hits:
Description: c++程序实现计算校验和参数,其中Checksum是程序名;inputfile是输入文件,其中包含数据字段封装的内容;outputfile为输出文件,该文件保存封装后的整数据报。-C++ program to implement calibration and parameter calculation, of which the Checksum is the program name Inputfile is input file that contains the content of the data fields encapsulation Outputfile for the output file, save the file after the encapsulation of the datagram
Platform: |
Size: 81920 |
Author: 朱佳尔 |
Hits:
Description: 该程序代码实现的功能是找出$GPRMC语句,计算校验和,找出其中校验正确,并且字段2表示已定位的语句,从中计算出时间,换算成北京时间。一次数据中会包含多条$GPRMC语句,以最后一条语句得到的北京时间作为结果输出。-The function of the program code to achieve is to find $GPRMC statement, calculate the checksum, find out the check is correct, and field said it had 2 positioning statement, to calculate the time, converted to Beijing time.A data will contain more than $GPRMC statement, with the last statement of Beijing time as a result the output.
Platform: |
Size: 4096 |
Author: 张颍 |
Hits:
Description: 计算校验和的一种方法,可以识别所有的字符,包括乱码,可利用控制台运行,运行时win+r;输入cmd;输入d:;输入cl ks.cpp;输入ks infile(将程序放在D盘,比在D盘建立infile文本文档,输入数据)(Calculate the checksum of a method, you can identify all the characters, including garbled, you can use the console to run, run win + r; enter cmd; enter d: input cl ks.cpp; input ks infile In the D drive, than in the D drive to create infile text documents, enter the data))
Platform: |
Size: 608256 |
Author: 飞啊飞
|
Hits:
Description: CRC校验Demo和CRC计算工具,CRC 域检验整个报文的内容。不管报文有无奇偶校验,均执行此检验。(CRC checksum Demo and CRC computing tools, the CRC domain to verify the contents of the entire message. This check is performed regardless of whether or not the message has parity.)
Platform: |
Size: 119808 |
Author: Huowei
|
Hits:
Description: 背景
例如,包装为26盎司的Morton牌碘化盐所用条码下的数字是:
0 24600 01003 0
下面是一种计算校验位的方法:首先把第一位、第三位、第五位、第七位、第九位和第十一位数字相加。然后把第二位、第四位、第六位、第八位和第十位数字相加。接着把第一次加法结果乘以3后再加上第二次加法的结果。随后,再把上述结果减去1。减法后的结果除以10取余数。最后,用9减去上一步骤中得到的余数。现在以Morton碘盐为例,第一组数字的加法是0+4+0+0+0+3=7,而第二组数字的加法是2+6+0+1+0=9。把第一组加法值乘以3后再加上第二组加法值得到的结果是30。再减去1,结果变为29。再把这个值除以10取余数为9。9在减去余数结果9,最终值为0。
输入
每次输入三行数据,第一行是UPC的第一位数字,第二行是UPC的第一组五位数字,第三行是UPC的第二组五位数字。
输出
UPC的校验位(Sample Input
0
24600
01003
Sample Output
0)
Platform: |
Size: 36864 |
Author: xzm2000
|
Hits:
Description: CRC校验码计算介绍及使用详细,关于CRC效验的说明调试,已经怎么使用的函数。十分有用,在PLC和上位机通信当中有用,各种CRC的算法。(CRC16,CRC32,TTICCT16)
Platform: |
Size: 510976 |
Author: wanxinkon |
Hits: