Independend flash tools for Anytone D878UV radios and maybe other anytone models
Understand the communication protocol between customer programming software (CPS) and radio. Provide open source platform independent reprogramming tools.
Because it has to be done. CPS is only available on windows. Device and CPS will be discontinued and stop working some time. Most of the features are only programmable via software and not on the device itself. So there must be a free alternative.
Install Wireshark with USBPcap Option and Capture the USB traffic when using the CPS. Save the capture file and filter out the "Leftover Capture Data". This is the data between the CPS and the radio. Tshark helps exporting the traffic:
tshark -T fields -e usb.capdata -r file.pcapng
The script createhexdump.py formats the hex output to a more readable form. Then make transfers with small configuration changes and watch the difference in the hex dumps.
Instead of using wireshark and a real radio you can try the AT-D878UV emulator for programming protocol analysis. This script emulates the radio behaviour to the programming software and sends all of the programming data to a server script for deeper analysis.
https://github.com/reald/anytone-flash-tools/blob/master/at-d878uv_protocol.md
https://github.com/reald/anytone-flash-tools/blob/master/at-d878uv_memory.md
This is highly experimental code. Use it at your own risk!
-
Digital contact list
- Write digital contact list from .csv file to radio (writecontacts.py)
- Read digital contact list from radio to .csv file (readcontacts.py)
- Hint: You can download digital contact lists for Anytone devices e.g. here:
-
Flash Firmware
- Transfer firmware update to radio. Attention: Updating firmware will delete codeplug. Backup with CPS first!
-
Emulator for flash protocol analysis
-
Protocol interceptor
- Some helping scripts for intercepting serial port traffic (/interceptor)
-
Rewrite Hex Dump
- Retransfer hex dump (saved by emulator) to a serial port (rewrite_hexdump.py)