CAN bus Mapping

From TechWiki
Revision as of 14:59, 27 November 2026 by Happy.smiler (talk | contribs) (November 2026 update: corrected CAN byte mappings, validated vehicle signals, TPMS, exhaust valve, OBD-II diagnostics and ECU performance history.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This page documents CAN bus signals and ECU diagnostic investigations on the Lotus Exige V6 platform. The reference vehicle is a 2021 Lotus Exige 390 Final Edition. Compatibility with other Exige, Evora and Elise variants requires separate testing.

Normal telemetry uses passive CAN monitoring. Controlled diagnostic transmission is used separately for OBD-II diagnostics and ECU history retrieval. No ECU calibration changes are intended.

Last updated: 27 November 2026.

Firmware reference: ESP32 V1.106. Functional validation status includes subsequent owner-reported vehicle tests. See SELOC CAN Bus Mapping thread.

Evidence classifications

  • Confirmed: working on the reference vehicle.
  • Firmware mapping: implemented decoding; independent evidence or physical channel assignment may remain undocumented.
  • Provisional: interpretation or scaling requires further correlation.
  • Observed: captured frame with unknown meaning.

All byte indexes are zero-based. Identifiers, masks and explicitly prefixed values are hexadecimal. DLC denotes data length in bytes.

Test vehicle and equipment

Item Detail
Vehicle 2021 Lotus Exige 390 Final Edition, 3.5-litre V6
Network 500 kbit/s, standard 11-bit CAN
OBD-II connection Pin 6 CAN-H; pin 14 CAN-L
Microcontroller ESP32-C3
Transceiver SN65HVD230
Interface Passive telemetry; separately controlled diagnostic requests
Output BLE to iPhone application and Apple CarPlay

Do not add unnecessary bus termination. See On board diagnostics.

CAN identifier summary

CAN ID Observed DLC Bytes / bits Signal Conversion / interpretation Status
0x085 5 B0–B1 Steering angle signed16(B0 + 256 × B1) × 0.09° Confirmed
0x0A2 7 B0–B1 Wheel speed 1 (B0 + 256 × (B1 & 0x1F)) / 16 km/h Confirmed
0x0A2 7 B2–B3 Wheel speed 2 (B2 + 256 × (B3 & 0x0F)) / 4 km/h Confirmed
0x0A4 8 B0–B1 Wheel speed 3 (B0 + 256 × (B1 & 0x1F)) / 16 km/h Confirmed
0x0A4 8 B2–B3 Wheel speed 4 (B2 + 256 × (B3 & 0x0F)) / 4 km/h Confirmed
0x0A8 3 B1 Selected drive mode 0x01 Normal; 0x09 Sport; 0x21 Race Confirmed
0x0B7 7 B3, B6 vary Unknown — Observed
0x102 3 B0–B2 Unknown Example: 00 00 9C at standstill Observed
0x114 6 B0–B1 Engine RPM (B0 + 256 × B1) / 4 Confirmed
0x114 6 B3 Accelerator pedal B3 × 100 / 255 % Confirmed
0x114 6 B4 bits 4–5 Clutch pedal Mask 0x30; see below Confirmed
0x114 6 B4 bit 7 Mode-button activity Mask 0x80 Confirmed
0x114 6 B5 bit 0 Brake pedal Mask 0x01; 0 released, 1 pressed Confirmed
0x303 7 Raw payload Live lateral G App-side byte mapping not yet published Confirmed functionality
0x400 7 B4 Estimated fuel level B4 × 100 / 255 % Provisional calibration
0x400 7 B5 Coolant temperature B5 × 0.625 − 40 °C Confirmed
0x401 8 B0–B7 Exhaust valve report ASCII EX.OPEN / EX.SHUT after 0x01 Confirmed
0x401 varies ASCII payload TPMS warnings Warning text; see below Firmware mapping
0x402 8 B0–B3 Four individual tyre pressures Raw × 0.02 bar Confirmed against gauge
0x402 8 B4 TPMS status Raw status; incomplete interpretation Provisional
0x402 8 B5–B7 Observed format bytes All zero in supported format Observed

Detailed CAN mappings

0x085 — Steering angle

The first two bytes form a signed little-endian 16-bit integer. Multiply by 0.09 to obtain degrees. Remaining bytes are undocumented.

0x0A2 and 0x0A4 — Wheel speeds

Both frames use the two conversion formulas in the summary table. All four individual wheel speeds work on the reference car. The firmware retains the original Speed1–Speed4 channel labels; the physical corner assignment is not established by this firmware alone. Earlier RaceCapturePRO definitions are credited below.

Vehicle speed is calculated as the mean of Speed1 and Speed2 from 0x0A2. The firmware rejects readings older than 500 ms and pair differences exceeding the greater of 5 km/h or 10% of the mean. It does not derive vehicle speed from 0x400.

0x0A8 — Driving modes

B1 raw Application state Mode
0x01 0 Normal
0x09 1 Sport
0x21 2 Race

All three modes work correctly. Other raw values are treated as invalid by the firmware. The mode-button activity bit in 0x114 is a separate signal.

0x114 — Engine and driver inputs

RPM is unsigned little-endian, scaled by 0.25 RPM/count. The current firmware uses integer division by four. Accelerator pedal position is B3 scaled to 0–100%; this should not be confused with independently measured throttle-plate angle.

Clutch state is obtained by applying mask 0x30 to B4:

Masked value State
0x00 Released
0x10 Partially pressed
0x20 Fully pressed
0x30 Unknown

B4 bit 7 indicates mode-button activity; B5 bit 0 indicates brake-pedal application. Neither represents hydraulic brake pressure.

0x303 — Chassis dynamics

Live lateral G works correctly and originates from the vehicle CAN bus, not phone motion sensors. V1.106 forwards the raw payload; the exact application-side byte positions, sign and scale require documentation from the iPhone source. This is a documentation gap, not an outstanding functional validation task. Yaw rate and longitudinal acceleration remain open investigations.

0x400 — Coolant and fuel

Coolant uses B5 × 0.625 − 40 °C, replacing the obsolete B6 hypothesis. For example, B5 = 0xC0 gives 80°C. Coolant display is vehicle-tested.

Fuel uses B4 × 100 / 255 percent. Raw 137 gives approximately 53.7%. The estimate works, but full-tank calibration and linearity remain provisional. RPM is no longer decoded from 0x400 in this firmware.

0x401 — Dashboard notifications and exhaust valve

Complete eight-byte payload (hex) ASCII (B1–B7) Reported state
01 45 58 2E 4F 50 45 4E EX.OPEN Open
01 45 58 2E 53 48 55 54 EX.SHUT Closed

Exhaust valve reporting works correctly. These messages represent dashboard notifications, not a physical position sensor. Clearing the notification does not change the retained valve state. V1.106 invalidates the known state if 0x401 traffic is absent for more than two seconds.

The TPMS warning parser recognises LF LOW, RF LOW, LR LOW and RR LOW. These are implemented recognised text patterns, not a claim that every pattern has been independently captured on the reference vehicle.

0x402 — Tyre pressure monitoring

B0–B3 carry four pressure channels. Pressure in bar = raw × 0.02; pressure in kPa = raw × 2; pressure in psi ≈ raw × 0.290075. For example raw 100 gives 2.00 bar or approximately 29.0 psi. Raw 0xFF indicates unavailable data.

The supported format is DLC 8 with B5–B7 equal to zero. B4 is retained as uninterpreted status. A B4 transition from 0x12 to 0x00 coincided with a rear-left warning clearing, but this is not a complete bit definition.

All four displayed pressures were checked independently against a pressure gauge. The precise raw-byte-to-wheel assignment should be documented from the iPhone source and controlled wheel tests; V1.106 still carries a provisional rear-left assignment flag. Tyre temperatures and sensor battery levels remain unidentified. CAN frame freshness is not proof of fresh sensor RF measurements.

Calculated parameters

  • Vehicle speed: mean of two wheel-speed channels as above.
  • Estimated gear: RPM/speed ratio compared with expected ratios, with clutch and validity handling. Road tested and working correctly.
  • Trip distance: trapezoidal integration of successive valid speed readings, skipping gaps greater than 500 ms. This is not a direct odometer reading.

Standard OBD-II diagnostics

Diagnostic requests are separate from passive broadcasts. Functional request ID 0x7DF; response IDs 0x7E8–0x7EF. The project implements controlled diagnostic access with stationary and engine-off safety checks. Fault-code clearing changes diagnostic state and must only be deliberately requested.

Service / PID Function Status
01 / 01 MIL and fault-count status Working
03 Stored fault codes Implemented
04 Clear fault codes Vehicle tested
07 Pending fault codes Working
0A Permanent fault codes Times out on reference car
01 / 42 ECU control-module voltage Confirmed

For PID 0x42, response data bytes A and B give voltage = (256 × A + B) / 1000 V. This is the ECU-reported voltage, not a separately measured battery-terminal voltage.

Lotus-specific ECU performance history

Manufacturer-specific service 0x22 (Read Data By Identifier) uses request ID 0x7E0, response ID 0x7E8 and positive service 0x62. Some records require ISO-TP multi-frame assembly. The table lists identifiers implemented in the firmware; identifier whitelisting alone does not establish a validated response-field definition.

Data identifier (hex) Purpose Status
0x0323 Lifetime maximum RPM Vehicle confirmed
0x0333 Lifetime maximum speed Firmware support; event details outstanding
0x0338 Total engine operating hours Vehicle confirmed
0x0301–0x0308 Throttle distribution bins Firmware support
0x0309–0x0310 RPM distribution bins Firmware support
0x031E, 0x031F, 0x0321–0x0323 Retained RPM record investigation Field documentation ongoing
0x0342–0x0350 Low oil pressure history Historical event retrieval confirmed by owner
0x0351–0x035F Lateral G history Historical event retrieval confirmed by owner

Historical low oil pressure and lateral G events are working in the application and can be exported. These are retained ECU records, distinct from live telemetry. The exact record layouts, units and field offsets are not established by the uploaded ESP32 source alone.

V1.106 was supplied as a bench-first candidate: lateral G vehicle access is disabled by default until the separate authorization flag is enabled following bench validation. Subsequent owner-reported successful vehicle testing is distinct from the original release's documented validation status. Synthetic bench values must not be interpreted as actual ECU history.

Engine operating hours are not calendar timestamps. Dates for historical events cannot be recovered exactly without appropriate additional time references.

iPhone and Apple CarPlay

The BLE application displays live telemetry including RPM, speed, all four wheel speeds, coolant temperature, accelerator input, estimated fuel, steering, brake and clutch state, Normal/Sport/Race mode, estimated gear, lateral G, four tyre pressures, exhaust valve state and trip distance. It also supports diagnostic functions, ECU history and data export. Configurable CarPlay displays and widgets are under development and refinement.

Open investigations

  • Tyre temperature and TPMS sensor battery level.
  • Complete TPMS B4 status interpretation.
  • Actual hydraulic brake pressure.
  • Yaw rate and longitudinal acceleration; retained longitudinal G history if available.
  • Fuel calibration across the tank range.
  • Additional retained high-RPM and maximum-speed event details, including duration where available.
  • Estimating historical event calendar dates from engine-hour reference records.
  • Mode 0A permanent fault codes.
  • Additional ECU history records and compatibility with other vehicle variants.

Documentation still to publish: exact live lateral G app-side conversion, physical wheel-speed and TPMS channel assignments, and detailed ECU history response-field layouts. These documentation gaps are separate from confirmed working features.

Contributing a new mapping

Please provide the vehicle model/year, CAN ID, DLC, zero-based byte/bit, sample frames, data type, conversion, units, capture conditions and validation method. Do not mark an interpretation confirmed solely because a single raw value appears plausible.

References and further reading

Disclaimer

Independent enthusiast reverse engineering, not an official Lotus specification. ECU, model-year and variant differences may exist. Do not rely on these definitions for safety-critical vehicle control. Diagnostic requests should be made only under appropriate safe conditions.