CRC8H=(CRC8 & 0xF0) /16
If (CRC8H <10) CRC8H= CRC8H +’0’ rang [‘0’-‘9’]
Else CRC8H = CRC8H +65 rang [‘A’-‘F’]
EX :
string = ‘
0000,0000,024,30,05,02,09230006809050006616,00300,00,
1C’,0xD,0xA
CRC8=’0’+’0’+..+’0’+’,’=0x30+0x30+…+0x30+0x2C=0x0A1C
CRC8H=’1’, CRC8L=’C’
EX:
string = ‘0567D2’,0xD,0xA
Data = ‘0567’
CRC8=’0’+’5’+’6’+’7’=0x30+0x35+0x36+0x37=0xD2
CRC8H=’D’, CRC8L=’2’
Manufacturer
Daviteq Technologies Inc
No.11 Street 2G, Nam Hung Vuong Res., An Lac Ward, Binh Tan Dist., Ho Chi Minh City, Vietnam.
Tel: +84-28-6268.2523/4 (ext.122)
Email: [email protected] |
Support contacts