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

Consistent hex/raw-data format #74

Open
windytan opened this issue Aug 25, 2020 · 0 comments
Open

Consistent hex/raw-data format #74

windytan opened this issue Aug 25, 2020 · 0 comments

Comments

@windytan
Copy link
Owner

windytan commented Aug 25, 2020

16-bit words are currently printed in varying formats in the JSON output.

  1. "0xABCD": is used for most PI codes
  2. "ABCD": used whenever multiple 16-bit words are concatenated
  3. 43981: used for TMC location codes, Program Item Number, ODA message data, in-house data

Additionally, the newly-supported transparent data channels are printed as 8-bit hex words without 0x.

Instead, one format should be chosen for all 16-bit data.

One downside to the decimal format (3) is that information about the word size is lost. Location codes and PINs are supposed to be numbers so they should be OK. But at least ODA message data and in-house data should probably be formatted as hexadecimal. This would be a schema-breaking change.

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

1 participant