CRC-8 algorithm in m3/y

Topics concerning the Tesla front and rear drive unit drop-in board
User avatar
uhi22
Posts: 1117
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 206 times
Been thanked: 617 times

Re: CRC-8 algorithm in m3/y

Post by uhi22 »

Published a demo which runs over the 870 samples of the 0x249, calculates the CRC and compares it with the CRC from the log.
Result: all fits.
https://github.com/uhi22/tesla-crc
tg1929
Posts: 7
Joined: Sun Aug 14, 2022 9:55 am
Has thanked: 2 times
Been thanked: 1 time

Re: CRC-8 algorithm in m3/y

Post by tg1929 »

Thanks uhi22, nice description in the Readme. It might take me a few days to get a chance to test it out.
User avatar
uhi22
Posts: 1117
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 206 times
Been thanked: 617 times

Re: CRC-8 algorithm in m3/y

Post by uhi22 »

Added the check of the log for 0x229 into tesla-crc-filereader.c. Perfect fit, no remaining question marks.
Post Reply