RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 5:15 pm

All times are UTC




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 2:12 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 11:27 pm
Posts: 2032
Location: Northern NSW
poohbear wrote:
Throttlehappy: Where did you come up with the F3FAC9? Or is that just knowing where the ecuID would be from previous definitions?

When you say define the table 3d and 3d and even even the singles... Are you actually defining what each table is? Or are you just going through fidning which table is which? IE this is a 3d table since I see its 12x12 or 144 long so I will define it as such... Then when you can view the table in romraider is when you label what each table is...

Thanks for the hint on the hex editor... Searched F3FAC9 and found 11 81125950 ... However it was in the d9d10... attached is a screen shot...

dschultz: I did not post the rom since I wasnt making a request to have a definition written... However if you want to take a look I have attached it here (it is a stock 2012 sti sedan USDM rom)... If you would like I can make another post with the stock rom and request for the definition... However there is not huge rush. I have not seen anyone else make a request for this rom...

EDIT: Wow my screen shots are horrible... Is there a ss option in hxd that im missing? After I print screen and scale the image to upload it becomes to distorted for any use..


ECU ID is: 8112595007, the 07 is always the last 2 digits :) The address is D9D18 but that is irrelevant as the F3FAC9 is what EcuFlash uses to in Test Write to see if the existing Ecu ID matches the loaded Rom Ecu ID. A Test Write will fail if the 2 Roms have different Ecu ID's

I use Photoshop or MSPaint to crop the screenshot before posting :)


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 2:19 am 
Offline
Experienced

Joined: Tue Jan 19, 2010 2:31 am
Posts: 191
Yeah I used paint... But after I scale it down you cannot even read it lol...

When you say you define the 3d and 2d tables etc are you saying you are putting them together as in what they are (just defining the x and y and then viewing what they are in romraider)... You define the tables then look in romraider to see what they are? Or can you actually see what the table is using your hex editor?
I guess what im asking is how are you defining the tables using the hex editor?
I dont see how you can see whats what with HxD... Guess and check but that seems like it would take a lifetime...


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 2:32 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 11:27 pm
Posts: 2032
Location: Northern NSW
Watch out when you define this... there is a new set of AVCS tables which are complete reversed versions of the Cruise AVCS table(ie 20 degrees of AVCS = -20 on the other table) which may be to stop the RomRaider community from changing things around too much?


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 2:57 am 
Offline
Experienced

Joined: Tue Jan 19, 2010 2:31 am
Posts: 191
are you comparing two roms in HxD then looking at what each table corresponds to in the known xml definition? IS that how you saw the invert of the avcs?


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 3:23 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 11:27 pm
Posts: 2032
Location: Northern NSW
poohbear wrote:
Yeah I used paint... But after I scale it down you cannot even read it lol...

When you say you define the 3d and 2d tables etc are you saying you are putting them together as in what they are (just defining the x and y and then viewing what they are in romraider)... You define the tables then look in romraider to see what they are? Or can you actually see what the table is using your hex editor?
I guess what im asking is how are you defining the tables using the hex editor?
I dont see how you can see whats what with HxD... Guess and check but that seems like it would take a lifetime...


800rpm is always the same value in Hex, so this is an easy starting point. However, in a lot of cases, the X axis or even the Z data is common between 2 tables. I copy and paste

poohbear wrote:
are you comparing two roms in HxD then looking at what each table corresponds to in the known xml definition? IS that how you saw the invert of the avcs?


Essentially yes, then modifying the cell values


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 3:45 am 
Offline
Experienced

Joined: Tue Jan 19, 2010 2:31 am
Posts: 191
so you are looking for a constant... IE 800 rpm... then you know what axis 800 falls under and can define the the z value and either the x or y by process of elimination... Then open in romraider to view what everything is?...

whats 800 in hex? and thats what your searching for.. One by one looking for the loaction and adding in to what it should be?

Now since you're comparing to another rom. You have two hex files open looking to the closest address to the known rom; and assuming that the closest address is what is defined in the previous rom correct? Then copy that memory location into the new xml to be used as the definition?

what about areas of memory that do not have any revs? Like maf scaling for example? Is this just looking for the memory section thats closest to whats defined in the known rom?


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 4:39 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 11:27 pm
Posts: 2032
Location: Northern NSW
poohbear wrote:
so you are looking for a constant... IE 800 rpm... then you know what axis 800 falls under and can define the the z value and either the x or y by process of elimination... Then open in romraider to view what everything is?...

whats 800 in hex? and thats what your searching for.. One by one looking for the loaction and adding in to what it should be?

Now since you're comparing to another rom. You have two hex files open looking to the closest address to the known rom; and assuming that the closest address is what is defined in the previous rom correct? Then copy that memory location into the new xml to be used as the definition?

what about areas of memory that do not have any revs? Like maf scaling for example? Is this just looking for the memory section thats closest to whats defined in the known rom?


I usually use the first four X axis values, then use the Y axis and Z data from the known table to confirm the new table is the same.

If you use the known ROM's definition, scroll through and find the MAF cell address starting point, then search the new rom for the same values, you will easily find the new ROM MAF table. That particular table is unique ;)


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 1:26 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
throttlehappy wrote:
To find the Ecu ID, use HxD and search for: F3FAC9(as a Hex Value, not Text String) which should be in the D3D00 region of the ROM and the Ecu ID will be the 10 values prior in Hex and will have 07 in front of the F3FAC9
This thread works in a hex editor too for finding the ECU ID: viewtopic.php?t=6295
Attachment:
find_ecu_id.png


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 1:46 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
throttlehappy wrote:
ECU ID is: 8112595007, the 07 is always the last 2 digits :)
I'm sorry to say that this is not always the case. Just have a look in the current logger.xml and you can see the variation in them.
xpath=/logger/protocols/protocol/ecuparams/ecuparam/ecu/@id

My post above is a better way to find the ECU ID. And as I mentioned before, the last word of the ROM is a pointer to where the CAL ID is stored.
Attachment:
find_cal_id.png


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 2:01 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
poohbear wrote:
whats 800 in hex?
It's actually a hex representation of an IEEE754 floating point value.
800 = 0x44480000
http://www.h-schmidt.net/FloatApplet/IEEE754.html


Top
 Profile  
 
 Post subject: Re: Understanding the definitions
PostPosted: Tue Dec 27, 2011 11:25 pm 
Offline
Senior Member

Joined: Sat Feb 12, 2011 11:27 pm
Posts: 2032
Location: Northern NSW
Your right, I just noticed a trend of the 08+ H4T ECU's using 07 and assumed it was accurate. :)

throttlehappy wrote:
Watch out when you define this... there is a new set of AVCS tables which are complete reversed versions of the Cruise AVCS table(ie 20 degrees of AVCS = -20 on the other table) which may be to stop the RomRaider community from changing things around too much?


<table name="Intake Cam Advance Angle Cruise (AVCS)" storageaddress="DB2BC" sizex="19">
<table type="X Axis" storageaddress="DB228" />
<table type="Y Axis" storageaddress="DB274" />
</table>
<table name="Intake Cam Advance Angle Non-Cruise (AVCS)" storageaddress="DB5FC" sizex="19">
<table type="X Axis" storageaddress="DB568" />
<table type="Y Axis" storageaddress="DB5B4" />
</table>
<table name="Odd Intake Cam Advance (AVCS)" storageaddress="DB93C" sizex="19"> TEST
<table type="X Axis" storageaddress="DB8A8" />
<table type="Y Axis" storageaddress="DB8F4" />
</table>

There is a corresponding exhaust cam table as well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl