CANBabel is a conversion tool for CAN database files. It was created because most CAN databases are stored in proprietary formats that are not documented and can not be used for free. The open source CAN analysis tool Kayak introduced a new and well documented XML based format: KCD (file suffix .kcd). KCD is the acronym for Kayak CAN definition. Initially CANBabel supported only conversion from the .dbc format to the .kcd format but the goal is to provide a tool that supports many formats.
In 2018 CANBabel has been completely revised to support databases containing CAN-FD messages.
Currently the following formats are supported (Read/Write):
- Kayak CAN Definition (.kcd) (Read/Write)
- Vector (.dbc) (Read)
You will need a current Java JDK and Maven to build CANBabel. After cloning the repository just type $ mvn clean install and maven will fetch all dependencies and build a CANBabel jar-file in the /target folder of your workspace. You can also just add the repository in your favorite Java IDE as a new maven project.
In most environments it's simply required to doubleclick the jar-file in a file browser. If not try the commandline java -jar CANBabel-{version}-jar-with-dependencies.jar
<NetworkDefinition xmlns="http://kayak.2codeornot2code.org/1.0">
<Document name="kcdexample.dbc" date="Tue Aug 18 09:27:40 CEST 2015">Converted with CANBabel (https://github.com/julietkilo/CANBabel)</Document>
<Node id="15" name="ECU_Clima"/>
<Bus name="Comfort" baudrate="125000">
<Message id="0x21C" name="Temperature">
<Producer>
<NodeRef id="15"/>
</Producer>
<Signal name="InsideTempC" offset="0" length="12">
<Value type="signed" unit="Cel"/>
</Signal>
<Signal name="OutsideTempC" offset="12" length="12">
<Value type="signed" unit="Cel"/>
</Signal>
</Message>
</Bus>
</NetworkDefinition>