Include tool in AGL to convert canoe's DBC to AGL's json format
Description
Environment
Attachments
- 08 Feb 2021, 02:43 PM
- 21 Apr 2020, 11:13 AM
- 21 Apr 2020, 11:13 AM
- 21 Apr 2020, 11:13 AM
- 09 Mar 2020, 08:18 AM
Activity
Walt Miner March 29, 2023 at 9:43 PM
App FW deprecated from UCB starting with Marlin release (14.0.0)
Thomas Walzer February 8, 2021 at 2:43 PM(edited)
I did some further work on that. It seems that I have a pipeline that is currently working. It consists of https://github.com/walzert/dbc2json to convert dbc to json for the low-level-can-generator (I had to add one option that is necessary for an DBC file from canoe). I have one issue still open, if the can message starts at bit positon 0 it get a bit messy with the values.
This file should work.
dbc2json_converter.py -i ../Chassi_AGL.dbc -b hs -w
Thomas Walzer April 21, 2020 at 11:18 AM
My steps were converting "Powertrain.dbc" with
canconvert --jsonExportAll Powertrain.dbc jsonExportAll_Powertrain.json
then I took the message with the ID 4 "P_Engine_Sensoric" and copied the signals in the example signals.json from
result with the generator
"messages": {
"0x004": {
"name": "P_Engine_Sensoric",
"bus": "slcan0",
"signals": {
"P_Engine_Speed": {
"generic_name": "powertrain.engine.acceleration",
"bit_position": 37,
"bit_size": 16,
"factor": 1,
"offset": 0
},
"P_Engine_Engine_Status": {
"generic_name": "powertrain.engine.status",
"bit_position": 10,
"bit_size": 12
},
"handlers": [ ]
}},
I did'nt used decoder and it's more like a feasibility test like every thing else
Thomas Walzer March 9, 2020 at 8:25 AM
Is the openxc method working at the moment by someone? I tried my DB and nothing was working. I'm not sure if it is my DB with some errors or the software itself.
I added my file that was converted with canmatrix from .dbc to .json, I made it with https://canmatrix.readthedocs.io/en/latest/# as tool.
For my usecase in research / education it would be good to make some can messages with a tool like CANoe then convert that data for AGL and use the same file for my Simulation 2 CAN software.
We need to allow ppl to easily covert the can messages into the low-level binding's format.