Add tac description to Beacon 23 Hex Id decode by davidmoten · Pull Request #51 · amsa-code/sgb-decoder
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
}