C6 Scan & Tune Onboard Diagnostics, Service Advice, Dyno Tuning, and Fuel Management for the Corvette
Sponsored by:
Sponsored by:

algorithm or preset

Thread Tools
 
Search this Thread
 
Old Dec 7, 2005 | 11:40 AM
  #1  
Zig's Avatar
Zig
Thread Starter
Safety Car
 
Joined: Dec 2004
Posts: 3,565
Likes: 5
From: stafford country, va. Avatar: Me on turn 3 @ Bristol (The World's Fastest Half-Mile)
Default algorithm or preset

i recently read about some of the systems used in the c6. One of the systems relied upon an algorithm as it's method to control changes to the system. I began to wonder if the pcm possibly used such a system. If they did use an algorithm then any edits for performance would need to change the algorithm. If numbers are obtained via a scanner/reader etc. wouldn't one see the results for the current enviroment/configuration (mods., etc.). if an algorithm is used then when someone reprograms the computer they would be hardcoding it for a specfic enviroment/configuration (mods., etc.), resulting in the alrorithm being ignored. this would only be true if they use an algorithm and not presets. any engineers know ?
Reply
Old Dec 7, 2005 | 02:32 PM
  #2  
Buffy's Avatar
Buffy
Drifting
 
Joined: Jun 2005
Posts: 1,837
Likes: 4
Default

An algorithm is just a procedure or formula. It still depends on it's input and, in almost all cases, external coeffecients or data. Changing these coeffecients changes the result of the algorithm. There wouldn't be much point in actually changing the code unless you changed the design of the engine, or found a case that the factory code doesn't cover.

Sort of like this:
algorithm: A + B = C
data: A = 2, B = 2 - result: C = 4
data: A = 2, B = 3 - result: C = 5

Or, fuel_rate = engine_RPM * ( k * engine_load ) where k is a constant stored as a part of the program. Change k, the result changes.

The structure of the control programs in the car is somewhat different from more familiar programs. Think of a number of little parts, each to take care of a particular function rather than one big program. Generally, such programs rely on tables of data as much as possible - that makes it easier to change, and somewhat more predictible and easier to troubleshoot.

As an example, consider the timing. There are a pair of advance tables, one for low-octane fuel and one for high-octane fuel. The computer starts out using the high-octane table but switches to the low-octane table if excessive knocking is detected. The tables contain some values based on load and RPM, the algorithm interpolates the real-time data to the table data and sets the timing advance accordingly.

So you can change the data in the high-octane table, say to optomize for 93 octane as opposed to 91 octane fuel without touching the code or the low-octane table. This would be a reasonable thing to tune if you live in a 93 octane state. You may get a little better performance, but you still have the low-octane table as a fallback if you have to fill up with skunky gas. What you lose is best performance on 91 octane gas, so you'd want to undo the change if you moved to Ca.

This covers mainly predictive operation. In many cases the program uses heuristics, that is to say it learns. The switching to the low-octane table is a simple example of this - the car learns that the gas sucks and responds accordingly. Actually, the car learns a lot, especially in closed-loop mode (using the O2 sensors to monitor air/fuel ratio) and stores what it learns as trim numbers - how much less or extra fuel to give it. So many of the possible table changes apply mostly to open-loop mode, which is how the car runs before it warms up and at WOT.

Of course operation at or near WOT is often what we're most interested in, even though it's really an unusual operating condition. Sort of funny. Maybe we'll be able to get some of the folks that really know what they're doing to post some more info on the subject of tuning.
Reply
Old Dec 7, 2005 | 04:07 PM
  #3  
Zig's Avatar
Zig
Thread Starter
Safety Car
 
Joined: Dec 2004
Posts: 3,565
Likes: 5
From: stafford country, va. Avatar: Me on turn 3 @ Bristol (The World's Fastest Half-Mile)
Default

Originally Posted by Buffy
An algorithm is just a procedure or formula. It still depends on it's input and, in almost all cases, external coeffecients or data. Changing these coeffecients changes the result of the algorithm. There wouldn't be much point in actually changing the code unless you changed the design of the engine, or found a case that the factory code doesn't cover.

Sort of like this:
algorithm: A + B = C
data: A = 2, B = 2 - result: C = 4
data: A = 2, B = 3 - result: C = 5

Or, fuel_rate = engine_RPM * ( k * engine_load ) where k is a constant stored as a part of the program. Change k, the result changes.

The structure of the control programs in the car is somewhat different from more familiar programs. Think of a number of little parts, each to take care of a particular function rather than one big program. Generally, such programs rely on tables of data as much as possible - that makes it easier to change, and somewhat more predictible and easier to troubleshoot.

As an example, consider the timing. There are a pair of advance tables, one for low-octane fuel and one for high-octane fuel. The computer starts out using the high-octane table but switches to the low-octane table if excessive knocking is detected. The tables contain some values based on load and RPM, the algorithm interpolates the real-time data to the table data and sets the timing advance accordingly.

So you can change the data in the high-octane table, say to optomize for 93 octane as opposed to 91 octane fuel without touching the code or the low-octane table.
ok, cool... so does the tuner modify k ?

This covers mainly predictive operation. In many cases the program uses heuristics, that is to say it learns. The switching to the low-octane table is a simple example of this - the car learns that the gas sucks and responds accordingly. Actually, the car learns a lot, especially in closed-loop mode (using the O2 sensors to monitor air/fuel ratio) and stores what it learns as trim numbers ... many of the possible table changes apply mostly to open-loop mode, which is how the car runs before it warms up and at WOT.
mmmm..... learnnnnsssss....mmmm....

does this imply that the tables are (re)built by the car then it uses the tables to tune itself then adjusts the tables as needed ? wow !!! not bad..

can you explain to me what the "tuners" tune. what are they modifying ?? are they creating values for the tables then telling the computer to use those tables or do they modify k ?
Reply
Old Dec 7, 2005 | 04:21 PM
  #4  
davidfarmer's Avatar
davidfarmer
Race Director
Supporting Lifetime
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Sep 1999
Posts: 12,430
Likes: 915
From: CONCORD NC
Default

all I know is that with LS2 edit, the tables and my ability to change them, are nearly identical to LS1edit. What the car does with them (use the raw data, build new algorithms, etc) is unknown to me.
Reply
Old Dec 8, 2005 | 08:40 PM
  #5  
Madd_Matt's Avatar
Madd_Matt
Advanced
 
Joined: Dec 2005
Posts: 61
Likes: 0
From: Atlanta GA
Default

All that being said - should the car adjust itself for say a blackwig air kit. As soon as I put mine on, the "emmisions" light (according to the book) came on. It went off after about 100 miles - then came back on. I was told it is a lean condition. Will the car adjust or do I need to have it tuned.
Reply
Old Dec 8, 2005 | 08:57 PM
  #6  
Buffy's Avatar
Buffy
Drifting
 
Joined: Jun 2005
Posts: 1,837
Likes: 4
Default

Originally Posted by Madd_Matt
All that being said - should the car adjust itself for say a blackwig air kit. As soon as I put mine on, the "emmisions" light (according to the book) came on. It went off after about 100 miles - then came back on. I was told it is a lean condition. Will the car adjust or do I need to have it tuned.
My first thought would be that something's wrong if you've gotten two codes. An intake shouldn't change things that much, and most of the normal adjustments shouldn't throw codes. I'd check to see if something was damaged during the installation.

Normally, the A/F ratio is based on the MAF (Mass Air Flow) sensor and backed up by the speed / density calculation. This is able to handle the range from a few CFM at idle to some 600+ CFM at 6000 RPM WOT. The small difference made by a different air intake shouldn't get it all a-flutter. But a discrepancy between the MAF and calculated value will throw a code, and with good reason - something's wrong.

Do you know what code or codes you got? Most "lean" codes would be associated with the heated O2 sensor, but the cause would usually depend on other codes. For example, a P0131 H02S low code plus a P0101 MAF rationality code would indicate a lean condition due to a defective MAF.
Reply
Old Dec 8, 2005 | 09:04 PM
  #7  
Madd_Matt's Avatar
Madd_Matt
Advanced
 
Joined: Dec 2005
Posts: 61
Likes: 0
From: Atlanta GA
Default

Unfortunately, I don't know the codes - don't have reader yet. I am a little hesitant to take it to the dealer. I put the kit on myself - and also removed the screen. I thought I was careful, and I don't see any obvious damage. What do you recomend. I am new at this. 1st vette.
Reply
Old Dec 8, 2005 | 09:15 PM
  #8  
Buffy's Avatar
Buffy
Drifting
 
Joined: Jun 2005
Posts: 1,837
Likes: 4
Default

Originally Posted by Zig
ok, cool... so does the tuner modify k ?

mmmm..... learnnnnsssss....mmmm....

does this imply that the tables are (re)built by the car then it uses the tables to tune itself then adjusts the tables as needed ? wow !!! not bad..

can you explain to me what the "tuners" tune. what are they modifying ?? are they creating values for the tables then telling the computer to use those tables or do they modify k ?
Yes, it does learn, but it doesn't change the base tables when it does so. There are another set of values or tables that represent the car's learned data. That's the way it adapts to variations in particular engines.

The tuner would probably be modifying 'k' - or the content of the tables, it's really the same thing. This is part of data the computer uses to base it's calculations on, but only part. The learned data is factored in, as are a number of measured parameters (like engine temperature, altitude, etc.)

As in the example, changing a 91 octane timing table to a 93 octane timing table may improve performance a bit for someone who uses 93 octane gas. And the factory tables may be a little conservative anyway. But then this data would be factored in with the learned data (and a lot of other measured data, like the engine temperature) to calculate the actual timing. Much more complex than the old two weights and springs in the distributor! But much better able to get the timing right on. On the other hand, you can't tune it by stretching the spring a little bit!

So the tuner is mostly changing the basic assumptions, usually to make them a bit less conservative, or to accomodate changes to the car like headers or a cam. I'd imagine the amount of good done by tuning depends on the mods. Mods that affect a particular condition or RPM range (like a cam) would benefit most, because the change is more complex and the car's learning is less able to make up the difference.

Of course if you're really serious about it, like davidfarmer, you're going to want to gather a lot of data before changing anything. The more data the better you can tune your car to your own mods and driving style. And ideally you'd then gather more data to see how successful your changes have been.

Important things here are the long- and short-term fuel trims - the "fudge factors" the computer applies to get the right amount of fuel. Incidentally, there are separate ones for the left and right banks. If these numbers are too high you may improve operation by tweaking up the tables a bit. But be careful! If things start to not make sense - for example the long-term and short-term fuel trims don't agree, or the left and right fuel trims don't agree, you'll get a code and the dreaded "Service Engine" light.
Reply
Corvette Stories

The Best of Corvette for Corvette Enthusiasts

story-0

Top 10 Corvette Engines RANKED by Peak Torque (70+ Years of Muscle!)

 Joe Kucinski
story-1

Corvette ZR1X Will Be Pacing the Indy 500, And Could Probably Race, Too!

 Verdad Gallardo
story-2

Top 10 Corvettes Coming to Mecum Indy 2026!

 Brett Foote
story-3

Top 10 C9 Corvette MUST-HAVES to Fix These C8 Generation Flaws!

 Michael S. Palmer
story-4

10 Revolutionary 'Corvette Firsts' Most People Don't Know

 Joe Kucinski
story-5

5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

 Michael S. Palmer
story-6

2027 Corvette vs The World: Every C8 vs Its Closest Competitor

 Joe Kucinski
story-7

10 Most Common Corvette Problems of the Last 20 Years!

 Joe Kucinski
story-8

5 MOST and 5 LEAST Popular Corvette Model Years in History!

 Joe Kucinski
story-9

2027 Corvette Buyer's Guide: Everything You Need to Know!

 Joe Kucinski
Old Dec 8, 2005 | 09:23 PM
  #9  
Buffy's Avatar
Buffy
Drifting
 
Joined: Jun 2005
Posts: 1,837
Likes: 4
Default

Originally Posted by Madd_Matt
Unfortunately, I don't know the codes - don't have reader yet. I am a little hesitant to take it to the dealer. I put the kit on myself - and also removed the screen. I thought I was careful, and I don't see any obvious damage. What do you recomend. I am new at this. 1st vette.
You might check this thread about MAF screens and codes:
http://forums.corvetteforum.com/show...1&forum_id=101
Or check with ron@proautotech (tuner) who might be able to shed some light on this. As far as I know, a new intake or removing the screen shouldn't break it, but the MAF is very sensitive to contamination - a little bit of oil can throw it off.
There is another thread here that mentions an inexpensive (under $100) Innova (or something like that) code reader (just reads codes, doesn't log data, etc.) available at MallWart .. er, WallMart. I haven't tried it, but it might be worth it here to get more info.
Reply
Old Dec 8, 2005 | 09:45 PM
  #10  
Madd_Matt's Avatar
Madd_Matt
Advanced
 
Joined: Dec 2005
Posts: 61
Likes: 0
From: Atlanta GA
Default

I really appreciate your help. This is a great forum. FYI - I put the stock intake back on, and the light is gone, but idle seems low. That is just a guess, but it is around 600/650.
Reply
Old Dec 8, 2005 | 09:54 PM
  #11  
Buffy's Avatar
Buffy
Drifting
 
Joined: Jun 2005
Posts: 1,837
Likes: 4
Default

Originally Posted by Madd_Matt
I really appreciate your help. This is a great forum. FYI - I put the stock intake back on, and the light is gone, but idle seems low. That is just a guess, but it is around 600/650.
That's about where mine idles (manual transmission). It seems a little low if you're used to a 4- or 6-cylinder engine, but remember that the V-8 does 4 power strokes per revolution (as opposed to 2 or 3), so it can idle fairly slowly.

My LS-1 with auto transmission idled even slower - around 550 RPM - but it had less cam and was a little smoother.

Some folks on the forum have called the C6's idle rough; to me it's about right for a performance engine - not Rolls-Royce smooth, but easy enough to live with.
Reply
Old Dec 8, 2005 | 10:11 PM
  #12  
Madd_Matt's Avatar
Madd_Matt
Advanced
 
Joined: Dec 2005
Posts: 61
Likes: 0
From: Atlanta GA
Default

Mine is manual - and this is the first real sports car I've had. Finally had the money . . . . Again, thanks for your help. I found a tuner/mod shop on the forum that is local, going to see them tomorrow. My best bet is to let someone who knows what they are doing work on my baby. Wish I had the time to learn . . .
Reply

Get notified of new replies

To algorithm or preset





All times are GMT -4. The time now is 05:47 AM.

story-0
Top 10 Corvette Engines RANKED by Peak Torque (70+ Years of Muscle!)

Slideshow: Ranking the top 10 Corvette engines by torque output.

By Joe Kucinski | 2026-05-05 11:58:09


VIEW MORE
story-1
Corvette ZR1X Will Be Pacing the Indy 500, And Could Probably Race, Too!

Slideshow: A Corvette pace car nearly matching IndyCar speeds sounds exaggerated, until you look at the numbers.

By Verdad Gallardo | 2026-05-04 20:03:36


VIEW MORE
story-2
Top 10 Corvettes Coming to Mecum Indy 2026!

Among a rather large group of them.

By Brett Foote | 2026-05-04 13:56:44


VIEW MORE
story-3
Top 10 C9 Corvette MUST-HAVES to Fix These C8 Generation Flaws!

Slideshow: the top 10 things Corvette owners want in the C9 Corvette

By Michael S. Palmer | 2026-04-30 12:41:15


VIEW MORE
story-4
10 Revolutionary 'Corvette Firsts' Most People Don't Know

Slideshow: 10 Important Corvette 'firsts' that every fan should know.

By Joe Kucinski | 2026-04-29 17:02:16


VIEW MORE
story-5
5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

Slideshow: Should you buy a 2020-2026 Corvette or wait for 2027?

By Michael S. Palmer | 2026-04-22 10:08:58


VIEW MORE
story-6
2027 Corvette vs The World: Every C8 vs Its Closest Competitor

Slideshow: 2027 Corvette lineup vs the world.

By Joe Kucinski | 2026-04-24 16:12:42


VIEW MORE
story-7
10 Most Common Corvette Problems of the Last 20 Years!

Slideshow: 10 major Corvette problems from the last 20 years.

By Joe Kucinski | 2026-04-14 16:37:05


VIEW MORE
story-8
5 MOST and 5 LEAST Popular Corvette Model Years in History!

Slideshow: 5 most and least popular Corvette model years.

By Joe Kucinski | 2026-04-08 13:25:01


VIEW MORE
story-9
2027 Corvette Buyer's Guide: Everything You Need to Know!

Slideshow: 2027 Corvette buyer's guide

By Joe Kucinski | 2026-04-17 16:41:08


VIEW MORE