ArdweeNET forum

ArdweeNET => Protocol => Topic started by: Graynomad on November 29, 2012, 02:14:09 PM



Title: CRC algorithm
Post by: Graynomad on November 29, 2012, 02:14:09 PM
It looks like I'm settling on the CAN 15-bit CRC algorithm with the 0x62CC polynomial.

This is optimised for small data packet sizes and has a hamming distance of 6 (up to 5 corrupted bits detected) for data between 64 and 112 bits. As the checked part of an ArdweeeNET frame is 96 bits in length this is a good match.

This does however mean using software to generate the CRC as opposed to using the LPC's built-in hardware CRC generator. Probably a price worth paying to get the best CRC.