[Hamlib-developer] [Hamlib/Hamlib] 031742: QMX: add SWR and RF power meter readback
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: dforsi <no...@gi...> - 2026-09-12 08:57:04
|
Branch: refs/heads/Hamlib-4.7 Home: https://github.com/Hamlib/Hamlib Commit: 031742d215efc0d98f64c69acec3a0ae5419e0b0 https://github.com/Hamlib/Hamlib/commit/031742d215efc0d98f64c69acec3a0ae5419e0b0 Author: Jan Szumiec <jan...@gm...> Date: 2026-09-11 (Fri, 11 Sep 2026) Changed paths: M NEWS M rigs/kenwood/level_gran_kenwood.h M rigs/kenwood/ts480.c Log Message: ----------- QMX: add SWR and RF power meter readback The QMX backend defined no .get_level, so rig_get_level(RIG_LEVEL_SWR) returned -RIG_ENAVAIL. QRP Labs firmware provides the readings as extensions on top of the TS-480 command set: SW; returns SWR in hundredths (SW121; = 1.21:1) PC; returns output power in tenths (PC45; = 4.5 W) Both are transmit-only. In receive the QMX answers with a bare SW; / PC;, reported as 0 rather than a stale value. RFPOWER_METER is scaled against 5 W for the 0.0..1.0 form. level_gran_kenwood.h gains NO_LVL_SWR / NO_LVL_RFPOWER_METER_WATTS guards, following the existing NO_LVL_KEYSPD pattern, so the QMX can declare its own resolution. Tested against a QMX running firmware 1_04_003QMX. Co-Authored-By: Claude Opus 5 (1M context) <no...@an...> (cherry picked from commit 55635bd67d75283d43eb7108af2900b654fbdedc) Commit: 219b8745ad954e42d0c4eaaca580898412d387bc https://github.com/Hamlib/Hamlib/commit/219b8745ad954e42d0c4eaaca580898412d387bc Author: Jan Szumiec <jan...@gm...> Date: 2026-09-11 (Fri, 11 Sep 2026) Changed paths: M NEWS M rigs/kenwood/ts480.c Log Message: ----------- QMX: read power meter full scale from the radio QMX_MAX_POWER was hardcoded to 5.0f, taken from the "5W class radio" description. That is not the figure the hardware meters against: the QMX power meter full scale is a user setting, 6W on a stock radio and 12W on one carrying the PA0RDT 4+4 BS170 PA modification. A stock QMX at full output therefore reported RFPOWER_METER as 1.2 rather than 1.0. The radio will say which it is, via the Menu Manager command: MMDisplay/controls|Pwr/SWR display|Power fullscale; -> MM6W; qrplabs_qmx_open wraps qrplabs_open (which stays shared with the QCX/QDX caps) to probe it once and keep the answer in level_gran[LVL_RFPOWER_METER_WATTS].max, which is both where the value belongs and where get_level can find it again -- no extra field in the shared kenwood_priv_data. rig_init copies level_gran out of caps long before caps->rig_open runs, so the override sticks. The probe is optional, so question_mark_response_means_rejected is set across it, following ts590.c. Firmware predating MM answers "?;" and would otherwise burn the full retry budget on every open; instead it fails immediately and the 6W default declared in the caps stands. RFPOWER_METER_WATTS is unchanged -- PC; returns absolute watts, and the full scale setting only ever scaled the front panel bar graph. Tested against a QMX running firmware 1_04_005QMX, which reports 6W. The 12W branch is untested for want of a modified radio. Co-Authored-By: Claude Opus 5 (1M context) <no...@an...> (cherry picked from commit d0ee1dcd2eac5e31f24ea3aa91374409a024e2ab) Commit: 3f8b346efe5b26095ed39fbd0fc59ad2d42ac469 https://github.com/Hamlib/Hamlib/commit/3f8b346efe5b26095ed39fbd0fc59ad2d42ac469 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2026-09-11 (Fri, 11 Sep 2026) Changed paths: M NEWS Log Message: ----------- Fix NEWS Commit: d6e2e747695c7586e98b56a6a355cdd8f042affe https://github.com/Hamlib/Hamlib/commit/d6e2e747695c7586e98b56a6a355cdd8f042affe Author: dforsi <iu...@gm...> Date: 2026-09-12 (Sat, 12 Sep 2026) Changed paths: M NEWS M rigs/kenwood/level_gran_kenwood.h M rigs/kenwood/ts480.c Log Message: ----------- Merge pull request #2206 from dforsi/Hamlib-4.7 Cherry-pick to Hamlib 4.7 Compare: https://github.com/Hamlib/Hamlib/compare/5f0dcd8ed0aa...d6e2e747695c To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |