Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anytone DT-878UV Plus Codeplug error #62

Open
WolffyTheReal opened this issue Dec 30, 2020 · 4 comments
Open

Anytone DT-878UV Plus Codeplug error #62

WolffyTheReal opened this issue Dec 30, 2020 · 4 comments

Comments

@WolffyTheReal
Copy link

WolffyTheReal commented Dec 30, 2020

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".

@neotericpiguy
Copy link

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.

@WolffyTheReal
Copy link
Author

I will look into that and play a bit with the files. Maybe i get it to work somehow

@hmatuschek
Copy link

hmatuschek commented Jan 14, 2021

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

{ 0x02600000, 0x9c40 }, // 076500 - Unknown data, bitmap

More over, the contact index in channel_t is actually a uint32_t little-endian

uint16_t contact_index; // Contact: 0=Contact1, 1=Contact2, ...

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.

@hexagonal-sun
Copy link

@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        -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants