MEGAsquirt A place to collectively sort out this megasquirt gizmo

Using AFR instead of Volts with AEM Wideband in AFR Target Table

Thread Tools
 
Search this Thread
 
Old 01-06-2009, 01:03 PM
  #21  
Boost Pope
Thread Starter
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

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?
Joe Perez is offline  
Old 01-06-2009, 01:09 PM
  #22  
Elite Member
iTrader: (30)
 
levnubhin's Avatar
 
Join Date: Aug 2007
Location: Va Beach
Posts: 7,329
Total Cats: 12
Default

Originally Posted by Joe Perez
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?

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
levnubhin is offline  
Old 01-06-2009, 02:19 PM
  #23  
Boost Pope
Thread Starter
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

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.
Joe Perez is offline  
Old 01-11-2009, 01:52 PM
  #24  
Senior Member
iTrader: (4)
 
96rdstr's Avatar
 
Join Date: Oct 2006
Location: Tampa
Posts: 780
Total Cats: 0
Default

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.
96rdstr is offline  
Old 01-11-2009, 02:10 PM
  #25  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,490
Total Cats: 4,079
Default

you have to make changes outside the directory then overwrite the file. Vista does not let you change anything within the program files directory.
Braineack is offline  
Old 01-11-2009, 02:33 PM
  #26  
Senior Member
iTrader: (4)
 
96rdstr's Avatar
 
Join Date: Oct 2006
Location: Tampa
Posts: 780
Total Cats: 0
Default

Originally Posted by Braineack
you have to make changes outside the directory then overwrite the file. Vista does not let you change anything within the program files directory.
Sorry Brain, I am not sure I understand. How do you do that in Vista? I only use the laptop with Vista for the car. Everything else I own and use on a daily basis has XP on it. Sorry if I sound like a lame ***.

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.
96rdstr is offline  
Old 03-07-2009, 02:19 PM
  #27  
Junior Member
 
dynokiller90's Avatar
 
Join Date: Dec 2007
Posts: 158
Total Cats: 0
Default

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?

Last edited by dynokiller90; 03-07-2009 at 02:43 PM.
dynokiller90 is offline  
Old 03-07-2009, 11:54 PM
  #28  
Junior Member
 
dynokiller90's Avatar
 
Join Date: Dec 2007
Posts: 158
Total Cats: 0
Default

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.
dynokiller90 is offline  
Old 04-30-2009, 02:05 AM
  #29  
Senior Member
iTrader: (2)
 
naarleven's Avatar
 
Join Date: Apr 2008
Location: Tallahassee, FL
Posts: 1,365
Total Cats: 0
Default

Why is mine still not working?
Attached Thumbnails Using AFR instead of Volts with AEM Wideband in AFR Target Table-wtfmatemegasquirt.jpg  
naarleven is offline  
Old 04-30-2009, 07:54 AM
  #30  
Junior Member
iTrader: (7)
 
jsisco's Avatar
 
Join Date: Mar 2007
Location: Texas Panhandle
Posts: 211
Total Cats: 0
Default

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.
jsisco is offline  
Old 04-30-2009, 08:40 AM
  #31  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,490
Total Cats: 4,079
Default

plus you have vista so you need to make sure you're actually changing the file inside the directory and it's not copying it to the compatibility files folder.
Braineack is offline  
Old 07-21-2009, 09:48 PM
  #32  
Junior Member
iTrader: (1)
 
jdmaddox88's Avatar
 
Join Date: Apr 2008
Location: Atlanta, GA
Posts: 289
Total Cats: -2
Default

I think I might give this a shot but how does this translate over to the settings in Megalogviewer? Does that run off the same config file and automatically change too?
jdmaddox88 is offline  
Old 10-21-2009, 04:06 PM
  #33  
Elite Member
iTrader: (24)
 
chriscar's Avatar
 
Join Date: Dec 2007
Location: Carrollton TX
Posts: 1,709
Total Cats: 15
Default

Joe,

Please update post #1 to include the fact that if you're running an MSPNP you need to edit the .ini file within the project directory.

Thanks,
Chris
chriscar is offline  
Old 01-12-2010, 11:45 PM
  #34  
Cpt. Slow
iTrader: (25)
 
curly's Avatar
 
Join Date: Oct 2005
Location: Oregon City, OR
Posts: 14,175
Total Cats: 1,129
Default

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
curly is offline  
Old 02-07-2010, 09:52 PM
  #35  
I EAT CUM
iTrader: (6)
 
Turbo_4's Avatar
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,198
Total Cats: 0
Default

Any idea of what to do if the values are off? I finally got TS to work off of AFR's but now my wb gauge is 1 point lower than what TS is saying...Yes everything is selected correctly.
Turbo_4 is offline  
Old 02-08-2010, 08:48 AM
  #36  
Junior Member
 
rweatherford's Avatar
 
Join Date: Dec 2009
Location: Shelbina, MO (North East)
Posts: 332
Total Cats: 1
Default

Originally Posted by Turbo_4
Any idea of what to do if the values are off? I finally got TS to work off of AFR's but now my wb gauge is 1 point lower than what TS is saying...Yes everything is selected correctly.
I have had the same problem for a while and have not had time to try fixing it. I'll let you know if I ever get it figured out.
rweatherford is offline  
Old 02-08-2010, 10:40 AM
  #37  
I EAT CUM
iTrader: (6)
 
Turbo_4's Avatar
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,198
Total Cats: 0
Default

Originally Posted by rweatherford
I have had the same problem for a while and have not had time to try fixing it. I'll let you know if I ever get it figured out.
I'm just not sure which to trust. Is my idle in the 12's or 13's, lol.
Turbo_4 is offline  
Old 02-08-2010, 10:43 AM
  #38  
Elite Member
iTrader: (3)
 
Mach929's Avatar
 
Join Date: Oct 2004
Location: lansdale PA
Posts: 2,494
Total Cats: 0
Default

trust your gauge, i've been just tuning with my afr target table adjusted to give suitable results on my gauge
Mach929 is offline  
Old 02-08-2010, 11:31 AM
  #39  
I EAT CUM
iTrader: (6)
 
Turbo_4's Avatar
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,198
Total Cats: 0
Default

I was hoping TS would be more accurate...well damn. My gauge is definitely lower than I would like.
Turbo_4 is offline  
Old 03-03-2010, 12:33 AM
  #40  
Junior Member
 
rweatherford's Avatar
 
Join Date: Dec 2009
Location: Shelbina, MO (North East)
Posts: 332
Total Cats: 1
Default

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."
rweatherford is offline  


Quick Reply: Using AFR instead of Volts with AEM Wideband in AFR Target Table



All times are GMT -4. The time now is 07:40 PM.