alexlee188 / ghpsdr3-alex

Modifications of John Melton's ghpsdr3
GNU General Public License v3.0
63 stars 38 forks source link

Adds rigctl-port option to QtRadio, refactors options to use QCommandLineParser #29

Closed g0hww closed 9 years ago

g0hww commented 9 years ago

I have modfied QtRadio to take a command line argument --rigctl-port specifying the port for rigctld emulation. I added the --server-address option to replace the old option/argument. This now allows multiple instances of QtRadio to run on the same host supporting distinct hamlib clients, such as fldigi, wsjtx, etc. This is especially useful for wsjtx as it doesn't seem to support configurable ports for the rigctld rig model, so QtRadio can be told to operate on the default rigctld port 4532. The default rigctl-port of 19090 ensures backwards compatibility, although users will now need to explicitly use -s or --server-address when specifying a dspserver address for initial connection.

Qtradio help now shows (a little more tidily with monospace fonts):

Usage: QtRadio [options] QtRadio

Options: -h, --help Displays this help. -s, --server-address Connect to server SERVER_ADDRESS, default none. -r, --rigctl-port Listen on port RIGCTL_PORT for rigctl clients, default 19090.

Future work: It would be nice to display the rigctl-port in use in the QtRadio GUI so a user may easily determine what port to use in hamlib clients without the need to actually remember the port they specified on the command line or determine it by other means.