dbc file is automatically generated

The dbc file is used to parse the CAN original message, so that the information we need is visually displayed in front of us. It is very helpful for us to analyze problems and faults.

There are roughly two kinds of dbc file production methods: manual production and automatic script generation.

Let’s talk about the first method: artificial production

Now many CAN card host computers basically have an interface for making dbc files. For example, the CANoe host computer and the PCAN host computer have related editing interfaces. The production is relatively simple, but the process is repetitive and cumbersome;

So, in order to free yourself from this tedious work, let's talk about the second method: automatic script generation.

The general idea of ​​using a script to generate a DBC file is as follows:

Arrange the CAN communication matrix used for editing DBC files in a certain format;

●Edit the script to read the CAN communication matrix in EXCEL form;

●The script can write the dbc file in the form of text (or string);

There are many tools for writing DBC file scripts, such as Microsoft's Visual Studio, or Matlab.

Because the CAN matrix format of each manufacturer is not uniform, it is not easy for me to provide the corresponding script here, so I can only share a general idea.

If you need a detailed script, please technical communication.

The author's level is limited, if there are any mistakes or deficiencies, please correct them!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324782309&siteId=291194637