reald / anytone-flash-tools

Independend flash tools for Anytone D878UV radio (and maybe others)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anytone-flash-tools

Independend flash tools for Anytone D878UV radios and maybe other anytone models

Goal

Understand the communication protocol between customer programming software (CPS) and radio. Provide open source platform independent reprogramming tools.

Why?

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.

How?

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.

AT-D878UV Serial protocol

https://github.com/reald/anytone-flash-tools/blob/master/at-d878uv_protocol.md

AT-D878UV memory layout

https://github.com/reald/anytone-flash-tools/blob/master/at-d878uv_memory.md

Available tools so far...

This is highly experimental code. Use it at your own risk!

  • Digital contact list

  • Flash Firmware

  • Emulator for flash protocol analysis

    • Emulate Anytone D878UV radio to customer programming software via virtual null modem cables (Emulator)
    • Receive intercepted programming data from AT-D878UV emulator via network and diff hexdumps (Server)
  • 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)

About

Independend flash tools for Anytone D878UV radio (and maybe others)

License:GNU General Public License v2.0


Languages

Language:Python 100.0%