Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert arxml file to dbc file wrong #739

Open
MaggieLxj opened this issue Nov 30, 2023 · 6 comments
Open

Convert arxml file to dbc file wrong #739

MaggieLxj opened this issue Nov 30, 2023 · 6 comments

Comments

@MaggieLxj
Copy link

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
Copy link
Owner

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
Copy link
Author

MaggieLxj commented Dec 1, 2023

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
Copy link
Owner

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

@MaggieLxj
Copy link
Author

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

@ebroecker
Copy link
Owner

Hi @MaggieLxj

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

@MaggieLxj
Copy link
Author

MaggieLxj commented Dec 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants