Last night I pushed a patch to my Github SO2SDR tree that allows setting
the mode from the call field. From the commit message:
Some contests are mult-mode--Field Day, IARU Championship, state QSO
parties, etc.--thus a quick way to change modes is useful. At present
the selection is for CW, CWR, LSB, and USB. The mode name must be
followed by a single apostrophe ' which serves as a signal to end prefix
processing and to separate the optional passband width integer.
Examples:
Change mode to CW using Hamlib defined "normal" bandwidth: CW'
To change mode to USB using selected bandwidth: USB'2400
A trailing ':' character after the string, either CW': or USB'2400: will
set the mode and bandwidth on the _other_ radio.
I felt this was necessary as it is not always possible to use a computer
connected radio at Field Day. Using the Dummy rig and being able to set
the mode to other than CW is essential for proper logging in such cases.
I tried to use the ; character to denote the inactive radio but
enterFreq() chopped it off first so I chose to utilize : as the
character to denote mode change on the inactive radio. It's likely that
mode changes will be less frequent so this isn't likely to be too
painful as there probably isn't too much SO2R on FD. ;-)
As I wanted a way to denote a mode string to prefixCheck() the ' was
chosen to trail the mode name. It also serves as a separator for the
optional passband width integer. If the integer is not present then
RIG_PASSBAND_NORMAL is passed to the Hamlib backend. I found that this
exposed a bug in the K3 backend which I have fixed and pushed to the
Hamlib 1.2.15 branch. The Hamlib patch also checks for a passband
narrower or wider than that specified in the filters structure (shown in
dump_caps of rigctl) and keeps the passband width between those limits
for a given mode. I also pushed a similar patch for the K2 that needs
testing, if anyone is up to it.
I'm looking forward to discovering more bugs this Field Day. Ha!
73, de Nate >>
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more:
http://www.n0nb.us