NefMoto

Technical => Cluster and Immobilizer => Topic started by: laocoon on March 18, 2016, 01:40:54 PM



Title: ME7 Checksums for 95040 bins
Post by: laocoon on March 18, 2016, 01:40:54 PM
CAR: 2002 Audi TT 225 AMU ECU#8N0906018AN

I have played around with Turboat's python script for the "EEPROMTool." And while alot of his code works, there are a lot of "Magic Numbers" in the code. Normally this would be declared constants in some sort of documentation, but I can't find any documentation for the data stored here. I'd love to know where he got the original information to write the code in the first place.

His tool states my checksum is bad on my stock bin. Here is a dump of my bin file, the X's represent lines that do not follow the "FFFF - (LineNumber - 1) - SumOfBytes." This lines up with Turboat's noCheckSumPages and backupPage listing. Except for line 14 (two X's at the end). This doesn't seem to be a problem with his tool as line 14 in a different bin (from a thread comparing immo on vs immo off bins) happens too have the ECU Number stored and is checksummed. Is there a way to determine which lines need to be checksumed vs not or backed up. Where did these magic numbers come from?

Code:
001D0000  10 38 30 10 09 5A FF 14 70 31 36 30 33 30 32 5A  80.Zÿp160302Z	X
001D0010  05 01 01 00 77 6C 00 00 00 00 69 C1 00 A5 46 FD  .wl....iÁ.¥Fý
001D0020  05 01 01 00 77 6C 00 00 00 00 69 C1 00 A5 45 FD  .wl....iÁ.¥Eý
001D0030  04 01 DF 1F 12 20 3A 59 82 92 B3 00 01 00 6D FC  ß :Y‚’³..mü
001D0040  04 01 DF 1F 12 20 3A 59 82 92 B3 00 01 00 6C FC  ß :Y‚’³..lü
001D0050  07 02 6C 02 BF 01 03 00 29 04 2D 0E 07 00 52 FE  l¿.)-.Rþ
001D0060  00 00 A7 0D 52 0E 00 00 00 00 00 00 00 00 E6 FE  ..§.R........æþ
001D0070  05 04 00 04 D4 00 00 01 00 00 36 1A 00 00 C7 FE  .Ô....6..Çþ
001D0080  05 04 00 04 D4 00 00 01 00 00 36 1A 00 00 C7 FE  .Ô....6..Çþ X
001D0090  00 80 80 80 80 00 00 80 00 80 80 FF 00 00 78 FB  .€€€€..€.€€ÿ..xû
001D00A0  00 80 80 80 80 00 00 80 00 80 80 FF 00 00 78 FB  .€€€€..€.€€ÿ..xû X
001D00B0  05 07 00 00 20 54 52 55 57 54 01 00 00 00 22 FE  .. TRUWT..."þ
001D00C0  05 07 00 00 20 54 52 55 57 54 01 00 00 00 22 FE  .. TRUWT..."þ X
001D00D0  32 38 4E 34 32 31 30 32 37 36 30 36 41 01 2D FD  28N421027606A-ý
001D00E0  32 38 4E 34 32 31 30 32 37 36 30 36 41 01 2D FD  28N421027606A-ý X
001D00F0  55 5A 35 5A 30 42 33 30 32 36 30 30 39 01 DC FC  UZ5Z0B3026009Üü
001D0100  55 5A 35 5A 30 42 33 30 32 36 30 30 39 01 DC FC  UZ5Z0B3026009Üü X
001D0110  00 00 0E 6E E4 4A 00 00 00 00 00 00 00 00 11 11  ..näJ........ X
001D0120  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ X
001D0130  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ X
001D0140  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ XX
001D0150  01 07 00 00 00 00 00 00 00 00 00 00 00 00 E3 FF  ............ãÿ
001D0160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 EA FF  ..............êÿ
001D0170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 E9 FF  ..............éÿ
001D0180  6D 6D 00 00 00 00 00 00 00 00 00 00 00 00 0E FF  mm............ÿ
001D0190  00 00 00 00 00 00 00 00 00 00 00 00 00 00 E7 FF  ..............çÿ
001D01A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 E6 FF  ..............æÿ
001D01B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 E5 FF  ..............åÿ
001D01C0  00 00 38 4E 30 39 30 36 30 31 38 41 4E 20 47 FD  ..8N0906018AN Gý
001D01D0  30 30 30 34 00 00 00 00 00 00 00 00 00 00 1F FF  0004..........ÿ
001D01E0  01 02 00 00 00 00 00 00 00 00 00 00 00 00 DF FF  ............ßÿ
001D01F0  01 02 00 00 00 00 00 00 00 00 00 00 00 00 DF FF  ............ßÿ X


Title: Re: ME7 Checksums for 95040 bins
Post by: ddillenger on March 18, 2016, 02:17:08 PM
Read the FR :)


Title: Re: ME7 Checksums for 95040 bins
Post by: laocoon on March 18, 2016, 02:41:44 PM
Got a link? Apparently a search of the forums for "Forum rules" comes back with no results. ;-)


Title: Re: ME7 Checksums for 95040 bins
Post by: vwaudiguy on March 18, 2016, 03:36:06 PM
FR = Funktionsrahmen


Title: Re: ME7 Checksums for 95040 bins
Post by: laocoon on March 18, 2016, 03:53:15 PM
oh great... the German manuals? I was really trying to avoid picking up a new language... :p

*sigh* Thank you.


Title: Re: ME7 Checksums for 95040 bins
Post by: turboat on March 20, 2016, 07:01:27 AM
The magic numbers came from reading the immo threads on here, mostly this one: http://nefariousmotorsports.com/forum/index.php?topic=2973.0title=

I built it specifically for me7.5 1.8t, and it seems to work on all of those I have tested it on, but it incorrectly reports on some 2.7t ECUs (but still seems to work :/).

Feel free to patch, unfortunately RL kicked in so I haven't had much time to touch it in the last 18months,.