narrow band o2 calibration in TS correct?

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
evo828
Helpful MS/Extra'er
Posts: 98
Joined: Tue Oct 21, 2008 7:49 am
Location: Slovakia

narrow band o2 calibration in TS correct?

Post by evo828 »

after I calibrated afr through TS (selected Narrow band sensor); project properties also narrow band; the ego o2 correction behaved in exactly opposite way - when it was rich it was adding fuel - when lean (below 0.5v) it was decreasing fuel. I looked at the std_ms2geno2.log and realised that the calibration logic seems to be reversed (below 0.5v = rich; over 0.5=lean). So went to megatune - did the calibration from there and it is now fine (EGO correction logic is doing what is expected).

Is there something special in TS that I missed or is it an error?
What does the 02 in the logs mean - it is showing negative values - although the voltages measured (and shown on gauges) are positive (between 0-1V)

attaching two short logs - before and after the MT calibration - for illustration.
1998 Landrover Discovery I V8 3.9, MSII/E ver RC 2.1.0 20090505; EDIS8; wideband LC-1
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: narrow band o2 calibration in TS correct?

Post by LT401Vette »

That does look backwards... :oops:
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: narrow band o2 calibration in TS correct?

Post by LT401Vette »

I just checked the ms2ReferenceTables.ini file in the inc dir:

Code: Select all

    	solution	= "Narrowband", 		{ adcValue > 92 ? 16.9 : 12.5 }
Sure enough it is backward. You can edit it to be:

Code: Select all

    	solution	= "Narrowband", 		{ adcValue > 92 ? 12.5 : 16.9 }
I will get it in the next release.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
evo828
Helpful MS/Extra'er
Posts: 98
Joined: Tue Oct 21, 2008 7:49 am
Location: Slovakia

Re: narrow band o2 calibration in TS correct?

Post by evo828 »

Thank you Phil. And what does the O2 value in the datalog mean with its negative values?
1998 Landrover Discovery I V8 3.9, MSII/E ver RC 2.1.0 20090505; EDIS8; wideband LC-1
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: narrow band o2 calibration in TS correct?

Post by LT401Vette »

It looks like that means there is a line of the ini file TunerStudio is not interpreting as it was meant to...
#if NARROW_BAND_EGO
egoVoltage = { 1.0-afr1*0.04883 }, "V" ; For LED bars...

TunerStudio does not observe operational hierarchy, so for that line to work as I believe it was intended, it needs to be changed to:
#if NARROW_BAND_EGO
egoVoltage = { 1.0-(afr1*0.04883) }, "V" ; For LED bars...

Or I need to make my math parser respect operational hierarchy :P

Thanks for reporting this...
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: narrow band o2 calibration in TS correct?

Post by racingmini_mtl »

LT401Vette wrote:Or I need to make my math parser respect operational hierarchy :P
That might be a good idea because that's not the first time it's happened :)
But I'm just nit-picking.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: narrow band o2 calibration in TS correct?

Post by LT401Vette »

That might be a good idea because that's not the first time it's happened :)
But I'm just nit-picking.
That is the best answer, but naturally there is a reason I don't jump on it :). It would break many of the formulas in MLV and it would be a sizable undertaking. My guess would be about 3 weeks work. That is looking at it as really going into my math interpreter and changing a number of things that have been nagging at me for some time. So that is what I want to do, but because none of the existing ini files are depending on operational hierarchy until this 1, I have been leaving that until there weren't so many features still on the todo list and I'm not quite so far underwater.

But I'm gonna take a look and see if I can come up with something simpler and less impactful.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: narrow band o2 calibration in TS correct?

Post by racingmini_mtl »

Maybe you can have a warning if there are 2 types of operators (+ and *, for example) in the same expression but no parentheses. But it may not be easier to do this than do the "correct" solution.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
Post Reply