Skip to content

Add the Baofeng UV-6R as an Experimental model (#168) - #186

Merged
ww8l merged 2 commits into
mainfrom
baofeng-uv6r
Dec 6, 2026
Merged

ww8l merged 2 commits into
mainfrom
baofeng-uv6r

Conversation

@ww8l

@ww8l ww8l commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Adds the Baofeng UV-6R from tracking issue #168 as an Experimental model, on a driver of its own (src-tauri/src/radios/baofeng_uv6r), ported from CHIRP's uv6r.py on baofeng_common.py. Full evidence: docs/radios/baofeng-uv6r.md.

What's in it

  • Clone session, memory map and 80 settings. That covers all 38 of the manual's settings menus, including the VFO tones, VFO BCL and band, which CHIRP doesn't offer.
  • Writes only the changed 0x10 blocks, inside CHIRP's upload ranges. Backup first, model-string gate, read-back after.
  • No shared code changed. It reuses baofeng_uv5r::read_block and the tone helpers as they are, so the UV-5R and UV-5X3 are untouched.
  • README rows, user-guide row, rebuilt PDF; registry and model counts.

Verified

  • CHIRP oracle, headless and byte for byte: MATCH. Covers 13 channels, the radio-authored anchor's 21 memories and its settings, and a pass that sets every field. The only differences are the listed vendor departures.
  • Baofeng's programmer, UV6R.exe 1.10, in a VM against a mock radio. It speaks CHIRP's handshake. Every setting was measured with it, and it read the app's image back as written. Where it differs from CHIRP the app follows it: Tone Burst 2100 Hz, DTMF *, the menu ranges, new-channel 01 FF, and the VFO band set from the frequency.
  • Mock-radio session tests; npm run ci passes locally.

Not verified

  • No hardware. Nobody here owns a UV-6R, so the ladder was skipped.

  • Baofeng's programmer reads back differently from how it writes in three places:

    • DTMF A–D and #. Codes are therefore limited to digits and *.
    • VFO tones are shown /100.
    • VFO step is shown blank.

    Which one the radio follows is unknown.

🤖 Generated with Claude Code

ww8l and others added 2 commits December 5, 2026 16:44
A dual-band handheld on a driver of its own (radios/baofeng_uv6r), ported
from CHIRP's uv6r.py on baofeng_common.py. Not a UV-5R variant: no read is
preceded by an ack, the 8-byte ident follows the map, and the map runs
0x0000-0x2000 with the model named at 0x1FD0. The image is CHIRP's .img
body (0x2000 + ident). No shared code changed: the driver calls the UV-5R's
existing read_block and tone helpers, so the UV-5R and UV-5X3 are untouched.

- Writes only the 0x10 blocks that changed, and only inside the ranges
  CHIRP's upload would write; anything else is refused before a byte is
  sent. Backup first, model-string gate, read-back after.
- 80 settings: all 38 of the manual's settings menus, including the VFO
  tones, VFO BCL and band that CHIRP does not offer, plus the PTT-ID and
  ANI codes, DTMF group code, power-on message, band limits, both VFOs and
  the FM preset. Service squelch calibration and read-only text withheld.
- Checked against Baofeng's own programmer, UV6R.exe 1.10, driven in a VM
  against a mock radio; it speaks CHIRP's handshake. The app follows it
  where it differs from CHIRP: Tone Burst 2100 Hz stored as 4, DTMF `*` as
  0x0E, the menus' real ranges, new-channel bytes 01 FF, a VFO frequency
  sets its band. The programmer then read the app's image back as written.
- The programmer's reader disagrees with its writer on DTMF A-D and #, so
  PTT-ID and ANI codes are digits and `*` only; it also shows VFO tones
  /100 and the VFO step blank. Unverified which the radio follows.
- CHIRP oracle (scripts/baofeng_uv6r/chirp_oracle.py): MATCH for channels,
  the radio-authored anchor's memories and settings, and a pass setting
  every field, apart from the listed vendor departures. Mock-radio tests.
- Not on hardware: nobody here owns a UV-6R, so the hardware ladder is
  skipped. docs/radios/baofeng-uv6r.md, README rows, guide row + PDF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes for the UV-6R settings encoder:

- A value the encoder will not write is now named in the report (the
  settings-write note, the program report's warnings) instead of being
  dropped silently. A PTT-ID or ANI code with A-D or # is the likely one:
  their labels now say "(0-9, *)".
- New band limits are kept only if each band's lower edge is below its
  upper and both VFOs (the profile's frequency, else the radio's) still lie
  inside them; otherwise the radio keeps its own limits and the report
  says why.
- Docs: Tone Burst Off/1000/1450/1750 are stored 0-3 (not 0-2), 2100 as 4.

CHIRP oracle still MATCH; npm run ci passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit c855d4e into main Dec 6, 2026
3 checks passed
@ww8l
ww8l deleted the baofeng-uv6r branch December 6, 2026 03:01
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.

1 participant