Skip to content

Add the BTECH UV-5X3 and MTC UV-5R-3 as Experimental models (#168) - #185

Merged
ww8l merged 1 commit into
mainfrom
btech-uv5x3
Dec 5, 2026
Merged

ww8l merged 1 commit into
mainfrom
btech-uv5x3

Conversation

@ww8l

@ww8l ww8l commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Part of #168: two Experimental models on a new driver, radios/btech_uv5x3, ported from CHIRP's uv5x3.py on baofeng_common.py.

Model Settings
BTECH UV-5X3 101
MTC UV-5R-3 101
  • Driver: its own module, not a UV-5R variant. The 14-byte ident, the 0x1E00 saved-VFO area and settings at UV-5R addresses with other meanings rule that out. The only change to shared code is that baofeng_uv5r::read_block is now pub(crate); the hardware-verified UV-5R's behaviour is unchanged.
  • Writes: only the 0x10 blocks that changed, and only inside the ranges CHIRP's upload would write to that radio. Anything else is refused before a byte is sent. Backup first, firmware-string gate, read-back after.
  • Settings: 34 of the manual's 38 settings menus, plus CHIRP's programmer-only settings. Factory squelch calibration, read-only text and the saved VFOs are withheld.
  • CHIRP oracle: byte-identical for both models: channels, the anchor image's decode, and a pass setting all 101 fields. A mock radio covers the session.
  • Vendor programmers: none. BTECH points UV-5X3 owners to CHIRP, and Baofeng UK's "UV-5R III" programmer is the UV-5R protocol, so it was not used. The BTECH manual is the second source, and the app follows it where it disagrees with CHIRP. The MTC UV-5R-3 was not checked against any MTC programmer; CHIRP is its only source.
  • Anchor: CHIRP's test image as the radio wrote it, before CHIRP hand-edited it in 3ccfa651.
  • Docs: docs/radios/btech-uv5x3.md, README rows, and the user-guide row with the PDF rebuilt.

Not tested on any radio. Nobody here owns one, so the hardware ladder is skipped and both models ship Experimental.

🤖 Generated with Claude Code

Two tri-band handhelds on a driver of their own (radios/btech_uv5x3, with a
thin radios/mtc_uv5r3), ported from CHIRP's uv5x3.py on baofeng_common.py.
Not a UV-5R variant: the identify reply is 14 bytes, the map uses radio
memory the UV-5R image leaves out (0x1E00-0x1EC0), and the settings sit at
UV-5R addresses with other meanings. The image is CHIRP's .img body
(0x2000 + ident). The only change to shared code is that
baofeng_uv5r::read_block is pub(crate); the UV-5R's behaviour is unchanged.

- Writes only the 0x10 blocks that changed, and only inside the ranges
  CHIRP's upload would write to that radio (which depend on the vendor and
  the "dropped byte" firmware); anything else is refused before a byte is
  sent. Backup first, firmware-string gate, read-back after.
- 101 settings, generated from CHIRP's get_settings(): 34 of the manual's 38
  settings menus (the VFO tone menus are not in CHIRP) plus the DTMF, ANI,
  power-on message, band-limit, VFO and FM-preset settings. Service squelch
  calibration, read-only text and the saved VFOs are withheld.
- No vendor programmer exists for the UV-5X3 (BTECH points to CHIRP; Baofeng
  UK's "UV-5R III" CPS is the UV-5R protocol). The BTECH manual is the second
  source, and the app follows it over CHIRP: PTT-ID codes up to 5 digits,
  VFO offset up to 69.990 MHz. Also: the MTC's VHF limit range is 136-174
  (CHIRP's `or` bug gives 130-179), the PTT-ID delay is read as stored.
  The MTC UV-5R-3 was not checked against any MTC programmer.
- Anchored on CHIRP's test image as the radio wrote it, before CHIRP
  hand-edited it in 3ccfa651; committed as testdata.
- CHIRP oracle (scripts/btech_uv5x3/chirp_oracle.py): MATCH for both
  classes — channels, the anchor's memories and settings, and a pass
  setting all 101 fields, byte for byte. Mock-radio tests for the session.
- Not on hardware: nobody here owns either radio, so the hardware ladder
  is skipped. docs/radios/btech-uv5x3.md, README rows, guide row + PDF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit 8300fbe into main Dec 5, 2026
3 checks passed
@ww8l
ww8l deleted the btech-uv5x3 branch December 5, 2026 20:40
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