网站大量收购独家精品文档,联系QQ:2885784924

C语言实现CRC校验(多种方法)(国外英文资料).doc

C语言实现CRC校验(多种方法)(国外英文资料).doc

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
C语言实现CRC校验(多种方法)(国外英文资料)

C语言实现CRC校验(多种方法)(国外英文资料) CRC (Cyclic Redundancy Check) which has been widely applied calibration, simple to handle, before most of the program USES the LRC England (Longitudinal Redundancy Check) Check, LRC England calibration is easy to understand, simple programming. It took a day to study CRCs C language implementation, understand and master basic principles and C programming. Simply write down your understanding. 1, the introduction of CRC CRC check of the basic idea is using the theory of linear code, the sender, according to the k bit binary code sequence to be transmitted to certain rules to create a check code r (that is, CRC code) and attached behind the information, form a new binary code sequence number (k + r), finally sent out. The receiving end is checked by the same rule to determine whether the transmission is wrong. There are two ways of handling the receiving end: Calculate the CRC code of the k bit sequence, which is the same as the received CRC. Calculate the CRC code for the whole k + r bit. If 0, it receives the correct. CRC codes have a variety of check Numbers, 8 bits, 16 bits, 32 bits, and so on. A 16-bit CRC code generation rule is first going to send binary sequence number left 16 (that is multiplied by 16 after the power of 2), divided by a polynomial, the resulting remainder is CRC code. The algorithm for the CRC code is the mode 2 algorithm, which is the method of subtracting the subtraction in polynomial division, which is equivalent to different or operation. This should be understood carefully and is the basis of programming. Crc-16: (used in the American binary synchronization system) G (X) = X16 + X15 + X2 + 1 Crc-ccitt: (recommended by the European CCITT) G (X) = X16 + X12 + X5 + 1 CRC - 32: G (X) = X32 + X26 + X23 + X22 + X16 + X12 + X11 + + by 8 X10 + + X 5 X7 + X4 + + X1 X2 + 1 2, according to the calculated CRC The CRC - CCITT polynomials, polynomial of 0 x11021, C language programming, participate in the calculation of 0 x10

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档