ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
907 stars 400 forks source link

Convert arxml file to dbc file wrong #739

Closed MaggieLxj closed 2 months ago

MaggieLxj commented 9 months ago

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.

ebroecker commented 9 months ago

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.

MaggieLxj commented 9 months ago

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?

ebroecker commented 9 months ago

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

MaggieLxj commented 9 months ago

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

ebroecker commented 9 months ago

Hi @MaggieLxj

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

MaggieLxj commented 9 months ago

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: @.***>

ebroecker commented 2 months ago

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