CAN bus Mapping: Difference between revisions

From TechWiki
Jump to navigation Jump to search
No edit summary
November 2026 update: corrected CAN byte mappings, validated vehicle signals, TPMS, exhaust valve, OBD-II diagnostics and ECU performance history.
 
Line 2: Line 2:


== Introduction ==
== 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.


This page documents CAN bus signals and decoding investigations on the Lotus Exige V6 platform. The reference vehicle is a '''2021 Lotus Exige 390 Final Edition'''. Some signals may be shared with other Exige, Evora or Elise models, but such compatibility should not be assumed without 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.


The work uses a passive, '''listen-only''' CAN interface to collect standard 11-bit CAN frames from the high-speed vehicle bus. No control or diagnostic frames are intentionally transmitted. The purpose is to support data logging and an iPhone dashboard without altering the vehicle.
'''Last updated: 27 November 2026.'''


'''Last updated: 19 October 2026.'''
Firmware reference: ESP32 V1.106. Functional validation status includes subsequent owner-reported vehicle tests. See [https://forums.seloc.org/viewthread.php?tid=510758 SELOC CAN Bus Mapping thread].
 
For discussion, evidence and contributions, see the [https://forums.seloc.org/viewthread.php?tid=510758 SELOC CAN Bus Mapping thread].


=== Evidence classifications ===
=== 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.


* '''Confirmed''' – Signal behaviour identified through tests on the reference car.
All byte indexes are zero-based. Identifiers, masks and explicitly prefixed values are hexadecimal. DLC denotes data length in bytes.
* '''Identified in firmware''' – Working application-level interpretation; exact underlying raw mapping not yet published here.
* '''Provisional''' – Candidate byte, scaling or interpretation requiring additional correlation.
* '''Reference''' – From an earlier third-party mapping, not yet independently validated on this car.
* '''Observed''' – Frame captured but meaning unknown.
 
Unless specified otherwise, all byte indexes are '''zero-based''' (B0 is the first byte); all identifiers and masks are hexadecimal.


== Test vehicle and equipment ==
== Test vehicle and equipment ==
{| class="wikitable"
{| class="wikitable"
! Item !! Detail
! Item !! Detail
Line 28: Line 24:
| Vehicle || 2021 Lotus Exige 390 Final Edition, 3.5-litre V6
| Vehicle || 2021 Lotus Exige 390 Final Edition, 3.5-litre V6
|-
|-
| Network || High-speed CAN, 500 kbit/s, standard 11-bit frames
| Network || 500 kbit/s, standard 11-bit CAN
|-
|-
| OBD-II connection || Pin 6 (CAN-H), pin 14 (CAN-L)
| OBD-II connection || Pin 6 CAN-H; pin 14 CAN-L
|-
|-
| Microcontroller || ESP32-C3
| Microcontroller || ESP32-C3
Line 36: Line 32:
| Transceiver || SN65HVD230
| Transceiver || SN65HVD230
|-
|-
| Interface mode || CAN listen-only (passive capture)
| Interface || Passive telemetry; separately controlled diagnostic requests
|-
|-
| Output || BLE connection to iPhone dashboard
| Output || BLE to iPhone application and Apple CarPlay
|}
|}
 
Do not add unnecessary bus termination. See [[On board diagnostics]].
The CAN reader is not an OBD-II PID scanner: it listens to native broadcast CAN messages. Generic OBD-II diagnostic requests and responses are a separate mechanism; see [[On board diagnostics]].
 
'''Safety:''' Do not add unnecessary bus termination.  


== CAN identifier summary ==
== CAN identifier summary ==
{| class="wikitable sortable"
{| class="wikitable sortable"
! CAN ID !! DLC !! Candidate or decoded function !! Status
! CAN ID !! Observed DLC !! Bytes / bits !! Signal !! Conversion / interpretation !! Status
|-
| 0x085 || 5 || B0–B1 || Steering angle || signed16(B0 + 256 × B1) × 0.09° || Confirmed
|-
|-
| <code>0x085</code> || 5 || Steering angle || '''Confirmed'''
| 0x0A2 || 7 || B0–B1 || Wheel speed 1 || (B0 + 256 × (B1 &amp; 0x1F)) / 16 km/h || Confirmed
|-
|-
| <code>0x0A2</code> || 7 || Wheel speed / vehicle speed || Reference
| 0x0A2 || 7 || B2–B3 || Wheel speed 2 || (B2 + 256 × (B3 &amp; 0x0F)) / 4 km/h || Confirmed
|-
|-
| <code>0x0A4</code> || 8 || Additional wheel speeds || Reference
| 0x0A4 || 8 || B0–B1 || Wheel speed 3 || (B0 + 256 × (B1 &amp; 0x1F)) / 16 km/h || Confirmed
|-
|-
| <code>0x0A8</code> || 3 || Mode/status candidate || Provisional
| 0x0A4 || 8 || B2–B3 || Wheel speed 4 || (B2 + 256 × (B3 &amp; 0x0F)) / 4 km/h || Confirmed
|-
|-
| <code>0x102</code> || 3 || Unknown frame || Observed
| 0x0A8 || 3 || B1 || Selected drive mode || 0x01 Normal; 0x09 Sport; 0x21 Race || Confirmed
|-
|-
| <code>0x114</code> || 6 || Throttle, clutch, brake, mode button; RPM reference || Mixed (see below)
| 0x0B7 || 7 || B3, B6 vary || Unknown || — || Observed
|-
|-
| <code>0x0B7</code> || 7 || Unknown high-rate frame || Observed
| 0x102 || 3 || B0–B2 || Unknown || Example: 00 00 9C at standstill || Observed
|-
|-
| <code>0x303</code> || 7 || Chassis dynamics (yaw / lateral acceleration) || Provisional
| 0x114 || 6 || B0–B1 || Engine RPM || (B0 + 256 × B1) / 4 || Confirmed
|-
|-
| <code>0x400</code> || 7 || Vehicle status; fuel and temperature hypotheses || Observed / provisional
| 0x114 || 6 || B3 || Accelerator pedal || B3 × 100 / 255 % || Confirmed
|}
 
'''Driving mode:''' Normal, Sport and Race are identified and displayed correctly by the project firmware and iPhone app. The exact raw source CAN byte or state-machine definition is not yet documented on this page; do not equate the mode-button bit with a direct selected-mode byte.
 
== Detailed CAN mappings ==
 
=== 0x085 – Steering angle ===
 
'''DLC:''' 5
 
{| class="wikitable"
! Bytes !! Encoding !! Formula !! Status
|-
|-
| B0–B1 || Signed 16-bit, little-endian || Steering angle (degrees) = raw × 0.09 || '''Confirmed'''
| 0x114 || 6 || B4 bits 4–5 || Clutch pedal || Mask 0x30; see below || Confirmed
|-
|-
| B2–B4 || Undetermined || – || Unknown
| 0x114 || 6 || B4 bit 7 || Mode-button activity || Mask 0x80 || Confirmed
|}
 
=== 0x0A2 – Wheel/vehicle speed ===
 
'''DLC:''' 7. An earlier Exige V6 RaceCapturePRO mapping associates this identifier with wheel/vehicle speed. Byte-level decoding has not yet been confirmed on this reference vehicle.
 
'''Status: Reference.'''
 
=== 0x0A4 – Additional wheel speed ===
 
'''DLC:''' 8. Earlier RaceCapturePRO material identifies additional wheel-speed information here. Byte-level validation remains outstanding.
 
'''Status: Reference.'''
 
=== 0x0A8 – Candidate status ===
 
'''DLC:''' 3
 
{| class="wikitable"
! Byte !! Observations !! Interpretation !! Status
|-
|-
| B1 || <code>0x01</code>, <code>0x09</code> || Possible vehicle or mode status; not conclusively decoded || Provisional
| 0x114 || 6 || B5 bit 0 || Brake pedal || Mask 0x01; 0 released, 1 pressed || Confirmed
|}
 
Do not treat these raw values as an established Normal/Sport/Race mapping.
 
=== 0x102 – Unidentified frame ===
 
'''DLC:''' 3. Example at standstill: <code>00 00 9C</code>. '''Status: Observed.'''
 
=== 0x114 – Engine and driver inputs ===
 
'''DLC:''' 6
 
{| class="wikitable"
! Byte/bit !! Signal !! Decode !! Status
|-
|-
| B0–B1 || Engine RPM || Older reference: 16-bit raw × 0.25; endian/order must be checked against captures || Reference / calibration tested
| 0x303 || 7 || Raw payload || Live lateral G || App-side byte mapping not yet published || Confirmed functionality
|-
|-
| B3 || Throttle / accelerator || Percent = raw × 100 / 255 || '''Confirmed'''
| 0x400 || 7 || B4 || Estimated fuel level || B4 × 100 / 255 % || Provisional calibration
|-
|-
| B4 bits 4–5 (<code>0x30</code>) || Clutch input || See below || '''Confirmed'''
| 0x400 || 7 || B5 || Coolant temperature || B5 × 0.625 − 40 °C || Confirmed
|-
|-
| B4 bit 7 (<code>0x80</code>) || Drive-mode button activity || 0 = inactive; 1 = active || '''Confirmed'''
| 0x401 || 8 || B0–B7 || Exhaust valve report || ASCII EX.OPEN / EX.SHUT after 0x01 || Confirmed
|-
|-
| B5 bit 0 (<code>0x01</code>) || Brake pedal || 0 = released; 1 = pressed || '''Confirmed'''
| 0x401 || varies || ASCII payload || TPMS warnings || Warning text; see below || Firmware mapping
|}
 
==== Clutch input ====
 
Apply mask <code>0x30</code> to B4:
 
{| class="wikitable"
! Masked value !! Observed state
|-
|-
| <code>0x00</code> || Released
| 0x402 || 8 || B0–B3 || Four individual tyre pressures || Raw × 0.02 bar || Confirmed against gauge
|-
|-
| <code>0x10</code> || Intermediate
| 0x402 || 8 || B4 || TPMS status || Raw status; incomplete interpretation || Provisional
|-
|-
| <code>0x20</code> || Deeper / fully pressed
| 0x402 || 8 || B5–B7 || Observed format bytes || All zero in supported format || Observed
|}
|}


==== Drive-mode button versus selected mode ====
== 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.


B4 bit 7 captures activity of the mode selector. It does '''not''' directly report the selected driving mode. See [[#Driving modes – Normal, Sport and Race|Driving modes]].
=== 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.


==== Engine RPM testing ====
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.
 
Engine tests have included idle and approximate 2,000 and 3,000 RPM holds. A discrepancy between the dashboard and an initial iPhone display led to subsequent firmware corrections. Publish a final byte order and scaling only after checking the corrected output against recorded raw frames.
 
=== 0x0B7 – High-rate unidentified frame ===
 
'''DLC:''' 7. B3 and B6 change frequently. '''Status: Observed.'''
 
=== 0x303 – Vehicle dynamics ===
 
'''DLC:''' 7. A strong candidate for yaw-rate and lateral-acceleration data. B4 has been investigated for lateral acceleration, but signedness, offsets and scale factors are not yet validated.
 
'''Status: Provisional.'''
 
=== 0x400 – Vehicle status, coolant and fuel candidates ===
 
'''DLC:''' 7
 
Recorded example: <code>00 00 00 02 C4 81 18</code>
 
The following assignments were investigated during firmware development and are '''not yet a validated decoding of this entire frame''':


=== 0x0A8 — Driving modes ===
{| class="wikitable"
{| class="wikitable"
! Byte !! Candidate signal !! Proposed calculation !! Status
! B1 raw !! Application state !! Mode
|-
|-
| B4 || Fuel level || Percent = raw × 100 / 255 || Provisional; exact byte/source needs correlation
| 0x01 || 0 || Normal
|-
|-
| B6 || Coolant temperature || Degrees C = raw − 40 || Provisional; raw frame correlation required
| 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.


'''Consistency check:''' In the example frame B6 is hexadecimal <code>0x18</code> (decimal 24), giving −16°C under the proposed temperature formula. That is not a plausible warm-engine reading. Accordingly, the example does '''not''' validate this coolant mapping. Similarly, B4 is <code>0xC4</code> (decimal 196), not the separately observed fuel candidate raw value 137. Avoid combining measurements taken at different times into a single supposedly validated frame.
=== 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.
== Driving modes – Normal, Sport and Race ==
 
'''Status: Identified and working in firmware / iPhone application.'''
 
The three selected drive modes have been identified in project testing. The firmware distinguishes the states and passes the result to the iPhone display.


Clutch state is obtained by applying mask 0x30 to B4:
{| class="wikitable"
{| class="wikitable"
! Decoded state !! Displayed mode !! Project status
! Masked value !! State
|-
|-
| 0 || Normal || Identified
| 0x00 || Released
|-
|-
| 1 || Sport || Identified
| 0x10 || Partially pressed
|-
|-
| 2 || Race || Identified
| 0x20 || Fully pressed
|-
| 0x30 || Unknown
|}
|}
B4 bit 7 indicates mode-button activity; B5 bit 0 indicates brake-pedal application. Neither represents hydraulic brake pressure.


These values are '''decoded application states'''. They are not presented as raw values from a specific CAN byte until the underlying message, byte/bit and test captures are documented here.
=== 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.


'''Related known signal:''' <code>0x114</code>, B4 bit 7 (<code>0x80</code>) = drive-mode button input. This is separate from the selected-mode value.
=== 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.


== Coolant temperature – test record ==
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.


Dashboard readings from one stationary warm-up/cool-down test:
=== 0x401 — Dashboard notifications and exhaust valve ===
 
{| class="wikitable"
{| class="wikitable sortable"
! Complete eight-byte payload (hex) !! ASCII (B1–B7) !! Reported state
! Time !! Dashboard temperature !! Condition
|-
| 19:09 || 46°C || Engine running
|-
| 19:14 || 68°C || Engine running
|-
|-
| 19:17 || 78°C || Engine running
| <code>01 45 58 2E 4F 50 45 4E</code> || EX.OPEN || Open
|-
|-
| 19:19 || 84°C || Engine running
| <code>01 45 58 2E 53 48 55 54</code> || EX.SHUT || Closed
|-
| 19:21 || 84°C || Engine stopped; ignition on
|-
| 19:39 || 68°C || Engine off; ignition switched off after observation
|}
|}
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 dashboard trace is a useful ground-truth comparison for raw CAN captures. A conventional <code>raw − 40</code> temperature decoding has been investigated. '''A definitive ID/byte assignment cannot be claimed solely from these dashboard observations.'''
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.
 
== Fuel-level candidate ==
 
A provisional fuel-level calculation is:
 
<code>Fuel (%) = raw × 100 / 255</code>
 
For an observed raw value of 137, the calculated level is <code>53.7%</code>, broadly consistent with a dashboard gauge near half full. This is an initial plausibility check only, not proof of the byte assignment or a linear relationship over the entire tank range. Further measurements while refuelling and driving are needed.
 
== Calculated gear position ==


The Exige uses a manual gearbox. A gear estimate can be derived by comparing engine RPM with vehicle speed and matching the RPM/speed ratio against expected ratios for each gear. Neutral, clutch operation, low speed and wheel slip require special handling.
=== 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.


'''Status: Algorithm tested successfully with simulated inputs on the bench; in-car driving validation outstanding.'''
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.


== iPhone display project ==
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.


An ESP32-C3 sends decoded data over BLE to an iPhone application. The iPhone app was at '''version 1.1''' during this work; the ESP32 firmware has an independent version history.
== 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.
{| class="wikitable"
{| class="wikitable"
! Information !! Status
! Service / PID !! Function !! Status
|-
| 01 / 01 || MIL and fault-count status || Working
|-
|-
| Steering angle || Confirmed CAN signal
| 03 || Stored fault codes || Implemented
|-
|-
| Accelerator input || Confirmed CAN signal
| 04 || Clear fault codes || Vehicle tested
|-
|-
| Clutch and brake switches || Confirmed CAN signals
| 07 || Pending fault codes || Working
|-
|-
| Normal / Sport / Race mode || Identified and displayed by app
| 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.
{| class="wikitable sortable"
! Data identifier (hex) !! Purpose !! Status
|-
|-
| Engine RPM || Display/calibration tested
| 0x0323 || Lifetime maximum RPM || Vehicle confirmed
|-
|-
| Coolant temperature || Temperature observations recorded; byte map provisional
| 0x0333 || Lifetime maximum speed || Firmware support; event details outstanding
|-
|-
| Fuel level || Provisional decoding
| 0x0338 || Total engine operating hours || Vehicle confirmed
|-
|-
| Vehicle speed / wheel speeds || Reference mapping, road validation pending
| 0x0301–0x0308 || Throttle distribution bins || Firmware support
|-
|-
| Calculated gear || Bench tested, road validation pending
| 0x0309–0x0310 || RPM distribution bins || Firmware support
|-
|-
| Yaw/lateral acceleration || Candidate signal
| 0x031E, 0x031F, 0x0321–0x0323 || Retained RPM record investigation || Field documentation ongoing
|-
|-
| Exhaust valve state || Not yet identified
| 0x0342–0x0350 || Low oil pressure history || Historical event retrieval confirmed by owner
|-
|-
| TPMS values || Not yet identified on the CAN bus
| 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 ==
== 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.


* Publish raw CAN evidence and exact byte/bit decoding for the '''selected driving-mode state''' (modes themselves have been identified).
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.
* Confirm coolant-temperature CAN ID, byte and scaling against dashboard reference values.
* Confirm fuel-level source, scaling and tank-gauge behaviour.
* Validate wheel speeds and calculated gear while driving.
* Validate yaw rate and lateral acceleration, including scale and sign.
* Investigate exhaust-valve state and whether TPMS information is broadcast on the accessible bus.
* Check mappings on other Lotus models and model years.


== Contributing a new mapping ==
== 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.
Please include the vehicle model/year, CAN ID, DLC, zero-based byte/bit, raw sample frame(s), interpretation, formula, units, capture/test conditions and whether the finding was independently confirmed. Avoid marking a value as confirmed based on a single static frame or a coincidental numerical match.
 
{| class="wikitable"
! Field !! Example
|-
| Vehicle || Exige 390 FE, 2021
|-
| CAN ID || <code>0x085</code>
|-
| DLC || 5
|-
| Data location || B0–B1
|-
| Data type || Signed 16-bit, little-endian
|-
| Conversion || raw × 0.09°
|-
| Test || Turn steering wheel and compare observed changes
|-
| Status || Confirmed
|}


== References and further reading ==
== References and further reading ==
 
* [https://forums.seloc.org/viewthread.php?tid=510758 SELOC CAN Bus Mapping thread]
* [https://forums.seloc.org/viewthread.php?tid=510758 SELOC forums – CAN Bus Mapping Thread] – ongoing testing and discussion.
* [https://forums.thelotusforums.com/topic/83886-exige-v6-can-bus-mapping-for-racecapturepro/ The Lotus Forums — Exige V6 CAN mapping for RaceCapturePRO] (including Rainer's wheel-speed definitions, 13 August 2018)
* [https://forums.thelotusforums.com/topic/83886-exige-v6-can-bus-mapping-for-racecapturepro/ The Lotus Forums – Exige V6 CAN bus mapping for RaceCapturePRO] – earlier reference definitions.
* [https://github.com/donour/LotusECMLogger LotusECMLogger] — technical reference for Lotus ECU diagnostics and retained performance information.
* [[On board diagnostics]] – SELOC TechWiki background on diagnostic connectors and CAN.
* [https://github.com/Alcantor/LotusECU-T4e LotusECU-T4e] — related ECU documentation.
* [[On board diagnostics]]


== Disclaimer ==
== 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.
This is independent enthusiast reverse engineering, not an official Lotus specification. Differences may exist between ECUs, model years, variants and firmware. Provisional definitions should not be relied upon for safety-critical uses or used to control vehicle functions.


[[Category:Electrical]]
[[Category:Electrical]]
[[Category:Exige V6]]
[[Category:Exige V6]]
[[Category:Lotus Evora]]
[[Category:Lotus Evora]]

Latest revision as of 14:59, 27 November 2026

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.