OpenRTX / dmrconfig

Configuration utility for DMR radios
BSD 3-Clause "New" or "Revised" License
233 stars 55 forks source link

Rewriting the original codeplug from the conf file turns off GPS on Retevis RT3S #18

Open jarilammi opened 5 years ago

jarilammi commented 5 years ago

The codeplug doesn't retain its original settings on Retevis RT3S GPS version. At least the GPS is turned off:

$ diff rt3s_original_hexdump_img.txt rt3s_missing_things_hexdump_img.txt
3c3
< 00002000  ff 20 18 10 15 10 05 06  00 01 00 06 ff ff ff ff  |. ..............|
---
> 00002000  ff 20 18 12 01 10 28 29  0d 01 00 00 ff ff ff ff  |. ....()........|
1053c1053
< 00040000  62 14 00 e0 24 c0 01 00  04 00 00 00 01 01 00 03  |b...$...........|
---
> 00040000  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1057c1057
< 00040040  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 00040040  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1061c1061
< 00040080  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 00040080  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1065c1065
< 000400c0  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 000400c0  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1069c1069
< 00040100  61 14 00 c0 24 c0 00 00  04 00 00 00 00 00 00 03  |a...$...........|
---
> 00040100  61 14 00 e0 24 c0 00 00  04 00 00 00 00 00 00 03  |a...$...........|
1073c1073
< 00040140  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 00040140  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1077c1077
< 00040180  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 00040180  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1081c1081
< 000401c0  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 000401c0  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|
1085c1085
< 00040200  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 03  |b...$...........|
---
> 00040200  62 14 00 e0 24 c0 01 00  04 00 00 00 01 00 00 01  |b...$...........|

This happens when the radio is first read and then written back from the conf file.

jarilammi commented 5 years ago

It looks like that 04 00 00 00 01 00 00 01 would mean that the GPS is turned off for the particular channel and 04 00 00 00 01 00 00 03 that the GPS is turned on.

There is also almost one similar instance of 04 00 00 00 01 01 00 03 which has an extra bit set. Haven't figured out what it does yet.

There are probably further settings that need to be implemented in order to make an APRS gateway to function properly with the radio, but this is an obvious place to start.