RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 4:13 pm

All times are UTC





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Bit enable/disable in RR definitions
PostPosted: Fri Mar 07, 2014 12:33 am 
Offline
Senior Member

Joined: Fri Feb 10, 2006 11:04 pm
Posts: 2661
Location: RIP
Is there a way to only enable/disable a particular bit of a byte using RR? Like if I wanted to only enable/disable Bit 3 of a Byte while leaving everything else alone? I know I can hard code the whole byte to a particular value using a switch but what if different ROMs had various bits set but I only wanted to flip a certain bit while leaving the others alone?

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Fri Mar 07, 2014 3:16 am 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
Yes.
Add a bit attribute to the address element for that parameter.
Code:
<address bit="3">0xFF650D</address>

The bit is 0 base so you can use 0 - 7, where 7 is the most significant and 0 is least.


A complete example:
Code:
<ecuparam id="E2000" name="Switch bit 3" desc="E1403 [ 1 = On and 0 = Off ]" target="1">
  <ecu id="0123456789">
    <address bit="3">0xFF650D</address>
  </ecu>
  <conversions>
    <conversion units="On/Off" expr="x" format="0" gauge_min="0" gauge_max="1" gauge_step="1" />
  </conversions>
</ecuparam>


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Sat Mar 08, 2014 4:39 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 11:04 pm
Posts: 2661
Location: RIP
Kickass! Thanks.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Tue Mar 11, 2014 3:09 am 
Offline
Senior Member

Joined: Fri Feb 10, 2006 11:04 pm
Posts: 2661
Location: RIP
Is that for RR or for ECUflash? I can't figure out where to add that. Figured the whole thing can go into a specific ECU version section. But I don't know what I'm doing. Sorry for being a n00b.

I want to add Bit 3 enable/disable at address 0x8h for the following definition file.
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xhtml1-lat1 [
<!ELEMENT xhtml1-lat1 (#PCDATA)>
<!ENTITY deg "&#176;" ><!-- degree sign -->
<!ENTITY micro "&#181;" ><!-- micro sign -->
]>
<roms>
<rom>
<!-- In this BASE section define all the common table data and axis attributes.
Leave out the ROM specific address attribute. -->
<romid>
<xmlid>BMWMS41BASE</xmlid>
<internalidaddress>0000</internalidaddress>
<internalidstring>00000000</internalidstring>
<ecuid>00000000</ecuid>
<year>1996-1999</year>
<market>USDM</market>
<make>BMW</make>
<model>M3</model>
<submodel>E36</submodel>
<transmission>MT</transmission>
</romid>


<table type="2D" name="Speed Limiter D" category="Speed Limiter" storagetype="uint8" sizey="6" userlevel="1">
<scaling units="km/h" expression="x" to_byte="x" format="0" fineincrement="1" coarseincrement="10" />
<table type="Y Axis" name="???" storagetype="uint8" sizey="6">
<scaling units="???" expression="x" to_byte="x" format="0" fineincrement="1" coarseincrement="10" />
</table>
<description>Speed limiter</description>
</table>


</rom>

<rom base="BMWMS41BASE">
<!-- In this ROM specific section define only the attributes missing or that need
to be changed compared to the common table data and axis attributes in the BASE.
This will typically be the storageaddress and sometimes the size entries. -->
<romid>
<xmlid>0912</xmlid>
<internalidaddress>C</internalidaddress>
<internalidstring>0912</internalidstring>
<ecuid>00000000</ecuid>
<year>1996-1999</year>
<market>USDM</market>
<make>BMW</make>
<model>M3</model>
<submodel>E36</submodel>
<transmission>MT</transmission>
<memmodel>80C166W-M-T3</memmodel>
<filesize>24kb</filesize>
</romid>

<table name="Speed Limiter D" storageaddress="0x1956">
<table type="Y Axis" storageaddress="0x1381" />
</table>



</rom>
</roms>

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Tue Mar 11, 2014 1:37 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
Oh, what I posted was for Logging bits.
I think the Editor would need a new Custom parser to perform bitwise operations.

So for now you will need to stick to the 'uint8' type and then enter a byte with the bits set or cleared as you desire.


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Tue Mar 11, 2014 2:33 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 11:04 pm
Posts: 2661
Location: RIP
Oh, ok thanks.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: Bit enable/disable in RR definitions
PostPosted: Wed Mar 25, 2015 5:24 pm 
Offline
Newbie

Joined: Tue Mar 18, 2014 8:56 pm
Posts: 1
Hi guys,

I'm looking to group 8 bit "switches" together to display or modify the value of a single byte at a specified address in a definition file. Can that be done in the current version of RomRaider?

Thanks,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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