CSS Electronics: Our free online DBC editor lets you load, edit, review and save DBC files - with great preview features and full DBC support
A standardized DBC file like our J1939 DBC will typically allow you to DBC decode 60-80% of the CAN bus messages that you record from a J1939 network in a given truck, excavator, tractor or other heavy-duty machine. The rest of the messages are proprietary. The explanation is that most heavy-duty OEMs agree to encode most standard parameters like speed, RPM, temperatures etc. according to the J1939 specification - but they are not forced to do so. For example, an OEM may decide that the J1939 standard does not provide adequate encoding for a specific subset of their data - and instead opt for a proprietary encoding. Others may simply prefer to only use the J1939 encoding for a very limited subset of their data - if any at all. A similar logic applies to the NMEA 2000 and ISOBUS data.
As an OEM you may be working with the CCP/XCP protocols, which enable read/write access to electronic control units (ECUs) for e.g. data measurement or calibration. Here, a more advanced database format is often used called A2L (ECU Description Files), which describe all the information required by an external tool for communicating with an ECU. A2L files also describe how to decode signals recorded via CCP/XCP, but the format offers far more complex conversion methods vs. the simple linear equation supported by DBC files. As such, you can typically transform some of the A2L decoding rules into a DBC file format - but not necessarily all. See our CCP/XCP intro for details.
The DBC file 32-bit version of a 29-bit can be derived by storing the 29-bit ID in the lower 29-bits and then setting the most significant bit to 1. This can be denoted as (CAN ID)|(1<<31). It can seem redundant, but the ability to distinguish between 29-bit and 11-bit IDs is important e.g. when considering the visualized example of an extended 29-bit ID 0x00000123 (291). In the DBC file, this would receive a 32-bit ID of 2147483939, making it possible to uniquely separate out this ID from e.g. the standard 11-bit variant of 0x123, which would be denoted in the DBC file with the 11-bit decimal ID 291.
If you record raw data from a LIN bus (Local Interconnect Network), you will typically not have a DBC file available, but instead a LIN Description File (LDF). For example, the popular HELLA battery sensor comes with LDF files for decoding, but not DBC files. However, the formats are very similar and in most cases you can manually transform your LDF file into a DBC file to enable support within a wider array of software/API tools. With that said, some LIN signals are encoded in the LDF file in a non-linear way, which is not supported by the DBC format. See our LIN bus intro and LDF intro for details.
DBC multiplexing and extended multiplexing are advanced topics and not supported by all DBC editors or data processing tools. However, you can use e.g. the CANDB++ DBC editor or our online DBC editor to more easily view and understand DBC files with multiplexing, like our OBD2 and UDS DBC files. Further, all CANedge software/API tools support extended multiplexing in terms of DBC decoding data - and our webCAN GUI does too, enabling real-time decoding of e.g. OBD2 and UDS responses streamed live from the CANsub. For more on this topic, see Vector's guide to extended multiplexing in DBC files here.
If you are recording CANopen data from e.g. PLCs/machinery/robotics, the decoding rules may be described in an Electronic Data Sheet (EDS) file instead of a DBC file. EDS files can be opened in a text editor like DBC/LDF files, but the structure differs significantly. If you wish to create a DBC file based on your EDS file, it is therefore useful to have an EDS editor tool that visualizes the contents. Note also that CANopen decoding rules often involve the use of multiplexing. See our CANopen intro and CANopen EDS intro for details.
In some cases (like SAE J1939), a DBC file may include more CAN signals in a CAN message than are actually packed in the dataframe. The J1939 DBC that we offer is based on the J1939 Digital Annex and provides information that goes across most heavy duty vehicle brands. Of course, not every truck or excavator will include the same data and often a specific vehicle model/year will only use e.g. 2-3 SPNs within a specific CAN message - while the J1939 DBC may specify up to e.g. 8 unique signals for that particular CAN message ID.
OBD2 differs to some extent as your car's electronic control units do not rely on OBD2 to function. Rather, each car OEM implements their own proprietary CAN protocol for this purpose. You can use a CAN bus data logger to request OBD2 data from the car and the car will then respond if it supports the requested data. It is somewhat up to the OEM to what extent they support OBD2 data in their car, meaning that a specific car will typically only support a subset of the potentially available OBD2 parameters.
Importantly, not all CAN software/API tools support transport protocol aka multi-frame data. As an example, the transport protocols are supported via the CANedge MF4 decoders (and thus indirectly for e.g. dashboard visualization and Python/MATLAB analysis) - but not the asammdf GUI. On the streaming side, our webCAN software also handles J1939 TP, ISO TP and NMEA 2000 Fast Packet reassembly on the fly - letting you DBC decode multi-frame messages in real-time when streaming via the CANsub.


