Notices
ECU Flash

Speed Density 2.0?

Thread Tools
 
Search this Thread
 
Old Jan 27, 2010 | 10:25 PM
  #16  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Originally Posted by phenem
96532706 is already used for Live Mapping and 96533706 is already used for Live Mapping with SD.

This would prob. have to be something like:

96531806

OR

96534706

Any suggestions?
I will pick 9653A706 for alfa release :P
Now the question is what shall I take as a base 1,2 or 3?
Reply
Old Jan 27, 2010 | 10:46 PM
  #17  
03whitegsr's Avatar
Thread Starter
Evolved Member
iTrader: (8)
 
Joined: Nov 2006
Posts: 4,001
Likes: 17
From: Utah
1

Unless somebody wants to make a good, easy to follow guide on the live map application with an up to date version.

I know there are a couple different versions floating around.
Reply
Old Jan 27, 2010 | 11:19 PM
  #18  
knochgoon24's Avatar
Evolving Member
iTrader: (2)
 
Joined: Feb 2009
Posts: 109
Likes: 0
From: State College, PA
I'd also suggest 1.

This would be really nice to get set up. Making the SD easier to tune will make it one step closer to having a program similar to VEanalysisLive running on Tuner Studio for MS, but for the Evo ECU instead.
http://www.youtube.com/watch?v=l_SPSGj3CR4

In that setup, it tunes a VE map with kPa and rpm as the axes. It's very similar to what's been suggested already in this thread.
-You have predefined MAP calibration for each sensor type.
-You start with a rough VE map that gets the car running.
-You slowly rev/drive the car and move between cells as the live tuning software compensates.

We wouldn't be making the jump to that yet, but it would be nice to have a target like that so we can chose the proper path to follow.

Note: There's a high percentage of DSMs posting in this thread. LOL
Reply
Old Jan 28, 2010 | 03:49 PM
  #19  
l2r99gst's Avatar
Evolved Member
iTrader: (2)
 
Joined: Mar 2004
Posts: 3,499
Likes: 4
From: CA
One thing I wanted to mention, no matter what method is used for the VE table.

We will still need a baro+temp compensated load for the fuel and ignition maps. I don't know if that was being changed or suggesting to be changed, but just wanted to throw that out there. I think the changes suggested by Ceddy were only for the VE table and not the way the ECU then calculates the other load variables. Basically, I'm assuming just going along with John's patch, but with a 3D VE table.

Obivously 30psi at 0* and 150* are going to be two completely different mass airflows needing very different fueling and ignition.

Last edited by l2r99gst; Jan 28, 2010 at 03:53 PM.
Reply
Old Jan 28, 2010 | 03:58 PM
  #20  
03whitegsr's Avatar
Thread Starter
Evolved Member
iTrader: (8)
 
Joined: Nov 2006
Posts: 4,001
Likes: 17
From: Utah
That is what the separate fuel and ignition trims are for.

There isn't a MAP based standalone that I've seen that used compensated load for table lookups.

You have RPM and MAP. Not RPM and MAP+IAT.
Reply
Old Jan 28, 2010 | 04:02 PM
  #21  
l2r99gst's Avatar
Evolved Member
iTrader: (2)
 
Joined: Mar 2004
Posts: 3,499
Likes: 4
From: CA
Yes, I understand that, but the way the ECU is coded already, it's very simple to create SD like John did. If you want to make your fuel and ignition maps have map as an axis, then you have to change a ton of code, along with adding the trim maps with respect to temperature.

As long as the load we use is temp compensated (PV=nRT), then we should be OK.

That's why John's code was so nice and easy. It still left all of the compensated loads to be calculated from the MAT temperature, which is our baro+temp load.
Reply
Old Jan 28, 2010 | 04:10 PM
  #22  
SoCalRedLine's Avatar
Evolving Member
iTrader: (2)
 
Joined: Mar 2007
Posts: 298
Likes: 0
From: NorCal
can there be a baro sensor added to the ecu so that we could have baro correction in the SD rom? Might be good for us that live at 300', but drive to 6000+' for snowdays...
Reply
Old Jan 28, 2010 | 04:12 PM
  #23  
0xDEAD's Avatar
Account Disabled
iTrader: (3)
 
Joined: Jun 2009
Posts: 312
Likes: 0
From: central pa
Originally Posted by Ceddy
The SD routine is actually pretty simple, its amazing JCSBanks wrote it with so little code.

It emulates the MAFs signal (MAF ticks/rev)

MAP VE & Calibration[kPa] x RPM VE[rpm] = AirCounts [MAF ticks/rev](Also called MasterLoad)


Then in the normal code:

AirCounts / Time_Per_Rev = MAF Hz

AirCounts x MAFSize / 65536 = Load

So you can think of the SD code as emulating Load, even though its not its immediate output.


But table wise you can't just have a VE% table, you also need the Calibration table, its what transforms kPa into "Load".

I think a RPM x kPa table with VE% lookups, and the Calibration table locked 1:1(kPa:Load), is probably the ideal setup for 3-D tables.
I like this. Also, at what point does the ecu provide air temp compensation? Is it after this load value is calculated (IE: is that raw load above then the ecu applies this to the air temp tables to come up with real load to apply to the fuel and timing maps).
Reply
Old Jan 28, 2010 | 04:15 PM
  #24  
l2r99gst's Avatar
Evolved Member
iTrader: (2)
 
Joined: Mar 2004
Posts: 3,499
Likes: 4
From: CA
Originally Posted by 0xDEAD
I like this. Also, at what point does the ecu provide air temp compensation? Is it after this load value is calculated (IE: is that raw load above then the ecu applies this to the air temp tables to come up with real load to apply to the fuel and timing maps).
I forgot where it was now...but it's all documented somewhere. I think in John's maf to IPW thread.

But, yes, I think the temp compensated loads and mass airflows are then calculated from pV=nRT (table lookups) later in the code. That's what I was suggesting not be changed in my post above, but I don't think Ceddy was suggesting that it was going to be. These loads are then used in the fuel and timing maps as follows:

(from mrfred)
spark advance lookup: For air temp below 77F, baro+airtemp compensated load is used for spark advance. For temps above 77F, then baro compensated load is used.

afr lookup: for closed loop conditions when load is < ~20, uncompensated load is used, otherwise, baro+airtemp compensated load is used. This means that baro+airtemp compensated load is used essentially all the time for AFR lookup.
Reply
Old Jan 28, 2010 | 04:17 PM
  #25  
0xDEAD's Avatar
Account Disabled
iTrader: (3)
 
Joined: Jun 2009
Posts: 312
Likes: 0
From: central pa
Originally Posted by SoCalRedLine
can there be a baro sensor added to the ecu so that we could have baro correction in the SD rom? Might be good for us that live at 300', but drive to 6000+' for snowdays...
Baro is already compensated for in the map sensor when using SD with the map sensor. Baro can be locked down to 1 atmosphere for the ecu, and I think it allready is in the SD code currently.
Reply
Old Jan 28, 2010 | 04:21 PM
  #26  
0xDEAD's Avatar
Account Disabled
iTrader: (3)
 
Joined: Jun 2009
Posts: 312
Likes: 0
From: central pa
Originally Posted by l2r99gst
Yes, I understand that, but the way the ECU is coded already, it's very simple to create SD like John did. If you want to make your fuel and ignition maps have map as an axis, then you have to change a ton of code, along with adding the trim maps with respect to temperature.

As long as the load we use is temp compensated (PV=nRT), then we should be OK.

That's why John's code was so nice and easy. It still left all of the compensated loads to be calculated from the MAT temperature, which is our baro+temp load.
KISS..........I agree that the coding involved to make the ecu happy with the kpa axis on the maps would be quite difficult. Not only that, but I like the fact that with less load due to higher air temps at the same kpa the ecu will be at a lower portion on the timing map. If the maps were rpm vs kpa then you would have to implement timing retard for air temp. Everything starts to get real messy real quick and the chances for a bug or bugs is high.
Reply
Old Jan 28, 2010 | 05:03 PM
  #27  
Ceddy's Avatar
Evolving Member
 
Joined: Apr 2008
Posts: 265
Likes: 1
From: Reading, PA
Originally Posted by 0xDEAD
I like this. Also, at what point does the ecu provide air temp compensation? Is it after this load value is calculated (IE: is that raw load above then the ecu applies this to the air temp tables to come up with real load to apply to the fuel and timing maps).
All the Loads are calculated in the same subroutine.

Load16Bit = AirCounts x MAFSize / 65536
Load8Bit = Load16Bit / 2, and Limited to 255

LoadBaro16 = Load16Bit x BaroComp
LoadBaro8 = LoadBaro16 / 2, and Limited to 255

LoadIAT16 = Load16Bit x AirTempComp
LoadIAT8 = LoadIAT16 / 2, and Limited to 255

LoadIATBaro16 = Load16Bit x AirTempComp x BaroComp
LoadIATBaro8 = LoadIATBaro16 / 2, and Limited to 255
Reply
Old Jan 28, 2010 | 06:41 PM
  #28  
03whitegsr's Avatar
Thread Starter
Evolved Member
iTrader: (8)
 
Joined: Nov 2006
Posts: 4,001
Likes: 17
From: Utah
Is that sub_11598 on 96530006?

I don't know if it would take as much code change as you are thinking, L2R99Gs-t. It would require carefully evaluating when each load is used though. Testing may also prove to have other downfalls with this method.

Most stuff, using the original loads is probably fine. However, for fuel and spark, it seems like limiting everything down to uncompensated load in the look up tables would be the better option. That way you don't move around in the table when IAT changes. You DO NOT want to drop to a lower load when IATs go up, because the tune gets more aggressive when you go down. You just want to compensate with ignition retard or fuel increases across the board when at higher loads and the temps go up.

As far as IAT ignition compensation, it's already in the code. Same with IAT fuel compensation for IPW. It's already there and already being used.

The load comps used change WHERE in the map the ECU grabs values from. However, it does NOT change the IPW and ignition directly. That is handled by additional tables mentioned above.

Last edited by 03whitegsr; Jan 28, 2010 at 06:45 PM.
Reply
Old Jan 28, 2010 | 07:00 PM
  #29  
0xDEAD's Avatar
Account Disabled
iTrader: (3)
 
Joined: Jun 2009
Posts: 312
Likes: 0
From: central pa
Well thats fine if you think it can be done easily. Now that I think about it the stock maf setup reads baro, iat, and mas hz stock so it already has tables for the iat trim for timing and air density compensations for the fuel map.
Reply
Old Jan 28, 2010 | 07:02 PM
  #30  
Ceddy's Avatar
Evolving Member
 
Joined: Apr 2008
Posts: 265
Likes: 1
From: Reading, PA
Originally Posted by 03whitegsr
Is that sub_11598 on 96530006?
Not sure, I'm SH-2 illiterate.
It's the only place where MAFSize is used in the whole ROM, so its pretty easy to find.
Reply



All times are GMT -7. The time now is 03:06 PM.