
Emerald K6/M3D ECU Log
v1.0.0Parses binary log files from Emerald K6 and M3D ECUs. Emerald ECUs use a dual-file format: - .lg2 file: Text file containing channel definitions (which parameters are logged) - .lg1 file: Binary file containing timestamped data records Both files must be present with the same base name. The LG2 file uses an INI-like format with [chan1] through [chan8] sections mapping to internal channel IDs. The LG1 file contains 24-byte records (8-byte OLE timestamp + 8 x 2-byte u16 values). Popular in UK tuning scene for classic car ECU conversions.
File Format
Channels (32)
correction
clt_correctionCoolant Temp CorrectionFuel correction based on coolant temperature
iat_correctionAir Temp CorrectionFuel correction based on intake air temperature
accel_enrichmentAcceleration EnrichmentTransient fuel enrichment during acceleration
warmup_enrichmentWarmup EnrichmentCold start fuel enrichment
custom
aux_input_1Auxiliary Input 1Generic auxiliary input channel
aux_input_2Auxiliary Input 2Generic auxiliary input channel
drivetrain
gearGear PositionCurrent gear (calculated or from sensor)
electrical
battery_voltageBattery VoltageSystem battery voltage
engine
rpmEngine RPMEngine crankshaft rotational speed
tpsThrottle PositionThrottle position sensor percentage
loadEngine LoadCalculated engine load
idle_valveIdle Valve PositionIdle air control valve position
fuel
lambdaLambdaWideband lambda sensor reading
afrAir-Fuel RatioAir-fuel ratio (stoich = 14.7 for gasoline)
afr_targetTarget AFRECU target air-fuel ratio
pulse_widthInjector Pulse WidthFuel injector open time
duty_cycleInjector Duty CycleFuel injector duty cycle percentage
fuel_cutFuel CutFuel cut active flag
ignition
ignition_advanceIgnition AdvanceSpark timing advance
spark_cutSpark CutSpark cut active flag
pressure
mapManifold PressureManifold absolute pressure
barometricBarometric PressureAmbient barometric pressure
fuel_pressureFuel PressureFuel rail pressure
oil_pressureOil PressureEngine oil pressure
boost_targetBoost TargetTarget boost pressure
boost_dutyBoost DutyBoost control solenoid duty cycle
speed
vehicle_speedVehicle SpeedVehicle speed from ECU
temperature
coolant_tempCoolant TemperatureEngine coolant temperature
iatIntake Air TemperatureIntake air temperature
oil_tempOil TemperatureEngine oil temperature
fuel_tempFuel TemperatureFuel temperature
exhaust_tempExhaust TemperatureExhaust gas temperature
Metadata
- Requires both .lg1 and .lg2 files with same base name
- Limited to 8 channels per log session
- Some channel IDs may vary between firmware versions