Skip to content

WP970I class: nine Experimental models (#168) - #175

Merged
ww8l merged 1 commit into
mainfrom
baofeng-wp970i-family
Dec 2, 2026
Merged

ww8l merged 1 commit into
mainfrom
baofeng-wp970i-family

Conversation

@ww8l

@ww8l ww8l commented Dec 2, 2026

Copy link
Copy Markdown
Owner

The second entry of #168: CHIRP's baofeng_wp970i.py class, nine models on the UV-5R's hardware-proven clone session. All ship Experimental.

Models

BF-A58, UV-82WP, GT-3WP, Retevis RT6, BF-A58S, UV-S9X3, 5RX, UV-9R, UV-9G. Each has its own driver key, seed row and generated settings schema.

Where this differs from CHIRP

  • Power follows Baofeng's programmer. The six two-level models store High / Low as 0 / 1, with VFO power in bit 7 (Baofeng's WP970I / GT-3WP programmer). CHIRP offers High / Med / Low and writes Low as 2, which that programmer shows as HIGH. The BF-A58S, UV-S9X3 and 5RX keep CHIRP's High 0 / Low 2.
  • VFO band bit. A VFO frequency sets the band bit, as the vendor CPS and the radio-authored images do. CHIRP leaves it as read.
  • DTMF on HN5RV01 firmware: digits only. CHIRP's two drivers disagree on the rest of the map.

Shared family changes

  • Restoring a CHIRP-saved .img: the metadata trailer is dropped, and it must name this model or one of its CHIRP aliases. The WP970I ident-last layout is rearranged into ours. A trailerless file in that layout is refused.
  • Empty slots: a slot is empty when its first frequency byte is 0xFF, as in both CHIRP drivers.
  • Blank DTMF fields: a blank DTMF field leaves the code as read. Before this, it cleared the code on every family model.
  • Restore report: restore reports the bytes it writes, not the file's length.

Verification

  • CHIRP oracle: CHIRP run headless matches our encoder byte for byte for all nine models, over six radio-authored bases.
  • Vendor CPS in a VM: it opened our images, and its saves set the power and band-bit encodings above.
  • Restore gate on real files: each CHIRP file is accepted only by its own model, and Tim's existing backups behave as before.
  • CI: npm run ci passes locally.

Not verified: no radio has been programmed. The hardware ladder (step 7) was skipped; nobody here owns any of these models. The new models haven't been checked in the dev app UI.

🤖 Generated with Claude Code

The second entry of #168: CHIRP's baofeng_wp970i.py class, on the
UV-5R's hardware-proven clone session.

- BF-A58, UV-82WP, GT-3WP, Retevis RT6, BF-A58S, UV-S9X3, 5RX, UV-9R
  and UV-9G, each its own driver key, seed row and settings schema.
- Power follows Baofeng's own WP970I / GT-3WP programmer, not CHIRP:
  the six two-level models store High / Low as 0 / 1, with VFO power in
  bit 7. The BF-A58S, UV-S9X3 and 5RX keep CHIRP's High 0 / Low 2.
- A VFO frequency sets the band bit on every model, as the vendor CPS
  and the radio-authored images do.
- UV-82WP and RT6 names are six characters.
- On HN5RV01 firmware the WP970I class writes DTMF digits only (CHIRP's
  two drivers disagree on the rest of the map).
- Restore takes a CHIRP-saved .img: the metadata trailer is dropped and
  must name this model; the WP970I ident-last layout becomes ours.
- A blank DTMF field leaves the code as read, and restore reports the
  bytes it writes rather than the file's length.

Verification: CHIRP run headless matches our encoder byte for byte on
all nine models over six radio-authored bases; the vendor CPS in a VM
opened our images. No radio has been programmed: every model ships
Experimental, and the hardware ladder (step 7) is skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ww8l
ww8l merged commit 18390c3 into main Dec 2, 2026
3 checks passed
@ww8l
ww8l deleted the baofeng-wp970i-family branch December 2, 2026 19:23
@ww8l ww8l mentioned this pull request Dec 3, 2026
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