-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Example for ETSI CAM-ASN1 to Json Command #179
Comments
@patrizianeubauer
The string s_base64 contains the base64 encoded ITS data (in my case exported from wireshark). It will return a python struct: to export as JSON i issued the following commands
Unfortunately there is an issue with the conversin of "accelerationControl" and "exteriorLights". The hex value from the struct ("\x80") is converted to a decimal value "80". So you have to be careful to treat this value as a hex value. It is also possible to decode MAPEM and SPATEM messages. You only need the corresponding files:
You have to figure out whether your data is CAM or MAPEM or SPATEM. An alternative might be to use tshark (e.g. "tshark -r dump.pcap -T json"). The advantage is that some values are split into their meaning:
|
Hi,
could you please provide an example, how to run your project to generate json files from the asn-files for example with your cam_pdu_descriptions_1_3_2.asn file?
Thank you!
Kind regards,
Patrizia
The text was updated successfully, but these errors were encountered: