Connecting Tech Pros Worldwide Forums | Help | Site Map

How to implement cyclic redundency check in C?

Newbie
 
Join Date: Jun 2009
Posts: 7
#1: Jun 29 '09
Dear friends,
I want to implement CRC in C...I have implemented in my ideas for several times. I didn't get the correct output .I hav only less idea to implement that in C..
So I want the C program to implement CRC...So kindly anyone assist me to proceed...

Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,195
#2: Jun 29 '09

re: How to implement cyclic redundency check in C?


Look up CRC on wikipedia, the page has lots of information about CRCs and at the bottom are links to some implementations.
Expert
 
Join Date: Mar 2008
Location: Naperville, Illinois U.S.
Posts: 831
#3: Jun 29 '09

re: How to implement cyclic redundency check in C?


There are a number of CRC polynomials to choose from. There are also a number of parameters to tune (initial CRC value; order to submit bits to the polynomial; whether to invert the polynomial, the bits, or the result; etc).

Are you responsible for both the CRC encoder and decoder, or are you trying to be compatible with some other piece of software? If the latter, then how certain are you that you fully understand the CRC algorithm it is using?
Reply