XML Formatting confusion

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

Moderator: Freon

XML Formatting confusion

Postby New2Scoobs » Fri Mar 10, 2006 9:03 am

Epifan, could you (or anyone else that knows) post a few real life examples of how to correctly format statements in XML files.
I don't have a clue how (or when) to use the BigEndian feature.

Also, when you release updates with new & improved features that require us to modify of our XML files could you please also provide some real life samples of an XML file utilising the new feature(s)

We are not all programers you know! :wink:

Thanks
New2Scoobs
 
Posts: 60
Joined: Fri Nov 04, 2005 5:55 am

Postby qoncept » Fri Mar 10, 2006 12:37 pm

For Subaru ECUs you should pretty much always be using big endian.
qoncept
 
Posts: 249
Joined: Tue Oct 04, 2005 6:43 pm
Location: Montgomery, AL

Postby New2Scoobs » Sat Mar 11, 2006 12:23 pm

qoncept wrote:For Subaru ECUs you should pretty much always be using big endian.


OK, so that answers WHEN to use BigEndian - Now all I need to know is HOW to use BigEndian in my XML lines :)
New2Scoobs
 
Posts: 60
Joined: Fri Nov 04, 2005 5:55 am

Postby qoncept » Sun Mar 12, 2006 12:11 am

I'm not sure exactly what you have, but any time you're using [byte0] and [byte1], reverse them. I'm not sure how much you know, but big and little endian tells the application what order to read the bytes in.
qoncept
 
Posts: 249
Joined: Tue Oct 04, 2005 6:43 pm
Location: Montgomery, AL

Postby epifan » Sun Mar 12, 2006 12:24 am

Add <default_reverse_bytes value="True"/> tag in <config> tag to change ecuEdit for work with big-endian numeric representation

http://forums.openecu.org/viewtopic.php?p=2591
epifan
 
Posts: 197
Joined: Sat Nov 26, 2005 1:23 am

Postby New2Scoobs » Sun Mar 12, 2006 9:27 am

epifan wrote:Add <default_reverse_bytes value="True"/> tag in <config> tag to change ecuEdit for work with big-endian numeric representation

http://forums.openecu.org/viewtopic.php?p=2591


OK that makes sense now. But after adding the above tag my RPM row and Engine load column data is now incorrect. Instead of RPM data going from 800,1200,1600 etc it is now listed as 204800, 307200, 409600.
Below are a couple of lines from my XML file - what needs to change to get the RPM & Engine load data correct?

<map name="Low Det Fuel Map" type="3">
<rows count="18" offset="#292b5" power="2" format="%.0f" func_2val="[value]*50" func_val2="[value]/50" desc="RPM"/>
<cols count="16" offset="#292d9" power="2" format="%.4f" func_2val="[value]/8192" func_val2="[value]*8192" desc="Load (Air/Cylinder charge)"/>
<data offset="#292fc" power="1" format="%.2f" func_2val="14.7/(1 + ([value] / 128))" func_val2="(14.7*128)/[value]-128" color_dir="1" inc_dir="0" desc="Air/Fuel Ratio"/>
</map>
New2Scoobs
 
Posts: 60
Joined: Fri Nov 04, 2005 5:55 am

Postby xswrex » Sun Mar 12, 2006 11:01 pm

New2Scoobs wrote:func_2val="[value]/256*50"


that should do the trick
xswrex
 
Posts: 110
Joined: Thu Oct 20, 2005 3:50 am

Postby x99percent » Mon Apr 10, 2006 11:28 am

xswrex wrote:
New2Scoobs wrote:func_2val="[value]/256*50"


that should do the trick

...and what about the load?

[value]/8192 no longer works with <default_reverse_bytes value="True"/>
x99percent
 
Posts: 53
Joined: Wed Jan 12, 2005 11:13 am

Postby xswrex » Mon Apr 10, 2006 10:21 pm

x99percent wrote:
xswrex wrote:
New2Scoobs wrote:func_2val="[value]/256*50"


that should do the trick

...and what about the load?

[value]/8192 no longer works with <default_reverse_bytes value="True"/>


it should work! something else maybe is out of order???

In the functions toRPM=[value]/5.12
I use only multipliers
toRPM=[value]*0.195312500000000

same logic for load [value]/8192 should work but in any case try this
toLoad=[value]*0.000122070312500
xswrex
 
Posts: 110
Joined: Thu Oct 20, 2005 3:50 am

Postby x99percent » Tue Apr 11, 2006 3:59 am

xswrex wrote:
x99percent wrote:
xswrex wrote:
New2Scoobs wrote:func_2val="[value]/256*50"


that should do the trick

...and what about the load?

[value]/8192 no longer works with <default_reverse_bytes value="True"/>


it should work! something else maybe is out of order???

In the functions toRPM=[value]/5.12
I use only multipliers
toRPM=[value]*0.195312500000000

same logic for load [value]/8192 should work but in any case try this
toLoad=[value]*0.000122070312500


If I turn off reverse bytes for that axis only (reverse_bytes="False"), then [value]/8192 works perfectly.
x99percent
 
Posts: 53
Joined: Wed Jan 12, 2005 11:13 am

Postby epifan » Tue Apr 11, 2006 5:01 am

x99percent wrote:If I turn off reverse bytes for that axis only (reverse_bytes="False"), then [value]/8192 works perfectly.

it's not right! [value]/8192 is correct formula. Imho, you must shift offset to Load sequence by 1 byte.
epifan
 
Posts: 197
Joined: Sat Nov 26, 2005 1:23 am


Return to Tuning Software

Who is online

Users browsing this forum: No registered users and 5 guests

cron