[Hamlib-developer] Possible change request - "Powerdown" FlRig
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: <gm...@bt...> - 2026-03-08 14:19:16
|
My objective is to be able to powerdown my rigs and disconnect the FlRig connection from my app. It looks like set_powerstat is not enabled for FlRig. I would like to add support for set_powerstat(rig, RIG_POWER_OFF) to flrig.c. As far as I can see implementing set_powerstat(rig, RIG_POWER_ON) is a non-starter for FlRig as there is no way of defining how to start and configure FlRig from hamlib. In this case I would return the appropriate error code (EINVAL?). FlRig itself has a command "rig.shutdown" that is supposed to close FlRig and, if FlRig is so configured, power down the connected rig. At the moment get_powerstat returns RIG_POWER_ON by default. I am not proposing to change this. If no-one sees an issue with this I will go ahead and code and test this preparing a PR or patch on the current hamlib-4.7. Regards Phil GM3ZZA. |