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

Does canmatrix support parsing of Ethernet ARXML files? #714

Closed
mominggame opened this issue Jul 8, 2023 · 5 comments
Closed

Does canmatrix support parsing of Ethernet ARXML files? #714

mominggame opened this issue Jul 8, 2023 · 5 comments

Comments

@mominggame
Copy link

After loading an Ethernet ARXML file using 'dbs=canmatrix.formats.loadp(file_path)', the length of 'dbs' is 0.

@ebroecker
Copy link
Owner

Hi @mominggame ,

please try:

cluster = canmatrix.formats.arxml.load(arxml, decode_ethernet=True)

See also:
#443 (comment)

@mominggame
Copy link
Author

I was able to parse ETH using your method, but I noticed that there was no IP address in the results. Could you please help me understand why this is the case? Thank you.

@ebroecker
Copy link
Owner

Hi @mominggame ,

sure : the ethernet-support is very basic. IP-addresses are not extracted (yet).

Maybe you describe your use-case a bit more in detail, than an implementation would be possible.

@mominggame
Copy link
Author

Thank you very much for your answer. Can the command 'cluster = canmatrix.formats.arxml.load(arxml, decode_ethernet=True)' be used to convert the cluster to JSON format? Is there any documentation available to help with this?"

@ebroecker
Copy link
Owner

Hi @mominggame

Yes, is possible:
convert.py --arxmlEthernet some_arxml_file.arxml some_json_file.json

But again, probably onle very limited information are extracted from ARXML

see also:
#443 (comment)

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