canmatrix icon indicating copy to clipboard operation
canmatrix copied to clipboard

Convert arxml file to dbc file wrong

Open MaggieLxj opened this issue 2 years ago • 6 comments

when i convert the arxml file, I found signals in the file, but no dbc file output. Maybe it's because the size of the arxml file is 9M? Please help me solve this problem, thank you.

└─[0] canconvert -vv 'H37_Project_SOMEIP_Service_Table_V7.0.1_TDA4_Acore-20231031023628.arxml' H37.dbc INFO - convert - Importing H37_Project_SOMEIP_Service_Table_V7.0.1_TDA4_Acore-20231031023628.arxml ... DEBUG - arxml - Read arxml ... DEBUG - arxml - 0 frames in arxml... DEBUG - arxml - 0 can-frame-triggering in arxml... DEBUG - arxml - 0 SIGNAL-TO-PDU-MAPPINGS in arxml... DEBUG - arxml - 506 I-SIGNAL-TO-I-PDU-MAPPING in arxml... DEBUG - arxml - CONTAINER-I-PDU-HEADER-BYTE-ORDER not found (default big endian) INFO - convert - done

INFO - convert - Exporting H37.dbc ... INFO - convert - done

Then nothing happened.

MaggieLxj avatar Nov 30 '23 07:11 MaggieLxj

Hi @MaggieLxj ,

first off all it seems you are converting a SOME/IP-ARXML to dbc which does not make much sense.

But - if you want to, you have to use either " --arxmlIgnoreClusterInfo" or "--arxmlEthernet" command line switch else the ethernet-part of arxml is ignored.

After that you should see at least the signals in the dbc.

ebroecker avatar Nov 30 '23 15:11 ebroecker

Thank you for your answer. I've already get the signals I want by adding "--arxmlEthernet" command line switch. The next question is how to get the dbc file in python script? Don't use the style of 'os.system(command line)', just use canmatrix API. By the way, do you know how to use arxml file to decode pcap file by any python tools?

MaggieLxj avatar Dec 01 '23 03:12 MaggieLxj

hi @MaggieLxj canmatrix.formats.loadp() and friends should solve your issue

ebroecker avatar Dec 06 '23 09:12 ebroecker

The converted dbc file has illegal segmentation description. So I couldn't use them.

MaggieLxj avatar Dec 06 '23 10:12 MaggieLxj

Hi @MaggieLxj

what ist the "segmentation description" ? Do you have some screenshot of the error?

ebroecker avatar Dec 06 '23 12:12 ebroecker

Just pop-up window said that when I open the dbc file use canoe. No more information. Later I can take a screen shot and show you

---- Replied Message ---- | From | Eduard @.> | | Date | 12/06/2023 20:22 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [ebroecker/canmatrix] Convert arxml file to dbc file wrong (Issue #739) |

Hi @MaggieLxj

what ist the "segmentation description" ? Do you have some screenshot of the error?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

MaggieLxj avatar Dec 06 '23 12:12 MaggieLxj

no new infos here... please reopen if news available

ebroecker avatar Jun 19 '24 20:06 ebroecker