All projects

Communication Simulator

My diploma project, a desktop WPF app that generates CAPL code automatically from CAN DBC files and a user configuration.

Read
1 min
Source code
Public repository (opens in a new tab)
  • C#
  • WPF
  • CAN
  • DBC
  • CAPL

The problem

Testing automotive ECUs means simulating the messages of the rest of the vehicle on the CAN bus. That simulation is written in CAPL, and much of it follows directly from the network description in the DBC file: messages, signals, timings. Writing it by hand is slow, repetitive and easy to get wrong.

What I built

A WPF desktop application that:

  • reads CAN DBC files to learn which messages and signals exist;
  • lets the user configure what to simulate;
  • generates the CAPL code automatically from the DBC and that configuration.

The interesting part

Turning a network description into working code. The generator has to understand the structure of a DBC file and map it to CAPL constructs, so the output is code an engineer can actually use and read, not just text that compiles.

What I learned

  • Code generation pays off fastest on work that is repetitive and error-prone.
  • Building a tool for engineers means the output must be predictable and readable.
  • This project connected my two worlds: automotive communication and C#/.NET desktop development.
An unhandled error has occurred. Reload 🗙