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

- #MD tokens #19

Closed
jeroenbeijer opened this issue Nov 18, 2023 · 2 comments
Closed

- #MD tokens #19

jeroenbeijer opened this issue Nov 18, 2023 · 2 comments

Comments

@jeroenbeijer
Copy link

Hi,

First of all, thanks for your great work!

It seems that with the latest version(s) of libacars some messages that jaero attempts to decode are not decoded. When building and running against an older version of libacars they are correctly decoded. The messages that fail seem to be these that start with the "- #MD" token, for example this H1:

  • #MD/A6 PIKCPYA.ADS.66168A07040B000C000D010E011000D9FB

When I strip off the first part of the message in jaero and pass "/PIKCPYA.ADS.66168A07040B000C000D010E011000D9FB" it works fine.
Now this is of course easy enough but since it seems this was not issue in earlier versions of libacars I just want to check with you if you think this needs to be done in jaero or if perhaps it is an issue in libacars.

Additionally, in longer messages, additional "- #MD" tokens can be found. I could only get these to decode by stripping away these tokens in jaero. Same question there I guess, should the client take care of stripping these off the message before attempting to decode?

Many thanks!

Jeroen

@szpajder
Copy link
Owner

szpajder commented Nov 18, 2023 via email

@jeroenbeijer
Copy link
Author

Thanks for the quick reply. Indeed it worked with version 1.x

I have added a call to la_acars_extract_sublabel_and_mfi() to find the sublabel and offset as per your suggestion. Since the message is already assembled I just stripped the sublabels off the full message and it all works now :-)

Thanks again!

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