Writing a Diff tool, reading values from ECU dump

User topics relating to software that provides a tuning UI to alter ECU code and data

Moderator: Freon

Writing a Diff tool, reading values from ECU dump

Postby funks » Mon Sep 07, 2009 6:41 pm

Hello,

I'm trying to write a diff tool (compares the timing, fuel, and mivec tables and tells you what the differences are) and have a question about how the data is laid out for the labels..

For example (from ecuflash xml files)

<table name="High Octane Timing Map" address="5590b" swapxy="true">
<table name="Load" address="60f76" elements="22" />
<table name="RPM" address="60f42" elements="23" />
</table>

It's pretty easy to figure out how the matrix is supposed to be filled out, basically read 506 bytes starting from address 0x5590b then filling the matrix vertically (moving from top to bottom, then right).

The question I have is when I try to pull the X axis labels for the load address starting at 0x60f76 - it's where I run into a problem.

the byte sequence is as such

0x00 0x00 0x00 0x20 0x00 0x40 0x00 0x60 0x00 0x80 ....

This doesn't make sense to me, my assumption is that these labels should be 16-bit integers - reading the 22 elements (double byte) as such doesn't give me the correct decimal value which should be

"0" "10" "20" ....

what I'm getting is

"0x0000" = 0
"0x0020" = 32
"0x0040" = 64
"0x0060" = 96
"0x0080" = 128

Any ideas what I'm doing wrong?
funks
 
Posts: 2
Joined: Sun Jul 15, 2007 12:47 pm

Re: Writing a Diff tool, reading values from ECU dump

Postby radsdau » Wed Sep 09, 2009 4:06 pm

Perhaps there's scaling on the axis variables, y=x/3.2 or similar.
radsdau
 
Posts: 674
Joined: Wed Feb 08, 2006 6:56 pm

Re: Writing a Diff tool, reading values from ECU dump

Postby hackish » Tue Oct 20, 2009 4:57 am

Except for the Mazdas were all the values are floating point, most of these things are scaled so you need to apply the math function on them. For a hint look at the table def in ecuflash.

-Michael
hackish
 
Posts: 17
Joined: Thu Oct 19, 2006 2:25 pm


Return to Tuning Software

Who is online

Users browsing this forum: No registered users and 4 guests