canmatrix icon indicating copy to clipboard operation
canmatrix copied to clipboard

Support for loading A2L files?

Open MatinF opened this issue 3 years ago • 3 comments

Hi Eduard,

have you considered adding support for loading A2L files in canmatrix? It looks like you have a separate repo that may parse A2L files already. Would be ideal if a parser could take all "DBC style" signals that can be represented 1:1 in a DBC file and parse these for e.g. decoding purposes in Python projects leveraging canmatrix.

let me know your thoughts :-)

MatinF avatar Jun 30 '22 12:06 MatinF

Hi @MatinF ,

I am not sure how this could work.

A2L-files are for XCP/CCP-Transport, so how to map them to something useful in canmatrix? I did not see (yet) some reliable structure in A2L-files such that I could do some PDU/Signal-Mapping.

So - what would be your requirement or idea?

ebroecker avatar Dec 15 '22 14:12 ebroecker

Hi Edward,

it may be that it's too impractical. It would only be a subset of the A2L that would make sense, but below we describe a bit the extraction of DBC style signal decoding info from A2L: https://www.csselectronics.com/pages/ccp-xcp-on-can-bus-calibration-protocol#a2l-ecu-description-file

MatinF avatar Dec 15 '22 20:12 MatinF

Hi @MatinF

Thanks for your quick response. We could create something that creates a list of signals with scaling unit min, max values and maybe some comments - if this helps something.

But we are not able to create some structure like frames only a flat list of signals.

The information extraction would be a bit like ARXML extraction...

ebroecker avatar Dec 15 '22 20:12 ebroecker