A Test Car in Software: Simulating Ten ECUs to Build a Scan Tool Without a Car
Before plugging into a real car, I built one in software: ten modules, live physics, fault codes, and the awkward behaviors real ECUs have. Every feature was proven against it first.
Why simulate
Developing against a real car means sitting in a driveway with the ignition on and the battery draining, and every bug risks leaving a module in an odd state. A simulator makes the whole stack testable on every commit.
What it models
- Ten modules at Genesis-like addresses: engine, transmission, ABS/ESC, airbag, steering, radar, camera, cluster, body and HVAC. Each one speaks ISO-TP, UDS and (engine and transmission) OBD-II.
- A drive cycle: speed, gear, RPM, load, throttle, and temperatures that warm up over time, so live data looks like live data.
- Real-world awkwardness: an airbag module that answers "response pending" first, modules that refuse to clear codes with security access denied (the way a security gateway does), an identifier that exists but is locked, and Hyundai-style KWP local IDs.
- Background broadcast traffic, so the CAN monitor has something to show.

What it caught
The first full test run found a real bug: the test expected only the engine to acknowledge an OBD clear, but the transmission acknowledged it too. That's correct behavior, and it changed how the clear results are reported.
It paid off twice
When I rewrote the tool from Python to Rust, the simulator came along unchanged in behavior, and its tests were ported before anything else. The Rust version had to produce the same module scan, the same codes and the same sweeps as the Python one before it replaced it.
Lessons
- Simulate the edge cases, not just the happy path. Real ECUs are slow, picky and occasionally rude.
- Make the simulator obviously fake (VIN
SIMG70DXCAN000001,[sim]signal names) so its data can never be mistaken for real findings.
Sources: D/Xcan build-05 (15 Nov 2026)