Computer Interfacing
Discussions about interfacing and electronics

CRC check


       Computer Interfacing Forum Index -> Error detection and correction
Author Message

Dec 17, 2008 8:38 pm

Hi I have question for you I am trying to figure out how database is converting CRC numbers from binary. I will attach the database file . If you can take a look at it and see how it is done I will be very grateful of you.

The last three digits are the CRC digits and I donít know how it is generated from the database script that is attached.





@binary_number now contains the binary representation of the unit address. Following is and example of how the numbers
are represented:
@temp_unit_address = 0x78100BFFE3 is the unit address in hex
@binary_number = 0111100000010000000010111111111111100011 is the unit address in binary
@@high_order_byte, @middlewordhigh, & @middlewordlow make up the unit address in human terms and is displayed:
120-02692-21859-XXX this is minus the CRC which is represented by -XXX

We must now run @binary_number number against the crc algorythm to get the proper CRC

8 7 4 3
G(x) = X + X + X + X + X + 1 is the CRC generator's polynominal.

       Computer Interfacing Forum Index -> Error detection and correction
Page 1 of 1

Running on php BB © 2001, 2009 php BB Group
   Lammert Bies     Interfacing     Sitemap     Forum