11-29-2021 03:23 AM
Hello All,
I am trying to read CAN data from the USB CAN. I am trying to create a dbc file and with the help of that dbc file I am trying to read the CAN data from the hardware. I need to know how to add/create some important parameters during the creation of dbc file. The following are the parameters,
Scaling Factor, Scaling Offset, Min Value, Max value, Start Bit, Num Bits.
Also, how to convert the boolean datatype from CAN Data.
Expecting the favorable reply,
Thanks,
Karthik
11-29-2021 12:57 PM
Hi Karthik,
@Karthik_Sekar wrote:
I need to know how to add/create some important parameters during the creation of dbc file. The following are the parameters,
Scaling Factor, Scaling Offset, Min Value, Max value, Start Bit, Num Bits.
To edit/create a DBC file I recommend to use the CANdb++ from Vector. You can get it for free…
Once you installed that tool it is very easy to define signals (with all the items you mentioned), messages, nodes, ArbIDs, whatever else you need in your CAN protocol!
@Karthik_Sekar wrote:
Also, how to convert the boolean datatype from CAN Data.
How do you define the "boolean datatype" signal?
I guess you will get an integer (with value 0 or 1) with most CAN driver implementations. It's just a guess because you don't supply any information on your hardware or drivers…