Skip to content

Add tac description to Beacon 23 Hex Id decode#51

Merged
davidmoten merged 7 commits intomasterfrom
tac-description
May 3, 2022
Merged

Add tac description to Beacon 23 Hex Id decode#51
davidmoten merged 7 commits intomasterfrom
tac-description

Conversation

@davidmoten
Copy link
Copy Markdown
Contributor

For a given tac code range the decode json should return a tacDescription field. If the tac code is outside all ranges then no tacDescription field is included in the json.

Low High Description
9998 9999 TYPE_APPROVAL_TESTING
10000 11999 PLB
12000 13999 EPIRB
14000 15999 ELT
16000 17999 ELT_DT
18000 65520 RESERVED_FUTURE
65521 infinity RESERVED_SYSTEM_BEACONS

For example, the 23 hex id CCB7EA73355000000000000 decodes as:

{
  "countryCode" : 613,
  "tac" : 64156,
  "tacDescription" : "RESERVED_FUTURE_USE",
  "serialNumber" : 13141,
  "testProtocolFlag" : false
}

@davidmoten davidmoten added the enhancement New feature or request label May 3, 2022
@davidmoten davidmoten merged commit 028efeb into master May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant