开发者

How to calculate CRC [closed]

开发者 https://www.devze.com 2023-03-07 05:18 出处:网络
开发者_如何学JAVAAs it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely
开发者_如何学JAVA As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

I am having problems understanding how to calculate CRC because of the long math involved. I understand things like XOR, but all the examples use really long numbers. What is the breakdown of the steps and a really simple example?


There are many ways of approaching "understanding how to calculate CRC".

  • How can I calculate some particular CRC? The bit-serial approach is the easiest to understand. See Wikipedia: CRC and the first quarter of Wikipedia: computation of CRC, and example code in JavaScript and C at CRC parameters.
  • Why exactly is a properly-designed CRC guaranteed to detect a burst error with length one less than the length of the CRC? How do I design new CRC polynomials that are deliberately incompatible with previous standards? See Wikipedia: Mathematics of CRC
  • How can I make my software CRC run faster, but still remain compatible with some particular CRC? What's up with all these tables of mysterious constants I see in "optimized" CRC code? See the rest of Wikipedia: computation of CRC and The CRC Pitstop.
0

精彩评论

暂无评论...
验证码 换一张
取 消