Pages: [1] 2
Author Topic: O2 voltage discrepancy between ME7L and VCDS/ECUx  (Read 16374 times)
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« on: January 24, 2014, 12:04:27 PM »

On a similar topic, i'm told the ME7L nb voltage logs are different from voltages reported by both VCDS and ECUx

Does ME7L have the wrong conversion?

If so, this would affect this wb logging hack as well.

Can somebody verify?

ME7L says factor 0.00521569 (1/191.7), offset 0.2

Code:
katbf           , {}                                , 0x380ABF,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk}
katbf2          , {}                                , 0x380AC0,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk Bank 2}
ub              , {BatteryVoltage}                  , 0x380AF3,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung}
uhsv            , {}                                , 0x3809BC,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat}
uhsv2           , {}                                , 0x3809BD,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat Bank 2}
ushk            , {O2SVoltageSensor2}               , 0x380A91,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator}
ushk2           , {O2SVoltageSensor2Bank2}          , 0x380A92,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator Bank 2}
usvk            , {O2SVoltageSensor1}               , 0x380AA6,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat}
usvk2           , {O2SVoltageSensor1Bank2}          , 0x380AA7,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat Bank 2}
uzue            , {}                                , 0x380DAE,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {}
wub             , {BatteryVoltage}                  , 0x3809C1,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung; vom AD-Wandler erfa’ter Wert}

for refernce, 0xff * 0.00521569 is 1.33v

so with offset .2, that is range of 0.2v - 1.35v
« Last Edit: February 23, 2014, 05:56:31 PM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #1 on: February 20, 2014, 06:49:43 PM »

On a similar topic, i'm told the ME7L nb voltage logs are different from voltages reported by both VCDS and ECUx

Does ME7L have the wrong conversion?

If so, this would affect this wb logging hack as well.

Can somebody verify?

ME7L says factor 0.00521569 (1/191.7), offset 0.2

Code:
katbf           , {}                                , 0x380ABF,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk}
katbf2          , {}                                , 0x380AC0,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk Bank 2}
ub              , {BatteryVoltage}                  , 0x380AF3,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung}
uhsv            , {}                                , 0x3809BC,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat}
uhsv2           , {}                                , 0x3809BD,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat Bank 2}
ushk            , {O2SVoltageSensor2}               , 0x380A91,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator}
ushk2           , {O2SVoltageSensor2Bank2}          , 0x380A92,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator Bank 2}
usvk            , {O2SVoltageSensor1}               , 0x380AA6,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat}
usvk2           , {O2SVoltageSensor1Bank2}          , 0x380AA7,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat Bank 2}
uzue            , {}                                , 0x380DAE,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {}
wub             , {BatteryVoltage}                  , 0x3809C1,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung; vom AD-Wandler erfa’ter Wert}

for refernce, 0xff * 0.00521569 is 1.33v

so with offset .2, that is range of 0.2v - 1.35v

No, an error in that conversion wouldn't affect this. ushk(2) is not used for this and should be 0v with CWKONLS set to 17.

We are using the raw voltage uushk_w (factor 0.00488281, offset 0).
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #2 on: February 20, 2014, 10:00:57 PM »

No, an error in that conversion wouldn't affect this. ushk(2) is not used for this and should be 0v with CWKONLS set to 17.

We are using the raw voltage uushk_w (factor 0.00488281, offset 0).

Why are the two factors different? Does it explain the VCDS/ECUx/ME7L discrepancy?

Apologies for straying off topic, but I kinda want to get to the bottom of this.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #3 on: February 23, 2014, 05:47:28 PM »

On a similar topic, i'm told the ME7L nb voltage logs are different from voltages reported by both VCDS and ECUx

Does ME7L have the wrong conversion?

If so, this would affect this wb logging hack as well.

Can somebody verify?

ME7L says factor 0.00521569 (1/191.7), offset 0.2

Code:
katbf           , {}                                , 0x380ABF,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk}
katbf2          , {}                                , 0x380AC0,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Signal nach Speicher normiert vergleichbar mit ushk Bank 2}
ub              , {BatteryVoltage}                  , 0x380AF3,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung}
uhsv            , {}                                , 0x3809BC,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat}
uhsv2           , {}                                , 0x3809BD,  1,  0x0000, {V}       , 0, 0,    0.0195312,      0, {Spannung an der Heizerendstufe vor Kat Bank 2}
ushk            , {O2SVoltageSensor2}               , 0x380A91,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator}
ushk2           , {O2SVoltageSensor2Bank2}          , 0x380A92,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde hinter Katalysator Bank 2}
usvk            , {O2SVoltageSensor1}               , 0x380AA6,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat}
usvk2           , {O2SVoltageSensor1Bank2}          , 0x380AA7,  1,  0x0000, {V}       , 0, 0,   0.00521569,    0.2, {Spannung Lambdasonde vor Kat Bank 2}
uzue            , {}                                , 0x380DAE,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {}
wub             , {BatteryVoltage}                  , 0x3809C1,  1,  0x0000, {V}       , 0, 0,       0.0704,      0, {Batteriespannung; vom AD-Wandler erfa’ter Wert}

for refernce, 0xff * 0.00521569 is 1.33v

so with offset .2, that is range of 0.2v - 1.35v

Why are the two factors different? Does it explain the VCDS/ECUx/ME7L discrepancy?

Apologies for straying off topic, but I kinda want to get to the bottom of this.

The conversion is Factor * hex - Offset.

So in the case you referred the 0.2 offset needs to be subtracted.

I will only be referring to ushk and ushk_w but the same applies to usvk and usvk_w and to the bank 2 varients as well.

ushk_w is uuhsk_w + SY_USOF which is CDh or 1.

ushk is (((ushk_w * 16) - ushk_w) - 99Ch) / 16.

For ushk_w the factor is 0.00488281 and offset 1.

My conclusion is that Setzi's conversion for ushk is either correct or close enough to not make a noticable difference.

The range ends up -0.2v - 1.13v.

In the code, ushk is set to zero if ushk_w < 0.8, so you end up with -0.2 after subtracting the offsets (1 for ushk_w and 0.2 for ushk).

CWKONLS sets ushk_w to 1 and ushk to 0.2 if B_lsh is clear which end up being 0 after subtracting the offsets.

ushk is set to FF if ushk_w > 1B4h.

I remember Flyboy mentioning a discrepancy but I don't remember the details. What discrepancy have you seen between ME7L and VCDS/ECUx?

The FR, however, identifies the range for ushk as 0v - 1.081v

I would like to continue this, but it may be a good idea to move this to another thread, so that this doesn't get confused with logging external wideband through ME7.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #4 on: February 23, 2014, 05:58:03 PM »

The conversion is Factor * hex - Offset.

Weird. I'll try to remember that.

Quote
I remember Flyboy mentioning a discrepancy but I don't remember the details. What discrepancy have you seen between ME7L and VCDS/ECUx?

Not personally, anecdotally from others noticing differences. I simply don't use VCDS/ECUx much *and* narrowband voltages don't really mean anything anyway, so I never bothered investigating further.

Quote
I would like to continue this, but it may be a good idea to move this to another thread, so that this doesn't get confused with logging external wideband through ME7.

Agreed. Split accordingly Smiley
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
userpike
Hero Member
*****

Karma: +22/-1
Offline Offline

Posts: 763


« Reply #5 on: February 23, 2014, 07:18:57 PM »

Weird. I'll try to remember that.

Not personally, anecdotally from others noticing differences. I simply don't use VCDS/ECUx much *and* narrowband voltages don't really mean anything anyway, so I never bothered investigating further.

Agreed. Split accordingly Smiley

if it's a WB box does this thread matter for logging 02 voltage?
Logged
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #6 on: February 24, 2014, 05:22:06 PM »

Assuming the 0.2 offset VCDS is using a factor of 0.00508 for 8 bit NB voltage.

My calculations were much closer to Setzi's.

Logged
FlyboyS4
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 215


WWW
« Reply #7 on: April 19, 2014, 02:48:48 PM »

I'll try and grab a log with VCDS and ME7 for comparison.  So that I am collecting what you need can you confirm the variable names you'd want to see from ME7Logger?
Logged
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #8 on: April 19, 2014, 04:40:51 PM »

Block 31 is usvk / ushk / usvk2 / ushk2
Logged
userpike
Hero Member
*****

Karma: +22/-1
Offline Offline

Posts: 763


« Reply #9 on: April 19, 2014, 06:01:15 PM »

Block 31 is usvk / ushk / usvk2 / ushk2

Hey phila can you shed some light onto "uulsuv_w" please? I've been trying to figure out what the voltage range is for it and how to convert that into lambda.


on pg 1569 it says the range is 0-5v but on page 442 it says the range is limited by ULSUAMN und ULSUAMX). and they are in my file 1.4 and 1.6v the FR goes into saying the ideal voltage is USABGL which is 1.4999 in my file, I'm confused.
« Last Edit: April 19, 2014, 07:25:00 PM by userpike » Logged
FlyboyS4
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 215


WWW
« Reply #10 on: April 20, 2014, 03:19:49 PM »



Make of it what you will.

Original post on MyAudiS4
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #11 on: April 20, 2014, 03:25:29 PM »

Which is VCDS block 31, which is ECUx and which is ME7L nb voltage?

I only see two NB lines...

are those ECUx and VCDS, respectively?



Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
FlyboyS4
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 215


WWW
« Reply #12 on: April 20, 2014, 04:33:04 PM »

Which is VCDS block 31, which is ECUx and which is ME7L nb voltage?

I only see two NB lines...

are those ECUx and VCDS, respectively?

I didn't log with ECUx, you've been all about ME7Logger,  Tongue so I'm going cold turkey and don't have ECUx on my laptop.
Logged
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #13 on: April 20, 2014, 04:38:42 PM »

I didn't log with ECUx, you've been all about ME7Logger,  Tongue so I'm going cold turkey and don't have ECUx on my laptop.

What scaling did you use in the ME7L ecu file on that run?

Logged
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #14 on: April 20, 2014, 04:43:56 PM »

Hey phila can you shed some light onto "uulsuv_w" please? I've been trying to figure out what the voltage range is for it and how to convert that into lambda.


on pg 1569 it says the range is 0-5v but on page 442 it says the range is limited by ULSUAMN und ULSUAMX). and they are in my file 1.4 and 1.6v the FR goes into saying the ideal voltage is USABGL which is 1.4999 in my file, I'm confused.

uulsuv_w is raw voltage straight from the ADC with a range of 0-5v.

What's wrong with lamsoni_w for actual lambda? You won't get a better conversion than the OEM logic.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

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