[Hamlib-developer] [Hamlib/Hamlib] 55635b: 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-11 19:15:07
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 55635bd67d75283d43eb7108af2900b654fbdedc https://github.com/Hamlib/Hamlib/commit/55635bd67d75283d43eb7108af2900b654fbdedc Author: Jan Szumiec <jan...@gm...> Date: 2026-08-06 (Thu, 06 Aug 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...> Commit: d0ee1dcd2eac5e31f24ea3aa91374409a024e2ab https://github.com/Hamlib/Hamlib/commit/d0ee1dcd2eac5e31f24ea3aa91374409a024e2ab Author: Jan Szumiec <jan...@gm...> Date: 2026-08-07 (Fri, 07 Aug 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...> Commit: 8aea24452a9b7283ef6b53e357bf33cc68a9255c https://github.com/Hamlib/Hamlib/commit/8aea24452a9b7283ef6b53e357bf33cc68a9255c Author: Jan Szumiec <jan...@gm...> Date: 2026-09-01 (Tue, 01 Sep 2026) Changed paths: M .github/codeql-analysis.yml M .github/workflows/android-ndk.yml M .github/workflows/c-cpp.yml M .github/workflows/c-cpp32.yml M .github/workflows/codeql-analysis.yml M .github/workflows/macos-latest-features.yml M .github/workflows/macos-latest-no-features.yml M .github/workflows/ubuntu-latest-features.yml M .github/workflows/ubuntu-latest-no-features.yml A .github/workflows/windows-cross-features.yml A .github/workflows/windows-cross-no-features.yml A .github/workflows/windows-latest-features.yml A .github/workflows/windows-latest-no-features.yml A HAMLIB_STREAMING.md A HAMLIB_STREAMING_BACKEND_GUIDE.md M Makefile.am M NEWS M README.developer M bindings/hamlib.swg M bindings/python/test_Hamlib_class.py M configure.ac M doc/man1/ampctl.1 M doc/man1/rigctl.1 M doc/man1/rigctld.1 M doc/man1/rotctl.1 M doc/man1/rotctld.1 M include/hamlib/rig.h M include/hamlib/rig_state.h M include/hamlib/riglist.h M lib/Makefile.am A lib/kvparse.c A lib/kvparse.h M rigs/dummy/Makefile.am M rigs/dummy/dummy.c M rigs/dummy/dummy.h M rigs/dummy/dummy_common.c M rigs/dummy/dummy_common.h A rigs/dummy/dummy_stream.c A rigs/dummy/dummy_stream.h M rigs/dummy/netrigctl.c M rigs/dummy/quisk.c M rigs/guohetec/guohetec.c M rigs/guohetec/guohetec.h M rigs/guohetec/pmr171.c M rigs/guohetec/q900.c M rigs/icom/id5100.c M rigs/kenwood/Makefile.am M rigs/kenwood/flex6xxx.c M rigs/kenwood/k3.c M rigs/kenwood/kenwood.c M rigs/kenwood/kenwood.h M rigs/kenwood/pihpsdr.c M rigs/kenwood/th.c M rigs/kenwood/thd72.c M rigs/kenwood/thd74.c A rigs/kenwood/thd7x.c A rigs/kenwood/thd7x.h M rigs/kenwood/ts2000.c M rigs/kenwood/ts590.c M rigs/kenwood/tx500.c A rigs/tci/Makefile.am A rigs/tci/README-TCI-2.0.md A rigs/tci/sunsdr2-pro.c A rigs/tci/tci.c A rigs/tci/tci2.c A rigs/tci/tci2.h M rigs/yaesu/ft991.c M rigs/yaesu/ft991.h M rigs/yaesu/ftx1/ftx1.c M rigs/yaesu/ftx1/ftx1_freq.c M rigs/yaesu/ftx1/ftx1_mode.c M rigs/yaesu/level_gran_yaesu.h M rigs/yaesu/newcat.c M scripts/astylerc M simulators/simid5100.c M simulators/simts890.c M src/Makefile.am M src/conf.c M src/iofunc.c M src/misc.c M src/register.c M src/rig.c A src/rigctl_protocol.c A src/rigctl_protocol.h A src/stream.c A src/stream.h A src/stream_account.c A src/stream_account.h A src/stream_anchor.c A src/stream_anchor.h A src/stream_codec.c A src/stream_codec.h A src/stream_convert.c A src/stream_convert.h A src/stream_net.c A src/stream_net.h A src/stream_proto.c A src/stream_proto.h A src/stream_ringbuf.c A src/stream_ringbuf.h A src/stream_time.c A src/stream_time.h M src/token.h A test/.gitignore A test/Makefile.am A test/acutest.h A test/test_debug.h A test/test_dummy_stream.c A test/test_netrigctl_stream.c A test/test_rigctld_commands.c A test/test_rigctld_stream.c A test/test_rigstreamtest.c A test/test_stream_account.c A test/test_stream_api.c A test/test_stream_codec.c A test/test_stream_convert.c A test/test_stream_ringbuf.c A test/test_stream_time.c M tests/.gitignore M tests/Makefile.am M tests/dumpcaps.c M tests/dumpcaps.h M tests/dumpstate.c M tests/rigctl.c M tests/rigctl_parse.c M tests/rigctl_parse.h M tests/rigctld.c A tests/rigctld_client.h A tests/rigctld_stream.c A tests/rigctld_stream.h A tests/rigstreamtest.c A tests/rigstreamtest.sh A tests/rigstreamtest_util.c A tests/rigstreamtest_util.h M tests/testctlparser.c A tests/testft991idmeter.c M tests/testgs100.c A tests/testguohetec.c A tests/testid5100.c M tests/testnetrigctl.c A tests/testnewcatset.c A tests/testrigctlprotocol.c A tests/testthd75emu.c A tests/testthd7x.c Log Message: ----------- Merge branch 'master' into qmx-swr-readback Commit: 2adca55a586762054b9f8f607bf5330a3180a194 https://github.com/Hamlib/Hamlib/commit/2adca55a586762054b9f8f607bf5330a3180a194 Author: dforsi <iu...@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: ----------- Merge pull request #2140 from jasiek/qmx-swr-readback QMX: add SWR and RF power meter readback Compare: https://github.com/Hamlib/Hamlib/compare/cb275c6b473d...2adca55a5867 To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |