Pages: 1 [2]
Author Topic: B5 Audi S4 8D0907551M 002 RAM Variables  (Read 22324 times)
setzi62
Full Member
***

Karma: +142/-0
Offline Offline

Posts: 249


« Reply #15 on: May 12, 2011, 10:30:13 AM »

pm me your email, then I can collect & send something for you to test.
Logged
Tony@NefMoto
Administrator
Hero Member
*****

Karma: +130/-4
Offline Offline

Posts: 1389


2001.5 Audi S4 Stage 3


« Reply #16 on: May 17, 2011, 12:06:59 AM »

Great collection. Lots of these variables have not been prepared for logging even by Bosch.
Just two minor things I saw:
(Address=0x380984, DataType=UINT8, Scale=(1.0 / 1.25), Offset=(0.0), Name="Vehicle Speed", Units="km/h")
I think it must be Scale=(1.25) instead.

(Address=0x380F88, DataType=INT16, Scale=(1.0 / 256.0), Offset=(0.0), Name="Bank 1 Intake Camshaft Adjustment", Units="Degrees")
(Address=0x380F8A, DataType=INT16, Scale=(1.0 / 256.0), Offset=(0.0), Name="Bank 2 Intake Camshaft Adjustment", Units="Degrees")
Here Bank 1 and Bank 2 must be exchanged.

The vehicle speed is stored in RAM as the actual speed times 1.25, so the scale of 1.0 / 1.25 is needed to convert to the real value.

All of the variables I posted were derived using the code that implements the KWP1281 measuring blocks function. So unless the measuring blocks are wrong, then I am pretty sure that the intake cam adjustments are for the correct banks.

Any info on why you think these variables are wrong?

Logged

Remember you have to log in if you want to see the file attachments!
Info or questions, please add to the wiki: http://www.nefariousmotorsports.com/wiki
Follow NefMoto developments on Twitter: http://twitter.com/nefmoto
setzi62
Full Member
***

Karma: +142/-0
Offline Offline

Posts: 249


« Reply #17 on: May 17, 2011, 05:35:48 AM »

The vehicle speed is stored in RAM as the actual speed times 1.25, so the scale of 1.0 / 1.25 is needed to convert to the real value.

All of the variables I posted were derived using the code that implements the KWP1281 measuring blocks function. So unless the measuring blocks are wrong, then I am pretty sure that the intake cam adjustments are for the correct banks.

Any info on why you think these variables are wrong?
Hi Tony,

for the vehicle speed it is quite easy to see: if you would calculate RAM-Value / 1.25,
the variable (is an UINT8) can keep only 255 / 1.25 km/h = 204 km/h.
Having a look at the definition of 'vfzg' in ASAP2 files, it is of type 'vfzg_ub_q1p25'
and it can store speeds from 0 .. 318.75 km/h. The definition of 'vfzg_ub_q1p25' contains
conversion factors (COEFFS 0 1 0 0 0 1.25) which result in the conversion
formula: INT = (0*PHYS^2 + 1*PHYS + 0) / (0 * PHYS^2 + 0 * PHYS + 1.25) = PHYS / 1.25
-> You have to multiply the internal value with 1.25 to get to the physical km/h.

For the two intake cam adjustments:
I used the result type numbers defined in the Funktionsrahmen, section TKMWL, page 1555:
179 wnwi_w  Nockenwellenverstellung Bank1 SY_BDE=0               degKW 34 100 +/-100 degKW
180 wnwi2_w Nockenwellenverst.Bank2       SY_BDE=0 & SY_STERVK=1 degKW 34 100 +/-100 degKW

When I look into the image, type 179(0xB3) uses address 0x380F8A and type 180(0xB4) uses 0x380F88.
Therefore I was thinking they are mixed up in your definition.

But in the meas group definitions in the image, it seems like they mixed up also Bank1 and Bank2
for the measurement reports of ME7.1:
measgroup 090: 0001(nmot   ), 008D(      ), 00B4(wnwi2_w), 00B3(wnwi_w )
measgroup 091: 0001(nmot   ), 0002(rl    ), 008D(       ), 00B4(wnwi2_w)
measgroup 092: 0001(nmot   ), 0002(rl    ), 008D(       ), 00B3(wnwi_w )

For a single-bank engine, type B3 is used in the measurement group definition:
measgroup 090: 0001(nmot   ), 025F(      ), 00B3(wnwi_w ), 0000(----   )
measgroup 091: 0001(nmot   ), 0002(rl    ), 025F(       ), 00B3(wnwi_w )
measgroup 092: 0000(----   ), 0000(----  ), 0000(----   ), 0000(----   )

Now I'm confused, seems like Bosch mixed up two times. Can't say which one is for which bank,
but most probably the first address is for Bank1 and the second for Bank2 as you said.
Is there a way to determine the bank from the code which uses the variables?


Logged
Pages: 1 [2]
  Print  
 
Jump to:  

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