Virtual Vehicle Bus

About this prototype

Virtual Vehicle Bus is a working model of the part of a car most people never see — the network that carries every button press, sensor reading and warning between the car's computers and the screens in front of the driver. You sit in the driver's seat with two displays I designed, a driver display behind the steering wheel and a center touchscreen, and the Pipeline panel slides in with the live data underneath them, so you can press a pedal or flip the turn signal and watch the message travel through the car and come back as what the screen shows.

I built it as a portfolio piece for automotive HMI work (HMI, or human–machine interface, is the industry's name for everything a driver sees, touches and hears). Designing a car screen means designing for data that can arrive late, go missing or be wrong, and I wanted a prototype where those conditions actually happen instead of being mocked up in a static design.

How a button press reaches the screen

A modern car has dozens of small computers, and none of them can see each other's data directly. This is the path a gear change takes, from the moment you ask for Drive to the moment the D lights up on the driver display.

  1. You ask for a gear. With your foot on the brake (hold B), you press D or the D button on the center console. In a real car the shifter would send this request, and here the infotainment system plays that part so you can watch the whole round trip.
  2. The request goes to a module. Each job in a car belongs to an electronic control unit, or ECU — a small computer dedicated to one system, like the drive unit that runs the motor and gears, the ABS module that measures wheel speed, or the body module that flashes the turn signals. The prototype simulates the modules the two displays depend on.
  3. It travels over a CAN bus. ECUs talk over a CAN bus (Controller Area Network), a shared pair of wires where every module broadcasts short messages called frames. A frame has no sender or recipient, just an ID that says what it is and up to eight bytes of data, and any module that cares about that ID picks it up. Like many cars, the prototype has three buses: powertrain (motor, brakes, battery), body (lights, climate, restraints) and infotainment.
  4. A gateway decides what crosses. A gateway module sits between the buses and forwards only the messages on its list, which keeps the infotainment system — the part connected to phones and the internet — from talking freely to the brakes. Everything the screens know has to come through it.
  5. The bits get decoded. A frame is just ones and zeros until something says what they mean. Carmakers keep that meaning in a signal database (a DBC file), which says, for example, which bits of the ABS module's message hold the vehicle speed and what each step of them is worth. Turning raw bits into a named value like that is decoding, and each named value is a signal.
  6. Signals become vehicle properties. The screens don't read signals directly. They run on Android Automotive, the version of Android built into a car's own hardware, where a layer called the Vehicle HAL turns signals into vehicle properties — standard names like GEAR_SELECTION or PERF_VEHICLE_SPEED that any app can follow. Each property also carries a status that says whether its value is available, unavailable or in error.
  7. The screen waits for the car to confirm. While the request is out, the D shows as pending (outlined with a dashed line), and it only lights once the drive unit's answer comes back over the bus. If you weren't on the brake, the answer is a rejection and the display tells you why, so the screen never shows a gear the car hasn't actually selected.

Warning lights take a shorter, separate path. A real instrument cluster has its own computer that listens to the powertrain and body buses directly and lights the warnings itself, so a frozen or rebooting infotainment system can never hide a brake warning. The prototype works the same way, which is why the warnings stay on screen when you take the gateway offline in the Faults tab.

What's real and what's invented

The message layouts are real Ford layouts as documented in opendbc, an open-source collection of signal databases maintained by comma.ai. Its Ford files were worked out by people reverse-engineering the CAN traffic of Ford and Lincoln vehicles — Ford didn't publish them and has nothing to do with this project. The prototype uses seventeen of those messages with their real IDs, names, bit layouts, units and timings, and an automated test checks every one of them against the original file.

The vehicle properties are real too, with the IDs and meanings Android Automotive defines, and the warning behavior follows the US safety standards described below.

Some things had to be invented because no public source covers them, like Ford's checksum math (a short code that lets a module detect a garbled frame), the messages for the climate, defrost and regenerative braking settings, timings the database leaves out, and the physics of the car itself. Anything invented carries a pink illustrative tag in the pipeline panels, so you can always tell which is which.

It's also simpler than a real car in a few ways. It uses only classic CAN (newer cars mix in faster CAN FD and automotive Ethernet), the road is always flat, the battery never charges, and everything runs in one web page, where a real car would put the warning lights on separate, safety-certified software.

The safety rules it follows

In the US, what a car has to show the driver is set by the Federal Motor Vehicle Safety Standards (FMVSS), written by the National Highway Traffic Safety Administration. Where a standard applies, the prototype follows it — it's a design model rather than a certified product, but building to the rules shaped many of its decisions.

Things to try

Glossary

CAN bus
Controller Area Network, the shared wiring most of a car's modules use to broadcast messages to each other.
ECU (module)
Electronic control unit, a small computer that runs one system, like the motor, the brakes or the lights.
Frame
One message on a CAN bus, made of an ID and up to eight bytes of data.
Message ID (0x415)
The label on a frame. The 0x means the number is written in hexadecimal (base 16), the usual way engineers write these IDs.
Gateway
The module that connects the buses and forwards only the messages each one is allowed to see.
DBC file
A signal database that says which bits of each message mean what, and how to turn them into real units.
Signal
One named value decoded from a frame, like vehicle speed or turn signal state.
Vehicle property
Android Automotive's standard name for a piece of car data that apps can read, follow or ask to change, like GEAR_SELECTION.
Vehicle HAL
Vehicle Hardware Abstraction Layer, the part of Android Automotive that turns the car's signals into vehicle properties.
Head unit (IVI)
The infotainment computer behind the center screen. IVI stands for in-vehicle infotainment.
Instrument cluster
The driver display behind the steering wheel, and the computer that runs it.
Telltale
A warning or indicator light on the driver display, like the seat belt or high beam symbol.
Regenerative braking (regen)
Slowing an electric car with its motor, which turns the motion back into charge for the battery.
FMVSS
Federal Motor Vehicle Safety Standards, the US safety rules every new car has to meet.
HMI
Human–machine interface, everything the driver sees, touches and hears.

Credits

Not affiliated with or endorsed by Ford.

Designed and built by Derek Collins with Claude Code.