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

Problem decoding BDS 4,5 reserved bits #169

Closed
tmartincevic opened this issue Nov 13, 2020 · 1 comment
Closed

Problem decoding BDS 4,5 reserved bits #169

tmartincevic opened this issue Nov 13, 2020 · 1 comment

Comments

@tmartincevic
Copy link

There is an error thrown when decoding BDS 4,5. Looks like hex encoding is not happy with the reserved field of length 5 (bits 13 to 9). The error goes away if I remove encode="hex" from line 313 in asterix_bds.xml. Also, if I shorten the reserved field from 5 to 4 bits, hex encoding no longer complains. Here is the output and packet capture:

ERROR:   Nov 12 19:48:01 2020 (asterixformat.cxx) Hex representation not valid
{"id":1,
"length":13,
"crc":"687A89B4",
"timestamp":1999304,
"hexdata":"3000108120D27D010071FC400235C045",
"CAT048":{
        "I010":{
                "SAC":210,
                "SIC":125},
        "I250":[{
                "STATUS_TURBULENCE":0,
                "TURBULENCE":0,
                "STATUS_WIND_SHEAR":0,
                "WIND_SHEAR":0,
                "STATUS_MICROBURST":0,
                "MICROBURST":0,
                "STATUS_ICING":1,
                "ICING":3,
                "STATUS_WAKE_VORTEX":0,
                "WAKE_VORTEX":0,
                "STATUS_STATIC_AIR_TEMPERATURE":1,
                "STATIC_AIR_TEMPERATURE":-3.7500000,
                "STATUS_AVERAGE_STATIC_PRESSURE":0,
                "AVERAGE_STATIC_PRESSURE":0.0000000,
                "STATUS_RADIO_HEIGHT":1,
                "RADIO_HEIGHT":6880.0000000,
                "RESERVED":"???",
                "BDS":"45"}]}}

bds-45.zip

@dsalantic
Copy link
Contributor

You are right, that was a problem in BDS 4.5 definition. There is no need to encode reserved filed in hex.
Thanks

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