G16E-GTS Tuning Guide

G16E-GTS Tuning Guide

Introduction

The GR Yaris and GR Corolla utilise the G16E-GTS engine, which is Toyota’s Gazoo Racing Divisions Latest performance 3 cylinder engine. In standard format it produces from 260 - 300hp and 360 - 400Nm of torque depending on the model variant. There are many details regarding the engine and its specs/performance on websites such as https://toyota-club.net/files/faq/20-10-20_faq_g16-engine_en.htm.

The G16E-GTS engine is

  • 1.6L 3Cylinder

  • Dual VVT

  • Direct injection

  • Spark ignition engine

  • Turbocharged

  • 10.5:1 compression ratio

  • D-4ST Port injection (PI) & Direct injection (DI) system (similar to the GT86)

The Engine Control Unit is mounted in the engine bay and uses twin processors to detect and deliver engine sensor information, CAN bus and output comms to engine control components. The Vehicles use a standard Toyota gateway controller, which requires a bench-style unlock sequence (or a Gateway bypass loom) to allow OBD programming.

ROM compatibility & Recovery

ROMs from the Corolla are incompatible with the Yaris ECMs so cross-flashing will generally result in a bricked ECU. Different Models and different Region CAL IDs can be made but with caution as the GPF and NON-GPF models have significantly different code sections.

Recovery from a part programmed state is done by manually selecting the G16E-GTS ECU type and entering utility mode from the programming window. It will identify the ECM as part programmed and allow you to re-attempt to flash the correct ROM into the ECM.

OLS tune files that are derived from other tools cannot be directly used in ProECU, it has been found that some of these other files are placing custom data into sections of the ROM that cause ProECU programming to fail. A ROM import tool will be available for use if you have OLS-derived tunes that you would like to use.

Control Strategies

The G16E-GTS uses a combination of torque-based load determination and 4D & 5D mapping to set various targets and corrections for engine running conditions. At the moment we believe that the strategy employed is a torque-controlled ECU with modelled and actual values employed to improve control.

4D & 5D maps

It appears that the Toyota strategy uses 4D and 5D maps in some critical control functions e.g. Wastegate Duty control. A 4D map is a collection of data points that reference and interpolate between 4 independent axes. In ProECU, these are currently shown as separate 3D maps with a 4th Axis to show which 3D map is being used at which Axis point. We have called the 3D maps by the bin (axis point or collection of data for that calibrated point) in which the 4th axis is set too. For example, the WG duty 4D map uses RPM as the 4th axis, so each 3D map is for a different RPM point

5D maps follow a similar principle where a collection of 4D maps are used to represent one bin of a 5D map. See the example Below

4D and 5D map viewers will be improved at a later time to allow proper axis swapping to improve the speed of tuning.

To edit 4D and 5D maps, you simply adjust the values using the normal map editing shortcuts and hotkeys (ProECU Tuning Map Viewer )

Dyno Mode

There is a method to disable the active traction control etc for use on a Dyno this is not required to complete a full pull on the dyno (traction control can be turned off manually) but it is sometimes a simpler way to make sure everything disabled properly when tuning. The method to enter dyno mode is

  1. Make sure ignition is on and handbrake is disengaged.

  2. Depress both brake & clutch

  3. Press Key on, and the engine will start

  4. Pull Hand Brake (E brake) and hold it engaged

  5. release and depress brake pedal twice (clutch still down)

  6. release and engage Hand Brake (E brake) twice

  7. release and depress brake pedal twice (clutch still down)

The lights on the dash should now show and traction etc is disabled. there are many Video’s like this https://www.youtube.com/watch?v=1apy_naVqbU which display the process. This does not disable the 4wd on our car but does disable the cruise and ABS activation.

Advice from experienced tuners running the car on 2WD dynos is to un-plug the 4 pin connector on the diff, then do the pedal dance, which goes as follows:

  1. Hand Brake (E brake) up, key on ignition on,

  2. Hand Brake (E brake) down, start the engine

  3. Press and release the brake pedal twice

  4. Pull and release the Hand Brake (E brake) twice

  5. Press and release the brake pedal twice again

Now it’s in FWD mode, you leave the Hand Brake (E brake) on just to be sure,

It has also been noted that after the g16E-GTS seems to have a lower power 1st pull however after the 1st pull every pull after makes the same power run after run, unless something changes (like knock retard or component protection etc).

Tuning Guide

Comparison of the different region and different power output ROMs from both GR Corolla and GR Yaris platforms highlights a number of maps that Toyota use to improve performance.

OBD Programming

With the release of RRv1 OBD programming and PhoneFlash through ECU connect are now available. To program through the OBD port please see the following Instruction ECU Programming Overview

Gateway Bypass Programming Cable - How to Connect

Watch the video here. Note: this cable needs to be used every time you program the vehicle.

Example ROM

During dyno testing and map adjustment were made on the EcuTek development car and we managed to increase the power by about 25hp with only simple map changes.

This included increase torque demand limits , the load limits and the boost target limits logged like below (tuned compared to stock). you can see a higher boost target and higher load achieved which is where the power was developed.

The map changes to achieve this increase in power were

Boost Target Limit (Proc 1)

Boost target Limit (Proc 2)

Intake Cam Angle Target

Lambda Target (Proc 1)

Lambda Target Component Protection (Proc 1)

Lambda Target EGT Thresh 2

Lambda Target EGT Thresh 3

Lambda Target Small (Proc 1)

Lambda Tgt EGT Threshold 1

Load Limit 2D

Load Limit 3D

Load Limit Fuel Pressure

Load Limiter Baro

Pedal Map B1

Pedal Map B2

Pedal Map B3

Pedal Map B4

Pedal Map Gear 1

Pedal Map Gear 2

Pedal Map Gear 3

Pedal Map Gear 4

Pedal Map Gear 5

Pedal Map Gear 6

RPM Threshold test 1

RPM Threshold test 2

RPM Threshold test 3

Torque Driver Request

Torque Limit

Torque Limit 5

Logging

Data Logging on G16E-GTS requires the use of an EVI-USB the older style cables will have a limited 2Hz logging speed). There are custom parameters added for logging and some of these parameters are received in groups but in general logging of the default list is around 15-17hz.

Diagnostic Trouble Codes (DTC’s)

The G16E-GTS control systems use unique way of DTC triggering which we do not yet understand. currently if you switch of a DTC code the entire function is switched. There are OLS tunes that reportedly have DTC’s disabled but from what we have seen the changes made do not match our understanding so would proceed with caution if you choose to use them.

Torque

This G16E-GTS control system seems to start in torque control and adjusting the pedal maps and lifting the torque limit map seems to required to keep the throttle from closing and to allow for increased load targets. With RaceROM v2 there is an additional limit added so that the OEM limits can be lifted and a per gear and RPM limit can be applied for each MS mode.

image-20240422-085835.png

When setting up the ROM you will need to raise the OEM torqe requests and limits to allow the RaceROM target to take control.

Logging the torque requested and torque actual can be helpful to track what is happening. Torque starts from pedal demand maps which from our understanding take the normalized pedal value and use it to look up the torque demand maps.

Accel Pedal Linearization maps

 

The Accel Pedal scaling maps appear to be a simple in out ratio of the normalised position to the final pedal output, similar to other platforms these can be rescaled per gear and mode.

This could be used to give different driving characteristics in different modes.

Torque Request maps

 

The torque request maps use the accel pedal map input and turn it into an engine torque demand value,

this value is then processed by the torque limiters and load to torque maps

The Torque Target (WOP) map sets the maximum torque demand to be used in the torque to load maps,

this map is used above the WOT Pedal Map Swap threshold value

image-20240419-150928.png

The torque value is then corrected by different maps and function to account for pressure and friction losses as well as current engine efficiencies (e.g. lambda etc). then turned into a load value using the Torque to Load maps so that an airflow value can be calculated

Load

Target and Actual load in the G16E-GTS ECU are both calculated using airflow conversion models which include cam angle and other corrections, when the target load is limited below the actual load the the end result is generally a throttle closure, this is required to control the actual load value, the boost target is effected by load limits as well but generally as the load limit is fed into the calculated boost target.

It calculates all of the load limits concurrently but sets load limit activation flag triggered by individual thresholds for each load limit type.

Finally it picks the lowest Load limit with an active flag and applys that to the target load. the actual load is controlled via other methods.

With RaceROM the Load Limit Source can be logged which will indicate which function is being used to control the load limit.

Through various channels it looks like the Load to airflow conversion and the airflow to pressure conversion is done using a combination of 1D and 5D maps. At the moment the calculation is not well understood but in time more will be known. The key to tuning is lifting the amount of allowable load using the load limit maps.

At this present time there is a hardcoded load limit of 320 load which cannot be increased, to increase this 320 load limit patching will be required and this is schedule for future releases of RaceROM.

Load Limiters

The Load limiters under the Limiters category will need to be raised to allow the conversion from load to boost to be uncapped and to use the boost target max maps to set your final boost target. It appears that it will pick the lowest value of the maps depending on the current running conditions.

 

image-20240410-174221.png

 

Global load limits

It appears that the Load limit Throttle Airflow map generally gets applied at lower RPM running conditions, and is activated by a flag

After which the Load/Boost Limit 3D through most of the run, this map is also what you see in boost limit type 10. the X axis of this map is a calculated value

X input = MAF airflow × pre-throttle pressure ratio × temp correction x Factor, which is then limited to 256

the output of this map is hard limited to 320 and is used a a cap for

  • The Target boost (when in type 10)

  • The pressure-ratio limit for wastegate control.

  • the Turbo pressure DTC

Load limit type 01 (0x1) - Ignition Correction \ Knock

The Load limit for ignition \ Knock is one of the most prevalent limiters on the G16E, this function runs full time and is enabled by default and capped at 320 by hardcoded limits. the map responsible for the limit values is the,

Load Limit for Ignition Correction

image-20261020-101724.png

The X axis Ignition timing value is a calculated value called Ignition Correction

Ignition Correction = learnt Kock Correction + Instantaneous Kock Retard + slow feedback terms + timing - headroom offset + ignition temperature correction

the Ignition Correction parameter is can be logged with latest RaceROM patches.

Load limit type 02 (0x2) - Cold ECT / fuel pressure / ambient load limit

this load limit is split into 3 separate functions AIT ECT and Fuel Pressure, each with their own specific limit, the limit type is activated when any of the thresholds for the function activation are met the thresholds are

  • ECT cold, less than 30degC

  • AIT (MAF) greater than 20degC

  • P0112 and P0113, intake air temperature sensor 1 circuit low and high DTC flag

  • Calibrated Fuel Pressure target maximum is above 20Mpa

the load limits will then come from

 

Load Limit Charge Air Temp

image-20261020-105245.png

Only applied when AIT is greater than 20degC, this map is also multiplied by 0.8 if there is a P0112 or P0113 DTC

Load limit for low temp fuel pressure target

The fuel pressure target limit is only applied when the coolant temperature is less than 27deg, when the ECT is below the Load Limit HPFP target to High 1 & 2 are applied

Load Limit HPFP target to High 1 is used when the fuel pressure target is high above 20Mpa (only at low ECT)

Load Limit HPFP target to High 2 is used when the fuel pressure target is high below 20Mpa only at low ECT)

image-20261020-152107.png

the Y axis of these maps is total fuel enrichment, this is the equivalence ratio and cold start corrections etc. this is why the values are larger as cold start fuel compensations can be large.

so the load limit for the 0x2 source and be one of three paths

  1. 320 (hardcoded limit)

  2. the output of Load Limit HPFP target to High when temperatures are low

  3. the output of Load Limit Charge Air Temp which if there is a DTC is multiplied by 0.8

Load limit type 03 (0x3) - Pre Ignition and Limp Modes

This load limit has 4 limit stages based which it calculates independently and applies the lowest calculated load limit output to the mode. the 4 different sub functions are

Function 1 - Pre Ignition Protection stages (stored in memory)

Load Limit Normal Map is the low Pre ignition count, no events detected in the trip, this function and hence this map is always used

image-20261020-165709.png

once a set number of pre ignition events have been detected on a trip the load limit (limp mode 2) map is chosen and the output used as the limit

image-20261020-165934.png

if its in stage 2 of preignition protection and still detects pre ignition it wil move to the load limit (limp mode 3) map using this as the load limit output.

image-20261020-165949.png

If there are many pre ignition events detected in a trip the stage is committed to the ecu’s memory and and the stage 1 & 2 load limits can be used after a key off without a DTC being show give a low speed reduced power mode.

Function 2 - Pre Ignition DTC when set calls the Load Limit Pre Ignition (DTC active) map output and uses that as the output to the load limit type 3.

image-20261020-170937.png

 

Function 3 - when a P0327 / P0328 (knock sensor circuit) or P0335 / P0337 / P0338 (crank sensor) DTCc is set, and the load is above 100% this function uses the Load Limit Overboost (DTC active) map as the load limit value

image-20261020-170942.png

If none of the thresholds have been exceeded or DTCs set it will default to the load limit normal map or the hardcoded value of 320 whichever is lower.

Load limit type 05 (0x5) - Boost control error / Over boost DTC

this Load limit has 5 separate limit maps each triggered by various activation thresholds these are,

    1. boost sensor / MAF / VVT / IAT or throttle control DTCs

    2. WG solenoid or Overboost DTCs

    3. Sensor range and correlation DTCs

    4. Overboost detected (2 severities) without a DTC yet

    5. Throttle control DTCs

The maps axis values are RPM and Atmospheric pressure ratio (atmo / 101.3)

Load Limit 5a - P0237. P00CF, P0112, P0113, P0102 P0011 and P0015

If any boost sensor / MAF / VVT / IAT or throttle control DTC is triggered the output value of map Load Limit Overboost DTC Rel 1 is used,

image-20261021-085743.png

 

Load Limit 5b - P0234 and P0243 If the WG solenoid or overboost DTC is triggered the output value of map Load Limit Overboost DTC Rel 2 is use

image-20261021-085802.png

 

Load Limit 5c - P012C, P012D, P006D, P0034, P0035 and P23AA DTC is triggered the output value of map Load Limit Overboost DTC Rel 3 is used

image-20261021-085912.png

 

Load Limit 5d 1502 and 1503 - Overboost severity DTC is triggered the output value of map Load Limit Overboost DTC Rel 4 or 5 is use

image-20261021-085958.png

these maps are triggered by the actual boost going above the calculated boost limit threshold for a series of different timers. The overboost threshold is calculated by the following

Over-boost threshold = Load and Boost limit 3D map + (Turbo Inlet pressure (kpa) x Compressor inlet pressure smoothing B1, B2, B3 or Sensor Smoothing maps) for set periods of time.

e.g. threshold = 235 + 94 * 0.147 (map output at max airflow) = 248.8kPa

the over boost threshold has 3 severities for the trigger

  1. Low severity Over-boost - if the threshold is exceeded for 100 uses the Overboost related 5 map

  2. Medium severity Over-boost - if the threshold is exceeded for a further 75ms on top of the 100 it uses the Over-boost related 4 map as the load limit

  3. High severity Over-boost - if the threshold is exceeded it sets the P0234 Overboost DTC and the Over-boost load limit rel 2 map is used

low severity and medium severity threshold maps are Compressor inlet pressure smoothing B1, B2, B3

image-20261021-104239.png

The high severity threshold map is Compressor inlet pressure Sensor Smoothing

image-20261021-104337.png

Compressor inlet pressure Smoothing A

is the the hysteresis threshold calculation that the actual boost must be below to release the over-boost severity event

image-20261021-104428.png

 

Load Limit 5e - If any Throttle control error DTC is triggered the output value of map Load Limit Overboost DTC Rel 1 is use

image-20261021-085743.png

if none of these load limits have been set the 0x5 type load limit is set to 320

Load limit type 06 (0x6) - Fuel System DTC

Tis limit is employed when the fuel system has an issue flagged, the trigger is when P1235, P0192, P0193, P0087, P0088 DTCs are active. When this load limit is active the Load Limit for Fuel Pump Failure is used.

image-20261021-105312.png

Load limit type 08 (0x9) - Misfire DTCs

When the P300 misfire DTC is triggered the Load limit Type 8 Mode A and B (DTC Active) maps are used to set the final load limit. map A is used when there is active misfires and B is used when the misfire stops but the DTC is held.

image-20261021-110221.png

Load limit type 09 (0x9) - MAF Signal Range (P0102/0103) Load limit

when the MAF signal low or High DTC (P0102 or P0103) is active the load limit EGT (DTC Active) map is used as the load limit

image-20261021-110901.png

 

Load limit type 11 (0xB) - Diagnostic Tool present / Tester mode active

this load limit is applied when the diagnostic tool is running a process, it generally last for a set period of time (120s), when active the Load limit Unk DTC 1 & 2 maps set the 0xB load liit

image-20261021-111519.png

the choice between the two maps is made by the idle mode

Load limit type 13 (0xD) - GPF differential Pressure

The type D load limit in G16E-GTS is based on the GPF differential pressure sensor value, from the disassembly it appears that when the GPF differential pressure raises above the the threshold in the GPF Diff Press Load limit On Thres it decrements the allowed airflow value until the differential pressure drops below the threshold.

image-20261021-113234.png

The value of airflow measured (through the GPF) is capped at 511g/sec when the function is not active. When the differential pressure threshold is exceeded the MAF average + a correction the ecu subtracts a set value from the airflow, which is then converted to a load limit using factors and an rpm component, this decrement continues until l the diff pressure is under control.

The value is then held and only incremented when the load is increased again without the GPF sensor being above the threshold.

Load limit type 14 (0xE) - Cat temp an soot level

This is a cat temperature and GPF soot load limit and is disabled in the calibration (even in Yaris).

Load limit type 52 (0x32) - Exhaust flap DTC (Corolla onl)

this load limit only exists on cars natively with the exhaust flap. when the duty is below this Exhaust Flap DTC threshold

image-20261021-120245.png

the Load limit value from Exhaust flap DTC limit is applied

image-20261021-120332.png

Load limit type 53 (0x35) - Atmo and Temperatures

This load limit function contains the load limiter Baro map (which can be Baro or Turbo inlet pressure) if its lower than the others. the type 35 load limit is applied if any of the following thresholds are met

  • The ECT is lower than threshold (calibrated at -40degC stock)

  • The AIT is lower than threshold (calibrated at -40degC stock)

  • The atmospheric pressure ratio is below 0.95 (atmo pressure / 101.3)

Load Limiter Baro

The X axis is RPM and the Y axis is atmospheric pressure ratio (atmo pressure / 101.3)

Load limiter AIT and ECT, these are only used when below the ECT and AIT threshold (set at-40 stock) so are not used normally and are left at 320 in the OEM calibration.

image-20261020-083412.png

Load limit type 200 (0xC8) - Limit released

this load limit source is set when the load limit is changed to a higher value then the last limit, it is held normally because when no new limits are applied that are lower it will always be trying to ramp out of the limit even though it caps at 320 load.

This essentially means that the engine will be using the torque to load tables for the load target.

Boost

Boost Target

The Boost target in the G16E-GTS is generated from the Torque target via the torque to load maps and the inverse Airflow and VE calculations to derive a pressure value that is used by the target, this allows the OEM strategies to apply limitations and different running modes to target to accommodate for various function, like limp modes power restrictions and cat warm up etc. In normal running modes, the boost target has a minimum allowed, a maximum allowed and then the PR target derived from load targets.

Note: These maps are all multiplied by turbo inlet pressure to generate an appropriate boost target from the PR target that the load airflow pressure model creates.

There are logging parameters for the maximum allowed boost target and the source of the boost target limit keeping in mind that boost targets are derived from torque targets converted to load targets further converted to a pressure target.

Boost Target limit Type value

Boost Target Limit Source Description

0

Hardcoded 320 limit

10

Load and Boost and limit 3D (in Limiters)

20

Max Boost target 2d (3d for corolla)

Boost target Simplified diagram-20240228-143024.jpg

Boost target is capped by the Load and Boost Limit 3D or the Max Boost Target Map (2d or 3D depending on Yaris/Corolla) maps primarily but they are a cap so load targets will have to be high enough to target the ceiling set by these boost maps.

image-20240823-095322.png

or the Max Boost Target,

image-20240422-110737.png

The Minimum Boost Target map is also used but rarely comes into play, this map is also corrected for turbo inlet pressure

image-20240422-110848.png

Boost Control (Wastegate control)

RaceROM Simplified Boost Control

Given the OEM control uses 4D maps and has limited Closed Loop feedback mechanisms can be difficult to calibrate the RaceROM boost control function can be enabled. This function overwrites all of the OEM WG decisions when in normal operating mode (WG duty Reason = 254).

From our testing the OEM solenoid appears to run at 300hz making it unsuitable for aftermarket valves. It is also a vacuum based system that is normally open and sharing the vacuum pump used for brake booster etc. the system can open or close the WG to any position at any operating point. This means it will respond differently to boost operated WG’s. 0% duty in full open, 100% duty is fully closed.

RR Simplified Boost Control Overview

Configuring RaceROM simplified Boost control

to use RaceROM boost control it will need to be enabled in the RaceROM special features map

image-20240422-134712.png

If this box is disabled the OEM strategy will be used. You then need to make sure that you are achieving your desired boost target by adjusting the

  • Torque demand

  • Torque Limits

  • Torque to load conversion

  • Target Load Limits

  • Boost Target limits

When they are acceptable you can then start to calibrate the Base WG duty tables. if you wish to reduce the boost target down you can do this using MS mode boost target limit maps. The boost target is not overwritten just capped.

image-20240422-144831.png

Wastegate Base for hi and Low TIP can be calibrated to suit what the turbo and exhaust set up require.

image-20240422-145833.png

Blending between these two maps is done by the WG Blend - TIP map

image-20240422-145927.png

Final WG base value = (WG Base HI TIP * ( 100 - WG blend TIP)) + (WG blend TIP x WG Base Low TIP)

There are compensations for EGT AIT and Gear available to help the base WG duty for successive runs or changes in environment.

image-20240422-152809.png
Closed Loop Corrections

The closed loop corrections for simplified Boost control include a Proportional and Integral component which aid in improving the spool and keeping the boost on target. the Boost actual used to make correction can be smoothed to improve the overall control variance but it will slightly delay the response, to adjust the smoothed MAP use the WG boost actual smoothing map.

 

image-20240422-151532.png

The Proportional component runs full time, and is an immediate term added to the WG duty to make corrections based on the current boost error. the default values are set to try increase duty at high errors to aid in spooling the turbo, these values will need adjusting to calibrate the system for your particular turbo setup.

image-20240422-151620.png

The Integral component (a value that adds to itself over time) is intended to ensure the steady sate boost actual value meets the target, the integral step value is the value that is added to running total based on the boost error.

image-20240422-151846.png

This map has 0’s at either end to prevent integral windup, there are also activation thresholds for Throttle RPM and boost actual to allow the integral to only be active when required. each of these values has their own hysteresis value.

 

image-20240422-152510.png

The final integral value is also limited to limit any windup that might occur.

image-20240422-152619.png

OEM Boost Control

The WG duty map is a 4D type map that uses mass airflow and boost target as the X and Y axis for the rpm specific bin (slice or layer of the full map).

As previously noted each bin (3d map layer) is related to an individual RPM point. the RPM breakpoints for these maps are set in the WG Duty Map - Z Axis Bins 2d map

so at 4400rpm the 3D map for that bin (bin 12) is being referenced

WG Duty PID control

The WG PID control on G16E-GTS appear to be quite slow to respond and most of the load / boost control is done using throttle closure. the maps that are responsible for PID control will be labelled up shortly and made visible in the software.

Ignition

Toyota Ignition lists the ignition Timing Controls as set in different modes, from what it appears it uses a base timing map with two modes (OEM calibration has both of them with the same values) and an ignition advance map based on VVT angle positions (on or off). It also utilizes an optimum ignition map and MBT type maps picking the lowest of the sum of base + advance or the optimum/MBT maps.

Control Strategy

Description

Control Strategy

Description

Fixed advance characteristics

It is fixed at 5° BTDC while the engine is starting.

Basic advance characteristics

The most appropriate ignition timing is selected from a map based on the signals from a variety of sensors.

Compensation advance characteristics

  1. Warm engine advance

  2. Idle stabilization

  3. Knock compensation

The ignition timing is advanced or retarded depending on the signals from a variety of sensors.

When the engine coolant temperature is low, the ignition timing is advanced in accordance with driving conditions to enhance drivability.

If the idle speed drops, the ignition timing is advanced to stabilize the idle speed. If the idle speed increases, the ignition timing is retarded.

If knock occurs, the ignition timing is corrected based on the signal from the knock control sensor.

RR Ignition Control

With RaceROM v2 map switch mode specific base and advance maps have been added to the ROM allowin you to adjust the timing in each map switch mode to suite different octanes or power outputs.

image-20240423-071936.png

There are maps for VVT on and VVT off

image-20240423-072042.png

The OEM corrections and Optimum limits are still applied to these RaceROM maps

Optimum Ignition appears to be a 4D map with AFR as the 4th Axis

image-20240423-094600.png
image-20240423-094537.png

Temperature corrections are also made to both optimum and base + advance maps. there are correction for coolant temperature and Charge air temperature.

Ignition Timing Correction Coolant temp and RPM multiplier

image-20240423-144028.png

Ignition Timing Correction Charge Air temp and RPM multiplier

image-20240423-143956.png

there also appears to be a map for a seperate correction for overlap am angles when the engine is in scavenging modes. Ignition Correction for Overlap, this 4D maps add to the ignition timing value based on intake & exhaust CAM angles, RPM and load.

image-20240423-160602.png
Ignition setpoints for torque control

There appear to be many torque calculation ignition maps, that use a base map combined with the Ignition efficiency maps to calculate how much actual torque is being generated, the maps should not need changing, if your torque estimation is out then these maps may need investigation.

image-20240423-160857.png

OEM Control

At the moment we think that it uses Ignition timing Mode 1,2 A &B as the main target maps and applies corrections to these values.

the correction maps are employed by adding to the base maps

Knock Control

Toyota Describe the knock control system as using a full time feedback control system using the knock sensor to feed back into the target ignition timing.

The Final ignition timing amount determined by the presence or absence of knocking is calculated as below.


Ignition timing = Base timing value + Knock Correct Learn Value + Knock F/B Value + each compensation amount

Example: 21 deg(CA) = 10 deg(CA) + 14 deg(CA) - 3 deg(CA)

  • The Minimum Ignition timing value is determined by the Minimum Ignition and correction maps.

  • The knock correction learned value is calculated as shown below in order to keep Knock F/B Value as close to -3 deg(CA) as possible.

    • When Knock F/B Value is less than -4 deg(CA), Knock Correct Learn Value is slowly decreased.

    • When Knock F/B Value is higher than -2 deg(CA), Knock Correct Learn Value is slowly increased.

  • The base value is -3 deg(CA) and is adjusted based on the presence or absence of knocking. When there is no knocking, the value is increased, and when knocking is present, the value is decreased.

From what we have seen knock is logged as two variables,

  1. Knock Correction Learned Value parameter that is based around 24deg and increases and decreases based on general fuel quality. This seems to be a longer term value that is updated at a much slower rate (like the Subaru advance multiplier). It should not need to be changed but it is believed this value is responsible for limiting how far it can advance.

image-20240423-161748.png
  1. Knock Correction Angle, which appears to be the instantaneous knock response from the sensor. The EcuTek dev car has always been based around -3deg and it counts up until it commits that increase into the Knock Correction Learned parameter, when it resets to -3deg and continues to measure knock sensor output and correct the ignition. tis value can be changed, if set to 0 it wont add ignition only ever remove it.

image-20240423-163227.png

 

There are also many Minimum Ignition MBT Ignition, Ignition correction and compensation maps which will be defined in the future.

Fuel Target

The G16E-GTS Fuel target strategy has many modes called under many conditions. With RaceROM V2 it is possible to overwrite the Lambda target used when not in component protection modes. The key to tuning the AFR target is first understanding which fueling mode it is using when you are trying to adjust the value. To do this the Lambda Target Source (RaceROM) and Lambda Target (RaceROM).

image-20240423-172225.png

The Lambda target sources are still under disassembly but so far this is what has been discovered

Number for Fuel Target Type

Fuel Target Description

3

CAT Heating

4

Engine Off or Cranking

21

 

22

 

23

 

24

 

25

 

26

 

31

EGT Component Protection related

32

EGT Component Protection related

33

EGT Component Prot. (Component Prot. maps) using EGT estimate E

34

EGT Component Protection related

61

Idle Fuel Restart

62

Overrun Cat Cooling

123

 

124

Overrun Pre Cut Enrichment

126

 

127

 

141

 

152

Unk Purging possibly GPF

153

CAT Purging

154

Unk Purging possibly GPF

181

 

182

 

250

Normal Operating Point (and RaceROM)

RaceROM Lambda Target Maps

The MS Mode Lambda target maps are available when the fueling mode 250 is being used, this coincides to the mode used when its in normal operating conditions.

OEM Lambda Target Maps

When The ECU decides to target a lambda value away from 1 it will be shown in the Lambda Target Source (RaceROM) parameter, the first parameter to cause a change is usually the EGT exceeding the EGT thresholds after which it moves to the component protection maps which it seems to follow most of the time.

Lambda Target Mode 32 (0x20)

Lambda Target Mode 32 use the corrected output from EGT Estimate E which is then compared to the 2D maps Lambda Tgt EGT threshold 1.

image-20240424-085528.png

If the EGT estimate E or EGT type 6 output is above the value in the map it will calculate the Lambda target using the following method.

the Mode 32 threshold and target maps for the correction factor are Lambda Target EGT correction Temp Target (mode 0x20) & Lambda Target EGT correction Temp Thres (mode 0x20)

image-20240424-092047.png
Lambda Target Mode 33 (0x21)

This mode is Primarily for EGT component protection To get the lambda target to move away from 1 earlier you can reduce the EGT threshold 1D maps and it will go into component protection earlier.  

The Lambda Target Component protection map can be set to give a low enough target to decrease EGTs

More information on fuel target modes will be added on request.

Injection (Port and Direct)

Toyota have used a Direct injection 4-stroke petrol engine with Sequential multiport Fuel Injection (D-4S SFI). This system has both direct injectors and port injectors used for the fuel injection system. In order to fully maximize the effectiveness of the direct injection (cooling effect, jet stream use, air-fuel mixture form variance), a fuel injection is divided over multiple slots depending on a variety of running conditions.

Port to Direct injection split is split into two variables,

  1. An overall Injection mode (logs as Injection Mode, 0 = Port, 1= DI, 2 = PI and DI)

  2. A Combustion mode in which a set number of pulses can occur.

The choice of Injection mode and Combustion mode is set by a series of Choice maps that select which series of Split, Lambda adjustment and limitations are used. Port injector Scaling in G16E-GTS has several different modes. Tuning the PI scaling with OEM is not as simple as doing so with a 1D value as there are multiple calculation paths for different operating conditions; with RaceROM, we have added Map Switch mode-specific port injector sizes.

image-20240418-133543.png

The stock Injector size is approximately 180cc; the aftermarket injector sizes should be close when used directly. These maps work by scaling the calculated open time for the OEM injectors to suit that of your after market injector, there may be number size limits if you choose injectors that are too large but currently we have not experienced this.

image-20240418-133709.png

Cam timing

Cam timing is variable on both intake and exhaust camshafts (dual VVT) there are many corrections for OCV control to help keep the actual cam angle on the target angle but so far during testing we have not seen much cam error.

image-20240819-140324.png

To adjust the cam angle targets for intake use the Intake Cam Angle Target map

To adjust the exhaust cam timing set the Overlap Cam angle Target Angle the respective map. This is the target overlap, Exhuast cam target = Overlap Target - Intake Cam Target

There are also CAM timing limit maps for both intake and exhaust Cams, the limits of these have not been tested, if these are adjusted valve to piston or valve to valve contact may occur so modify with caution.

Intake Cam timing Max Map

image-20240819-145018.png

Exhaust Cam Timing Max map.

image-20240819-145042.png

Speed and RPM Limiters

Engine Speed Limits

There are maps to control RPM limits and Vehicle speed limits in the G16E ROMs, rev limits for all of the different functions are calculated all the time and chosen based on the lowest value, the rev limit value and the rev limit source can be logged with RaceROM

image-20241206-111141.png

Rev limits have two separate main modes one for track and one for normal driving, these can be set aas required

image-20241206-111004.png

With RaceROM there are also rev limits per map switch mode, these and the OEM values will need to be increased to change the rev limit

image-20241206-111259.png

Vehicle Speed Limits

to change the vehicle speed limit use vehicle speed limit 1 value. this map has been tested on JDM cars with success.

image-20241206-111420.png
image-20241206-113828.png