574 const char * cp = _str_arg.c_str();
576 for(i = 0; i < 64; i++) {
578 if(*cp ==
'\000')
break;
599 for(i = 0; i < 64; i++) {
601 if(*cp ==
'\000')
break;
tweak the waterfall display parameters like resolution bandwidth
On receipt of a TVRT_LO_DISABLE command, turn the LO output on TX2 off.
Not many choices for TX ant, just TX.
Enable the TX audio bandpass filter (limit to 2.5 kHz) for SSB/AM/FM.
int id
a sequential ID for each command – used in debugging and sequencing
low spectrum frequency range
turn transmitter on and off.
Sample rate for RX is typically 600 KHz or better to allow a reasonable span for the waterfall and pe...
UnitSelector
a selector to identify a particular unit for debug reports
Command()
Constructor – create an empty command.
Sample rate for TX needs to be fast enough for reasonable FM We set it to 625000 just because there d...
Set the TX final amplifier.
Set the RX front end attenuator/amp.
Set the modulation mode for the receive chain.
TXAudioSelector
a selector to identify the Audio TX input (MIC, NOISE...)
This is an LO check command - use it for finding the actual microwave LO frequency.
int iparms[4]
integer parameters
Report when GPS is locked.
Report min max TX Gain setting (dparm[0,1] = min, max)
Set the RX front end (1st LO, the 2nd IF LO), and the 3rd LO in a more-or-less optimal way to positio...
Set the modulation mode for the transmit chain.
Report when CW TX envelope buffer was empty (cmd enables report)
Report the motherboard name (the model name of the USRP)
Command(CmdType _ct, CmdTarget _tgt)
Constructor for commands with no parameters.
all spec info in one call, cf, span, and buflen
CmdType
Commands are of the form, SET, GET, or REPort some parameter.
CmdTarget target
the thing we're touching
Report UTC (time) from GPS receiver.
TX Carrier Control – send a dead carrier.
unsigned int tag
used to pair an int with a string or other param.
Report a string/name pair for modulation mode.
Command(CmdType _ct, CmdTarget _tgt, const std::string &_str_arg, unsigned int _tag=0)
Constructor for commands with a string parameter.
indicate to GUI that we've sent all the initial configuration information
Report min max RX Gain setting (dparm[0,1] = min, max)
static int getMaxStringLen()
how long can a string parameter to a command be?
static int command_sequence_number
sequential ID applied to each command
Flush outstanding CW text strings from pending buffer.
On receipt of a STOP command, all threads should exit their run loop.
static std::map< CmdTarget, std::string > target_map_v2s
mapping for toString
This is a list of all the commands that can "do something" to one or more components in the SoDa radi...
how many FFT samples contribute to a spectrum report
Same effect as TX_TUNE_FREQ.
AudioFilterBW
these are the possible audio filter bandwidths
char sparm[64]
a buffer holding the string
ModulationType
modulation selector targets take one of these values
Report LAT and LON from GPS receiver.
the center frequency (command from GUI)
The STATUS_MESSAGE carries a payload of up to 64 characters.
Set the RX front end 1st LO and the 2nd IF LO.
Report TX antenna choice (asciiz string, uint tag)
char parm_type
is this a double, int, string?
Command(const Command &cc)
Copy Constructor.
TX CW text control – a buffer of up to 8 characters.
RX ant choices are TX/RX, and RX2.
CmdTarget
Each command has a "target" state that it is meant to modify, query, or report.
static bool table_needs_init
if true, we need to call initTables()
CmdType cmd
the command type (SET, GET, REP)
double dparms[4]
double float parameters
static std::map< std::string, CmdTarget > target_map_s2v
mapping for parseCommandString
how many FFT samples between spectrum reports
The master clock oscillator source Reference oscilator selector set to 1 for external, 0 for internal rep = 1 for internal lock, 0 for unlock 3 for external lock, 2 for external unlocked.
send character count from start-of-time each time we send a character.
Tune the 3rd LO, if the current FE frequency is such that the desired frequency is between RX_FE_FREQ...
Set speed of CW generator.
Report the SDR (SoDa server program) version info.
tweak the AF chain – filter settings
Tune the 3rd LO (in SoDa::USRPRX).
Set the TX front end (1st LO, the 2nd IF LO), and the 3rd LO in a more-or-less optimal way to positio...
Command(CmdType _ct, CmdTarget _tgt, const char *cp, unsigned int _tag=0)
Constructor for commands with a string parameter.
static Command * parseCommandString(std::string str)
convert a string to a command
RX audio gain for sidetone (CW) monitor.
number of samples in the buffer.
Command(CmdType _ct, CmdTarget _tgt, int p0, int p1=0, int p2=0, int p3=0)
Constructor for commands with integer parameters.
Report a string/name pair for AF filter bandwidth.
Report RX antenna choice (asciiz string, uint tag)
high spectrum frequency range
Command(CmdType _ct, CmdTarget _tgt, double p0, double p1=0.0, double p2=0.0, double p3=0.0)
Constructor for commands with double float parameters.
On receipt of a TVRT_LO_ENABLE command dump a perpetual constant IF stream of (1.0, 0.0) into the tx2 channel to get a steady output.
static void initTables()
setup maps to support parseCommandString and toString
On receipt of a TVRT_LO_CONFIG command , set the TX2 channel frequency to dparam[0] and the TX2 outpu...
Same effect as TX_TUNE_FREQ.
std::string toString() const
return a string that displays the command
this is a GET/REP command – BaseBandRX takes FFT centered around 0 and reports largest peak within 5...
Select the transmit chain audio input (for SSB, AM, and FM)
Put a marker in the CW text stream, report its "passing".