Open WolffyTheReal opened 3 years ago
I've been looking for a firmware identifier in the device.img and haven't been successful. I have a BTECH 6x2 which shares the same upload and download as the 878. https://github.com/sergev/dmrconfig/blob/e47491e58b789d47143eb7bca05ef9c906716f4b/d868uv.c#L685-L690 I ran into an issue where the BTECH 6x2 updated to 2.03 and started having "Please Initialize Firmware" error messages. My solution at the point was to spin a bt6x2.c with almost exact same parameters as the d868uv.c but I had to work though little byte alignment caveats to regain compatibility.
I will look into that and play a bit with the files. Maybe i get it to work somehow
Starting from this implementation, I reverse-engineered the code-plug further for my own project. It appears to work right now but I have not tested it thoroughly.
The only difference that was obvious to me, is the address for the contact bitmap index map https://github.com/OpenRTX/dmrconfig/blob/9e65be7ab704297ccb12dc6f6300a28039abc3a6/d868uv-map.h#L323
More over, the contact index in channel_t is actually a uint32_t little-endian https://github.com/OpenRTX/dmrconfig/blob/9e65be7ab704297ccb12dc6f6300a28039abc3a6/d868uv.c#L171
This however, should not matter unless you configure a channel without a default contact by setting the index to 0xffffffff. In fact, the radio does not accept the code-plug if a TX contact is "disabled" by writing 0xffffffff to it.
@hmatuschek I'm wondering if that's the same issue that I'm seeing. I've just got a new 878 and tried to read the pre-installed code plug which has 1549 TGs programmed in. Anything above 1000 gets corrupted:
998 31482_S-TEXAS Group 31482 -
999 31483_WEST_TEXAS Group 31483 -
1000 31484_SE-TEXAS Group 31484 -
1001 _ Unknown 166666665 Unknown
1002 _ Unknown 166666665 Unknown
1003 _ Unknown 166666665 Unknown
1004 _ Unknown 166666665 Unknown
Then anything above 1311 isn't read:
1308 _ Unknown 166666665 Unknown
1309 _ Unknown 166666665 Unknown
1310 _ Unknown 166666665 Unknown
1311 _ Unknown 166666665 Unknown
1312 _ Private 0 -
1313 _ Private 0 -
1314 _ Private 0 -
1315 _ Private 0 -
The Radio Anytone AT-D878UV Plus gives an error after writing the codeplug onto the radio if the Firmware is higher than 1.18. Showing on the display of the radio "Codeplug Error. Please Initialize Firmware".