Using AFR instead of Volts with AEM Wideband in AFR Target Table
#21
Boost Pope
Thread Starter
iTrader: (8)
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
I am puzzled by this.
In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg
I just tested this on a fresh PC, which has never had MT installed on it.
First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.
Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.
Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.
Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?
In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg
I just tested this on a fresh PC, which has never had MT installed on it.
First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.
Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.
Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.
Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?
#22
I am puzzled by this.
In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg
I just tested this on a fresh PC, which has never had MT installed on it.
First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.
Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.
Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.
Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?
In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg
I just tested this on a fresh PC, which has never had MT installed on it.
First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.
Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.
Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.
Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?
I copied everything for my MS off of a friend.
My files go like this....
Megasquirt main/Megasquirt/Megatune 2.25/mtCfg
and then I have both msns-extra.ini and I have msns-extra Configuration settings. I had to make the changes in the configuration settings in order to get it to work.
__________________
Best Car Insurance | Auto Protection Today | FREE Trade-In Quote
#23
Boost Pope
Thread Starter
iTrader: (8)
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Ok, I think I see what's going on here.
I downloaded the setup package that DIY has for the MSPNP, and installed it. In that situation, I did have multiple copies of the msns-extra.ini file- one in the normal location, and one in each car subfolder. Editing the one in the usual location did nothing, while editing the one in the car subfolder (ie: C:\Program Files\MegaSquirt\MSPNP MM9093 without AFM\) made it work.
You guys must all be using renegade copies of MT.
I downloaded the setup package that DIY has for the MSPNP, and installed it. In that situation, I did have multiple copies of the msns-extra.ini file- one in the normal location, and one in each car subfolder. Editing the one in the usual location did nothing, while editing the one in the car subfolder (ie: C:\Program Files\MegaSquirt\MSPNP MM9093 without AFM\) made it work.
You guys must all be using renegade copies of MT.
#24
Great, I get to finally fix the table, and Vista, which is on my laptop, wont let me do it. I did a trial change on the MT software on the desktop with XP, and it worked like a charm. Vista gives me this message when I try to save the file.
Cannot create the C:\Program Files\Megasquirt\MSPNP MM9697 without MAF\msns-extra.ini file.
Make sure that the path and the file name are correct.
WTF? I hate Vista.
Cannot create the C:\Program Files\Megasquirt\MSPNP MM9697 without MAF\msns-extra.ini file.
Make sure that the path and the file name are correct.
WTF? I hate Vista.
#26
Do I need to save the file in say, my documents, and then copy it over to the directory? ****, I feel like a moron.
Edit: OK, so I successfully changed the files to reflect the change in multiple locations.
Under Megasquirt/Megatune/mtcfg/
I did the change in the regular msns-extra.ini
msns-extra config
nothing.
Then Megasquirt/MSPNP 9697 without MAF/msns-extra config
Nothing has changed. Voltage still shows instead of AFR. Still at a loss.
Last edited by 96rdstr; 01-11-2009 at 03:07 PM.
#27
I was wondering if anybody had figured this out for vista yet? I can get all the way to editing te file in notebook, but when I try to save the changes it tells me that the path and location are wrong. this is my first non apple computer so I'm pretty ignorant with this stuff, but it doesn't make sense that I can open a file make changes and then not be able to save the changes. anybody run across this?
edit: so can anybody tell me what these numbers represent? the reason I ask is; when looking at the other sensor in the ini. files these are very similar to this one #elif INNOVATE_0_5_LINEAR
00821 afrBins1 = array, U08, 0, [8x8], "AFR", 0.0392, 255.0, 10.0, 20.0, 1
Joe's numbers "AFR", 0.038666, 255.0, 10.0, 20.0, 1
my thinking was this( and please tell me if I'm way off base here) since these are so close can I just change my sensor type to the innovate_0_5_linear and get the same result? Or is that first number to far off to be in the same ball park?
edit: so can anybody tell me what these numbers represent? the reason I ask is; when looking at the other sensor in the ini. files these are very similar to this one #elif INNOVATE_0_5_LINEAR
00821 afrBins1 = array, U08, 0, [8x8], "AFR", 0.0392, 255.0, 10.0, 20.0, 1
Joe's numbers "AFR", 0.038666, 255.0, 10.0, 20.0, 1
my thinking was this( and please tell me if I'm way off base here) since these are so close can I just change my sensor type to the innovate_0_5_linear and get the same result? Or is that first number to far off to be in the same ball park?
Last edited by dynokiller90; 03-07-2009 at 02:43 PM.
#28
ok ,so after searching with google about the problems with ini. files and vista I came across a little golden nugget that is just to damn simple. so for you guys out there running vista just open megatune as "administrator" by right clicking and select run "as admin"
that will let you edit the configurator files. now if I can just figure out how to apply those changes to the specific vehicle sub file I'll be set.
that will let you edit the configurator files. now if I can just figure out how to apply those changes to the specific vehicle sub file I'll be set.
#30
If you're using DIYs megatune package, you have to edit the msns-extra.ini inside the project folder. When megatune opens, if it asks you which project you want to use, find the folder that is associated with that project. I think it will have the same name, and be in the Megasquirt folder. Hope that's clear.
#34
Cpt. Slow
iTrader: (25)
Join Date: Oct 2005
Location: Oregon City, OR
Posts: 14,175
Total Cats: 1,129
For those of you using TunerStudios, I had to make a new project for it to finally tell me there was an error. That error was that my .msq was using volts, while my configuration was using AFR. I clicked "ok" and it working fine now. I guess each project only reads the config file when you first make it, so any changes you make don't take effect after that.
Sorry for the necro post btw
Sorry for the necro post btw
#40
I need some help with this again it seems. I am trying to come up with an excell graph that compares what MT or TS calculates for my AFR versus what my AEM gauge displays. However I am missing some information on how the AFR is calculated. When I substitute "egoADC" for volts in my calculations my MS/TS AFR calculation basically doesn't change and the AFR's only go from 9.72 to 9.91 from 0-5 volts. Obviously "egoADC" does not = volts.
What is "egoADC" and how do I calculate gauge volts into egoADC to input into my calculation. I figured I could play around in excell and find what value works best to get my AFR readings to match without guessing and trying in the car.
Thanks.
EDIT:
Never mind I think I found it.. I'll play some more and report back...
"As an example lets assume we have send the string "A" and received an array of 22 bytes. We want to know the exhaust gas oxygen sensor value. We read egoADC as a value of 142. This is the unscaled 'raw' value. To get the scaling we have to use the file msns-extra.ini Open msns-extra.ini (found along with the firmware) and search for egoADC. The first instance will be the listing of the above table. Do another Find and you'll find this:
egoVoltage = { egoADC / 255.0 * 5.0 } ; EGO sensor voltage.
To find the voltage input to MS1/Extra Voltage = (egoADC/255) * 5 or stated differently; the ego input voltage to MS1/Extra is represented by 0-255 for the voltage range of 0-5V."
What is "egoADC" and how do I calculate gauge volts into egoADC to input into my calculation. I figured I could play around in excell and find what value works best to get my AFR readings to match without guessing and trying in the car.
Thanks.
EDIT:
Never mind I think I found it.. I'll play some more and report back...
"As an example lets assume we have send the string "A" and received an array of 22 bytes. We want to know the exhaust gas oxygen sensor value. We read egoADC as a value of 142. This is the unscaled 'raw' value. To get the scaling we have to use the file msns-extra.ini Open msns-extra.ini (found along with the firmware) and search for egoADC. The first instance will be the listing of the above table. Do another Find and you'll find this:
egoVoltage = { egoADC / 255.0 * 5.0 } ; EGO sensor voltage.
To find the voltage input to MS1/Extra Voltage = (egoADC/255) * 5 or stated differently; the ego input voltage to MS1/Extra is represented by 0-255 for the voltage range of 0-5V."