CSV to DBC
Use this script when the master CAN definition lives in the spreadsheet database and you need a DBC for tools or downstream projects.
What it does
The script opens the team’s Excel workbook, reads the CAN definitions from the sheets, and writes a .dbc file with the same base name.
How to use it
- Run the script from Python.
- Select the Excel workbook in the file picker.
- Wait for the
.dbcoutput to be created next to the source file.
Input expectations
The workbook should contain the CAN database structure the script expects, including message and signal rows with the usual ID, name, length, scaling, and receiver fields.
Output
The generated DBC is written alongside the source workbook so it can be used by CAN tooling, simulators, or firmware workflows.
When to use it
Use this when the spreadsheet is the source of truth and you need a DBC without manually recreating the definitions.
TIP
Keep the spreadsheet format consistent. This script is most useful when the workbook stays in the same structure from one export to the next.
