Size: 554
Comment:
|
Size: 738
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
Line 6: | Line 7: |
http://www.drdobbs.com/implementing-the-ccitt-cyclical-redundan/199904926 http://www.ietf.org/rfc/rfc1952.txt |
|
Line 10: | Line 15: |
Polynom CRC-16: 0x8408 | Polynom CRC-16: 0x8408 ( CRC-16-CCITT Reversed ) Polynom: x^0^ + x^5^ + x^12^ + x^16^ |
CRC
A cyclic redundancy check (CRC) is an error-detecting code.
http://en.wikipedia.org/wiki/Cyclic_redundancy_check
http://en.wikipedia.org/wiki/Computation_of_cyclic_redundancy_checks
http://www.drdobbs.com/implementing-the-ccitt-cyclical-redundan/199904926
http://www.ietf.org/rfc/rfc1952.txt
HDLC like framing
The http://www.ietf.org/rfc/rfc1662.txt has two examples of CRC calculations.
Polynom CRC-16: 0x8408 ( CRC-16-CCITT Reversed )
Polynom: x0 + x5 + x12 + x16
CRC-16-IBM
Bisync, Modbus, USB, ANSI X3.28, SIA DC-07, many others; also known as CRC-16 and CRC-16-ANSI
Polynom: x16 + x15 + x2 + 1
Normal |
Reversed |
Reversed reciprocal |
0x8005 |
0xA001 |
0xC002 |