Skip to content

AnyTone AT-D868UV support (#51) - #161

Merged
ww8l merged 1 commit into
mainfrom
issue-51-d868uv
Nov 25, 2026
Merged

ww8l merged 1 commit into
mainfrom
issue-51-d868uv

Conversation

@ww8l

@ww8l ww8l commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Closes #51.

Adds the AnyTone AT-D868UV: full codeplug programming (channels, zones, scan lists, talkgroups), 156 settings, and the call-sign database.

How it's built

The D868 is the base of the family the D578 driver was built on, and its records are byte-for-byte the D578's. So the new driver (radios/anytone_atd868uv/) reuses the D578's encoders, window planner and flash-half carrying through a small per-model FamilyModel. The D578's behaviour is unchanged.

What is the D868's own:

  • ident ID868UVE / V102 (firmware 2.x only);
  • contact ID table at 0x04340000;
  • call-sign DB at 0x044C0000 / 0x04500000, 200,000 entries;
  • no air band, so AM channels are skipped with a reason;
  • its own generated settings table and schema.

The shared settings codec gains SK::Digits for DTMF ID strings.

Verified on a real D868UV

  • Re-encoding the radio's own data: all 424 channels, 23 zones, 22 scan lists, 40 contacts, the contact ID table and the radio's 122,433-entry call-sign DB come out byte-identical.
  • Hardware ladder:
    • writing bank 0 back unchanged left the whole 128 KB half identical;
    • a one-byte name change showed on the screen;
    • a full codeplug from the library (237 ch / 16 zones / 9 scan lists / 27 contacts) checked on screen, which also confirmed the power levels;
    • band edges 136.000 / 173.995 / 400.000 / 479.995 all shown on the radio;
    • a settings write showed on screen, and the reader decoded the operator's own front-panel changes;
    • a 200,000-entry call-sign DB read back exact.
  • Settings coverage: 152 of the 197 CPS controls. Three of them (DTMF Transmitting Time, Auto Repeater B, SMS Format) were placed by front-panel changes and read-back. The 45 held back are listed in the generated table's header: codeplug indices, Language, Man Down, the 5-Tone IDs, and settings with no menu item.
  • Not yet seen on screen: a caller-ID name, which needs DMR traffic.

npm run ci passes locally (962 tests, clippy).

🤖 Generated with Claude Code

The D868 is the base of the family the D578 driver was built on, and its
records are the D578's: channels (0x00-0x33), zones, scan lists, radio IDs,
contacts, present bitmaps and the contact ID table's key format sit at the
same addresses. The new driver reuses the D578's encoders, window planner and
flash-half rule through a small per-model `FamilyModel` (ident, plan limits,
contact ID table, air band, blank-slot template, backup prefix); the D578's
behaviour is unchanged and its tests pass as before.

- Ident `ID868UVE` revision `V102` (hardware V1.1 / firmware 2.x); the older
  firmware 1.xx has no published map and is refused.
- Contact ID table at 0x04340000; call-sign DB at 0x044C0000 / 0x04500000,
  200,000 entries, the D578's record format.
- No air band: AM channels are skipped with a reason.
- Settings: 156 fields for 152 of the 197 CPS controls, generated from the
  measurement sheet, including DMR APRS, 5-Tone / 2-Tone / DTMF and alarm. The
  settings reader/writer and call-sign writer are the D578's, parameterised.
- New `SK::Digits` field kind for DTMF ID strings (one digit code per byte).

Verified on a real D868UV: every channel, zone, scan list and contact, the
contact ID table and the 122,433-entry call-sign DB re-encode byte for byte;
the hardware ladder passed (identity write, one-byte change shown on screen,
full codeplug from the library, band edges 136/174/400/480, settings shown on
screen, 200,000-entry call-sign DB read back exact); three settings placed by
front-panel changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit 1689000 into main Nov 25, 2026
3 checks passed
@ww8l
ww8l deleted the issue-51-d868uv branch November 25, 2026 16:30
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

Successfully merging this pull request may close these issues.

Add support for the Anytone AT-D868UV

1 participant