| 1 |
# GD77 call-sign DB memory representation |
| 2 |
The encoding appears to be super simple: |
| 3 |
|
| 4 |
## Header |
| 5 |
``` |
| 6 |
0 8 |
| 7 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ ... + |
| 8 |
|'I'|'D'|'-'|'V'|'0'|'0'|'1'| 0 | N entries | Entries ... | |
| 9 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ ... + |
| 10 |
``` |
| 11 |
The first 8 bytes (at address 0x0000) contains the 0-terminated string `ID-V001`, |
| 12 |
followed by the number of DB entries encoded as a 32bit little endian integer. After |
| 13 |
this header all entries are just appended. These entries must be sorted by the DMR ID |
| 14 |
in ascending order. |
| 15 |
|
| 16 |
There is no index table written to the device. |
| 17 |
|
| 18 |
|
| 19 |
## DB Entry |
| 20 |
Each entry of the table is encoded into 12bytes as |
| 21 |
``` |
| 22 |
0 8 |
| 23 |
+---+---+---+---+---+---+---+---+---+---+---+---+ |
| 24 |
| DMR ID | Name, ASCII | |
| 25 |
+---+---+---+---+---+---+---+---+---+---+---+---+ |
| 26 |
``` |
| 27 |
where the DMR ID is encoded as 8 BCD numbers in litte-endian and the name is max 8 ASCII chars, 0-terminated and padded. |