Pages: [1]
Author Topic: DSG CRC calculation  (Read 1289 times)
razon
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


« on: March 06, 2024, 03:48:27 PM »

Trying to figure out the CRC algo used at the end of the flash procedure for an older DQ250 (02E300051R 1967)  KWP protocol (lot number: F)
I tried CRC-32, JAMCRC and other checksum types... nothing so far gives me the correct CRC for the data block: 0x030000  - 0x0DFFFF
I also tried running the CRC on everything except the last 4 bytes of the data block... I still don't get the correct answer.

Any hints on what type of CRC is used on this transmission?


255310   760 8 29 00 0A 31 C5 03 00 00
255311   760 6 1A 0D FF FF 89 15

Logged
Howelley
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #1 on: March 08, 2024, 03:26:19 AM »

Well CRC32 would be a bit of a silly guess considering it's a 16bit result. It's CRC16 with poly 0x8408 and an initial value of 0xFFFF.

Not too difficult to find with a bit of disassembly  Wink
Logged
prj
Hero Member
*****

Karma: +1072/-481
Offline Offline

Posts: 6035


« Reply #2 on: March 08, 2024, 03:40:34 AM »

Well CRC32 would be a bit of a silly guess considering it's a 16bit result. It's CRC16 with poly 0x8408 and an initial value of 0xFFFF.

Not too difficult to find with a bit of disassembly  Wink

You are assuming he knows assembly.
All he did was a sniff and copy paste, otherwise it would not have been difficult.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
razon
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


« Reply #3 on: March 11, 2024, 01:42:42 PM »

Thanks Howelley,

yeah, I know some assembly; To be precise, it's: CRC-16/MCRF4XX

I tried CRC32 because I thought it's similar process to MED17 and yes I should of found it a lot sooner but I think I was running it on a corrupted file because I wasn't getting the proper crc.
All good now! Thanks Guys!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.015 seconds with 17 queries. (Pretty URLs adds 0s, 0q)