PDA

View Full Version : calculate mileagre from dump



saturnojm
7th November, 2016, 06:39 AM
hi mates, i want to calculate the mileage from the eeprom dumps by making the math by my own.
I am using tachosoft to locate where is the mileage stored in the dump and then i put than hex numbers in the calc.
for example I have a dump like this
Car type: Toyota 4Runner - 93c66 - 2003-2004 years
The mileage is stored in the next lines:
0000: 08 00 08 00 08 00 08 00 08 00 08 00 08 00 08 00
0010: 08 00 08 00 08 00 08 00 08 00 08 00 08 00 08 00
0020: 08 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0040: FF FF FF FF xx xx xx xx xx xx xx xx xx xx xx xx
where the next bytes:
0A 00 - is a mileage

in my dump 0A 00 is 8A 28... so 8A 28=10378 DEC *17=176426 and thats exactly my mileage on the dashboard

but my question is when I have a dump like this
Car type: Toyota Camry Denso - 93c56 - 2005-2010 years
The mileage is stored in the next lines:
0060: xx xx FF FF EF xx FF FF EF xx FF FF EF xx xx xx
where the next bytes:
FF FF EF - is a mileage

in my dump FF FF EF is FF FF EA and when i convert it to DEC=15400959
how do i calculate the mileage on this one?. note that the mileage of the cluster is 124670

clusters
7th November, 2016, 06:46 AM
Been covered many times in the dashboard forum, denso algorithm. A little searching will do....

You never convert those to decimal, and Tachosh1t is useless if the file is byte swapped