RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Thu Dec 25, 2025 7:40 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Whats that bitmask all about? Measurement_lv_mil_on
PostPosted: Wed Nov 18, 2015 4:27 am 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
hello guys,

maybe someone smarter then me can chime in an give me a hint on this.

I´m trying to find the measurement value about the activation on the malfunction indicator lamp (mil). From the a2l i know its used at 0xFD1D.

Nevertheless there are 2 other measurement values that are connected to 0xFD1D.

Code:
/begin MEASUREMENT lv_mil_on
         "lv_mil_on"
         UBYTE
         RANGE________ON___1H__1H____OFF_
         2 2
         0 255
         ECU_ADDRESS 0xFD1D
         BIT_MASK 0x10
      /end MEASUREMENT


Code:
/begin MEASUREMENT lv_req_heat
         "lv_req_heat"
         UBYTE
         RANGE________0___0H__0H____1_819
         2 2
         0 255
         ECU_ADDRESS 0xFD1D
         BIT_MASK 0x80
      /end MEASUREMENT


Code:
/begin MEASUREMENT lv_var_sap
         "lv_var_sap"
         UBYTE
         RANGE________0___0H__0H____1_824
         2 2
         0 255
         ECU_ADDRESS 0xFD1D
         BIT_MASK 0x4
      /end MEASUREMENT


How do i deal with it in IDA?

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: Whats that bitmask all about? Measurement_lv_mil_on
PostPosted: Wed Nov 18, 2015 10:09 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
viewtopic.php?t=10625


Top
 Profile  
 
 Post subject: Re: Whats that bitmask all about? Measurement_lv_mil_on
PostPosted: Wed Nov 18, 2015 11:06 am 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Thanks, found it after doing a google search on "BMW bitmask" :shock:

So i´ll try to understand the following. As 0xFD1D can´t be found in the disassembly, i´d choose 0xFD1A which is used two times:

Code:
/begin MEASUREMENT lv_aj_act
         "lv_aj_act"
         UBYTE
         RANGE________0___0H__0H____1_824
         2 2
         0 255
         ECU_ADDRESS 0xFD1A
         BIT_MASK 0x4
      /end MEASUREMENT
      /begin MEASUREMENT lv_aj_iga_cr
         "lv_aj_iga_cr"
         UBYTE
         RANGE________0___0H__0H____1_824
         2 2
         0 255
         ECU_ADDRESS 0xFD1A
         BIT_MASK 0x8
      /end MEASUREMENT


In the code, FD1A.* gets used many times. Unfortunally, there are FD1A.0 to FD1A.15 used in the code. So i tend to think its using 16 bits. I don´t think its as easy to say FD1A.4 is lv_aj_act and FD1A.8 is lv_aj_iga_cr? Nevertheless, why are there 16 different bit used?

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: Whats that bitmask all about? Measurement_lv_mil_on
PostPosted: Wed Nov 18, 2015 3:05 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
FDXX.0 = 0 means bit 0 = 0
FDXX.1 = 1 means bit 1 = 1

bit 0 = 0
bit 1 = 2
bit 3 = 4
bit 4 = 8

and so on...

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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