Pages: [1]
Author Topic: B_kuppl & B_br same address!!!!!!!!  (Read 4425 times)
leeimad
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 22


« on: November 24, 2018, 12:44:02 PM »

Hello everyone
in my A2L file for bosch ME9 i found brake pedal pressed (B_br) andclutch pedal pressed (B_kuppl) in the same address!!!! i cant believe it how it works?Huh
i compare to other A2l I find every one has a specific address
------------------------------------------------------
/begin MEASUREMENT

    B_br
    "Brakes switch info: brakes operated"
    UWORD
    B_TRUE
    1
    100
    0.00
    1.00000000000

    BIT_MASK 0x2
    FORMAT "%13.11"
   
    ECU_ADDRESS 0x804228
    /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA
    /begin IF_DATA ASAP1B_ADDRESS  KP_BLOB 0x804228 /end IF_DATA
    /begin IF_DATA ETK  KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA
    /begin IF_DATA ASAP1B_KWP2000  KP_BLOB  0x804228  INTERN  0x2  /end IF_DATA
   /begin IF_DATA M6   KP_BLOB 0x804228 0 0x2 /end IF_DATA

/end MEASUREMENT
----------------------------------------------------------
/begin MEASUREMENT

    B_kuppl
    "Condition clutch pedal pressed"
    UWORD
    B_TRUE
    1
    100
    0.00
    1.00000000000

    BIT_MASK 0x40
    FORMAT "%13.11"
   
    ECU_ADDRESS 0x804228
    /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA
    /begin IF_DATA ASAP1B_ADDRESS  KP_BLOB 0x804228 /end IF_DATA
    /begin IF_DATA ETK  KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA
    /begin IF_DATA ASAP1B_KWP2000  KP_BLOB  0x804228  INTERN  0x2  /end IF_DATA
   /begin IF_DATA M6   KP_BLOB 0x804228 0 0x2 /end IF_DATA

/end MEASUREMENT
Logged
leeimad
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 22


« Reply #1 on: November 24, 2018, 12:45:27 PM »

Hello everyone
in my A2L file for bosch ME9 i found brake pedal pressed (B_br) andclutch pedal pressed (B_kuppl) in the same address!!!! i cant believe it how it works?Huh
i compare to other A2l I find every one has a specific address
------------------------------------------------------
/begin MEASUREMENT

    B_br
    "Brakes switch info: brakes operated"
    UWORD
    B_TRUE
    1
    100
    0.00
    1.00000000000

    BIT_MASK 0x2
    FORMAT "%13.11"
   
    ECU_ADDRESS 0x804228
    /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA
    /begin IF_DATA ASAP1B_ADDRESS  KP_BLOB 0x804228 /end IF_DATA
    /begin IF_DATA ETK  KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA
    /begin IF_DATA ASAP1B_KWP2000  KP_BLOB  0x804228  INTERN  0x2  /end IF_DATA
   /begin IF_DATA M6   KP_BLOB 0x804228 0 0x2 /end IF_DATA

/end MEASUREMENT
----------------------------------------------------------
/begin MEASUREMENT

    B_kuppl
    "Condition clutch pedal pressed"
    UWORD
    B_TRUE
    1
    100
    0.00
    1.00000000000

    BIT_MASK 0x40
    FORMAT "%13.11"
   
    ECU_ADDRESS 0x804228
    /begin IF_DATA ASAP1B_CCP KP_BLOB 0x00 0x804228 2 /end IF_DATA
    /begin IF_DATA ASAP1B_ADDRESS  KP_BLOB 0x804228 /end IF_DATA
    /begin IF_DATA ETK  KP_BLOB 0x804228 INTERN 0x2 /end IF_DATA
    /begin IF_DATA ASAP1B_KWP2000  KP_BLOB  0x804228  INTERN  0x2  /end IF_DATA
   /begin IF_DATA M6   KP_BLOB 0x804228 0 0x2 /end IF_DATA

/end MEASUREMENT
Logged
john9357
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 54


« Reply #2 on: November 24, 2018, 03:37:12 PM »

Bit mask 0b00000010 vs bit mask 0b01000000
Logged
SB_GLI
Hero Member
*****

Karma: +116/-10
Offline Offline

Posts: 1022


« Reply #3 on: November 24, 2018, 05:49:40 PM »

Bitmask.  0x2 will get the value from the second bit, 0x40 gets the value from the seventh bit.
Logged
leeimad
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 22


« Reply #4 on: November 25, 2018, 01:42:08 PM »

Bitmask.  0x2 will get the value from the second bit, 0x40 gets the value from the seventh bit.
thank you
but in the functions call how can I distinguish wich variable is called??

Logged
daniel2345
Full Member
***

Karma: +11/-7
Offline Offline

Posts: 197


« Reply #5 on: November 25, 2018, 01:54:54 PM »

What do you think is the next instruction for?

Do you know the difference between bit and byte?

Get an instruction manual and read about the rotate instruction and the conditional branch also.
« Last Edit: November 25, 2018, 02:31:55 PM by daniel2345 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.033 seconds with 16 queries. (Pretty URLs adds 0.004s, 0q)