emerald logo

Emerald K6/M3D ECU Log

v1.0.0

Parses 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.

emerald
32 channels
binary
Website

File Format

Type
binary
Extensions
.lg1, .lg2
Endianness
little

Channels (32)

correction

clt_correctionCoolant Temp Correction

Fuel correction based on coolant temperature

percentfloat-50 - 100
iat_correctionAir Temp Correction

Fuel correction based on intake air temperature

percentfloat-50 - 50
accel_enrichmentAcceleration Enrichment

Transient fuel enrichment during acceleration

percentfloat0 - 200
warmup_enrichmentWarmup Enrichment

Cold start fuel enrichment

percentfloat0 - 200

custom

aux_input_1Auxiliary Input 1

Generic auxiliary input channel

float
aux_input_2Auxiliary Input 2

Generic auxiliary input channel

float

drivetrain

gearGear Position

Current gear (calculated or from sensor)

int0 - 8

electrical

battery_voltageBattery Voltage

System battery voltage

voltsfloat0 - 20

engine

rpmEngine RPM

Engine crankshaft rotational speed

rpmfloat0 - 12000
tpsThrottle Position

Throttle position sensor percentage

percentfloat0 - 100
loadEngine Load

Calculated engine load

percentfloat0 - 200
idle_valveIdle Valve Position

Idle air control valve position

percentfloat0 - 100

fuel

lambdaLambda

Wideband lambda sensor reading

lambdafloat0.5 - 1.5
afrAir-Fuel Ratio

Air-fuel ratio (stoich = 14.7 for gasoline)

afrfloat8 - 22
afr_targetTarget AFR

ECU target air-fuel ratio

afrfloat8 - 22
pulse_widthInjector Pulse Width

Fuel injector open time

millisecondsfloat0 - 50
duty_cycleInjector Duty Cycle

Fuel injector duty cycle percentage

percentfloat0 - 100
fuel_cutFuel Cut

Fuel cut active flag

bool

ignition

ignition_advanceIgnition Advance

Spark timing advance

degreesfloat-20 - 60
spark_cutSpark Cut

Spark cut active flag

bool

pressure

mapManifold Pressure

Manifold absolute pressure

kpafloat0 - 400
barometricBarometric Pressure

Ambient barometric pressure

kpafloat80 - 110
fuel_pressureFuel Pressure

Fuel rail pressure

barfloat0 - 10
oil_pressureOil Pressure

Engine oil pressure

barfloat0 - 10
boost_targetBoost Target

Target boost pressure

kpafloat0 - 300
boost_dutyBoost Duty

Boost control solenoid duty cycle

percentfloat0 - 100

speed

vehicle_speedVehicle Speed

Vehicle speed from ECU

kphfloat0 - 300

temperature

coolant_tempCoolant Temperature

Engine coolant temperature

celsiusfloat-40 - 150
iatIntake Air Temperature

Intake air temperature

celsiusfloat-40 - 80
oil_tempOil Temperature

Engine oil temperature

celsiusfloat-40 - 180
fuel_tempFuel Temperature

Fuel temperature

celsiusfloat-40 - 80
exhaust_tempExhaust Temperature

Exhaust gas temperature

celsiusfloat0 - 1200

Metadata

Tested With
Emerald K6Emerald M3D
Known Issues
  • 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