Skip to content

Add Yaesu FTM-400DR/XDR support via microSD (#52) - #157

Merged
ww8l merged 1 commit into
mainfrom
issue-52-yaesu-ftm400
Nov 20, 2026
Merged

ww8l merged 1 commit into
mainfrom
issue-52-yaesu-ftm400

Conversation

@ww8l

@ww8l ww8l commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #52.

What

The FTM-400DR / XDR is programmed from its own microSD backup, FTM400D/BACKUP/CLONE/CLNFTM400D.dat (SD CARD → BACKUP → Write to SD → ALL; Read from SD → ALL loads it back).

  • Memories: 500 per band, the codeplug written to both Band A and Band B. Names are 8 characters in Yaesu's own character set; the radio writes the digit zero as 0xBF, and so does this writer.
  • Settings: 260 set-up menu settings (Display, Signaling, Data, Digital, GM/WIRES-X, the whole APRS setup including digipaths, SmartBeaconing, message and status texts). They are read from the card into the profile editor and written back by the export or by a settings-only write.
  • RX COVERAGE: at NORMAL, CONFIG 11 hides memories outside 137–480 MHz on that band. A codeplug with air-band or 480 MHz-and-up channels sets both bands WIDE, and the export or settings write returns a note saying so.
  • DCS polarity: the FTM-300, FTM-510 and FTM-400 now refuse inverted-DCS channels by name. Their records store no polarity, so the squelch would never open.

How it was measured

  • The layout comes from Yaesu's own ADMS-7 codec, as decompiled DataConverter. Tim's radio-written backup decodes with zero errors, and all 392 of his memories re-encode byte for byte (gate.rs).
  • Settings were measured by running ADMS-7 1.0.0.2 headless in a VM, loaded by reflection. Every option is the exact bytes its own encoder wrote. Labels are its data-bound combo lists, in stored order. A self-check against ADMS-7's own decoder agrees 260/260 on four real images.

Hardware verification (Tim's FTM-400DR, DR firmware)

One combined file, loaded once. The restore menu has no file list, so every load is a card trip. Results:

  • Load accepted, with no refusal and no reset.
  • Names display their zeros.
  • 5 of 5 changed settings show as written.
  • 80 memories on both bands at RX COVERAGE WIDE.
  • 19-point band probe, every point at its written frequency: 108 and 999.99 MHz, both sides of 137/174/400/480, the cellular-gap edges, and all four 8.33 kHz airband codes.

Not seen on the radio

  • The export setting RX COVERAGE to WIDE from a file. Tim switched it by hand during the check. It's the same bit ADMS-7 writes.

🤖 Generated with Claude Code

Patches the radio's own FTM400D/BACKUP/CLONE/CLNFTM400D.dat: 500 memories
on each of Band A and Band B (the codeplug written to both) and 260 set-up
menu settings, read from and written back to the same file.

- Layout from Yaesu's own ADMS-7 codec (decompiled DataConverter); the
  radio writes the digit zero in names as 0xBF and so does this writer.
- Settings measured with ADMS-7 1.0.0.2 run headless: every option is the
  exact bytes its encoder wrote; labels are its data-bound combo lists.
  Self-check 260/260 against ADMS-7's decoder on four real images.
- RX COVERAGE (CONFIG 11) at NORMAL hides memories outside 137-480 MHz on
  that band, so a codeplug with air-band or 480 MHz-and-up channels sets
  both bands WIDE, and the export/settings write says so in a note.
- FTM-300, FTM-510 and FTM-400 now refuse inverted-DCS channels by name:
  their records store no polarity, so the squelch would never open.

Hardware-verified on Tim's FTM-400DR (DR firmware) with one combined file:
load accepted, names with zeros, 5/5 settings, 80 memories on both bands,
19-point band probe including the four 8.33 kHz airband codes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit 2b41f0e into main Nov 20, 2026
3 checks passed
@ww8l
ww8l deleted the issue-52-yaesu-ftm400 branch November 20, 2026 21:20
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 Yaesu FTM-400

1 participant