This program turns a DBC file into a number of different formats.
dbcc is a program for converting a DBC file primarily into into C code that can serialize and deserialize CAN messages.
See the license file for details of the license for this program, it is released under the MIT license. Dependencies, if linked against, may have their own license and their own set of restrictions if built against.
The sources file mpc.c and mpc.h originate from a parser combinator written in C called MPC and are licensed under the 3 Clause BSD license
For a specification, as I understand it, of the DBC file format, see dbc.md. This is a work in progress.
There is a Vim syntax file for DBC files in the project, called dbc.vim
Consult the manual page for more information about the precise operation of the program.
- A lot of the DBC file format is not dealt with
- Special values
- Timeouts
- Error frames
- ...
- The generated C code has not been tested that much (it is probably incorrect!)
- Offer a template mechanism so arbitrary code can be populated with messages and signal lists.
- Make a template converter
- Read in produced XML file
- Allow the merging of multiple DBC files
- Write unit tests to cover the converter and the generated code.
- Basic sanity checking of the DBC files could be built in.
- The easiest way to check this is by generating an XML file and verifying it with an XSD file
- Find more CAN database examples