Computer Interfacing
Discussions about interfacing and electronics
 

Please help find CRC-algoritm

Please help find CRC-algoritm


 

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







Jan 05, 2015 3:34 pm

0D7701010079
0D760101007A
0D7702010177
0D7703010176
0D76FF01007C
0D7701010178
0D76FF0F01040101A180008000800000028000C4

Sample:
0D7701010079 (0D77010100-data, 79-crc)
0D760101007A (0D76010100-data, 7A-crc)

reveng -w 8 -s 0D7701010079 0D760101007A
reveng: no models found

reveng -w 16 -s 0D7701010079 0D760101007A
reveng: no models found

Please help if you can!
alexx-15
Guest







Jan 11, 2015 2:13 pm

topic is closed.
all is simply.

Code:

unsigned char csum(char *_data, int _len)
{
    unsigned long checksum = 0x00;
    for (int i = 0; i < _len; i++) checksum += _data;
    return (unsigned char)(~checksum);
}

       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