From defb1378b879c6a78caf3af5708b27d6c44178d8 Mon Sep 17 00:00:00 2001 From: Manolis Surligas Date: Mon, 11 Apr 2016 20:24:17 +0300 Subject: [PATCH] Add a flowgraph example for the receiving rigctl commands --- examples/README.md | 12 +- examples/test_rigctl.grc | 989 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 1000 insertions(+), 1 deletion(-) create mode 100644 examples/test_rigctl.grc diff --git a/examples/README.md b/examples/README.md index 873ed41..377a452 100644 --- a/examples/README.md +++ b/examples/README.md @@ -21,5 +21,15 @@ Words per Minute (WPM) is about 20. decoder. It has two different AX.25 payload source blocks. The first one is the `Debug Message Source` block that assigns as payload a predefined message, whereas the second one is a `UDP Message Source` block that receives the - AX.25 payload from a UDP packet. + AX.25 payload from a UDP packet. + + * `test_rigctl.grc`: This particular flowgraph demonstrates the capabilities + of the module implementing a portion of the `rigctld` functionality. + It received `rigctl` commands through a `TCP` socket and produces the appropriate + messages. In the example these messages are received from the Doppler correction + block. To generate `rigctl` commands you can use the `GPredict` software. + Note that you have to specify the frequency of the transmitter satellite. + As this block does not use any satellite signal rather than a simple sine, you + do not expect any correction at all. However you will be able to see how smoothly + the sine peak is drifting. This drift in normal situations will be the correction offset. \ No newline at end of file diff --git a/examples/test_rigctl.grc b/examples/test_rigctl.grc new file mode 100644 index 0000000..6abb874 --- /dev/null +++ b/examples/test_rigctl.grc @@ -0,0 +1,989 @@ + + + + Mon Mar 21 02:00:25 2016 + + options + + author + + + + window_size + + + + category + Custom + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + qt_gui + + + hier_block_src_path + .: + + + id + test_rigctl + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + prompt + + + run + True + + + thread_safe_setters + + + + title + + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (8, 160) + + + _rotation + 0 + + + id + samp_rate + + + value + 1e6 + + + + analog_fastnoise_source_x + + amp + 0.01 + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (48, 591) + + + _rotation + 0 + + + id + analog_fastnoise_source_x_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + noise_type + analog.GR_GAUSSIAN + + + type + complex + + + seed + 0 + + + samples + 8192 + + + + analog_sig_source_x + + amp + 1 + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + freq + 1000 + + + _coordinate + (64, 448) + + + _rotation + 0 + + + id + analog_sig_source_x_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + offset + 0 + + + type + complex + + + samp_rate + samp_rate + + + waveform + analog.GR_COS_WAVE + + + + blocks_add_xx + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (304, 528) + + + _rotation + 0 + + + id + blocks_add_xx_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + num_inputs + 2 + + + vlen + 1 + + + + blocks_throttle + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (424, 540) + + + _rotation + 0 + + + id + blocks_throttle_0 + + + ignoretag + True + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + samples_per_second + samp_rate + + + type + complex + + + vlen + 1 + + + + qtgui_freq_sink_x + + autoscale + False + + + average + 1.0 + + + bw + samp_rate + + + alias + + + + fc + 0 + + + comment + + + + ctrlpanel + True + + + affinity + + + + _enabled + True + + + fftsize + 1024 + + + _coordinate + (936, 430) + + + gui_hint + + + + _rotation + 0 + + + grid + False + + + id + qtgui_freq_sink_x_0 + + + legend + True + + + alpha1 + 1.0 + + + color1 + "blue" + + + label1 + + + + width1 + 1 + + + alpha10 + 1.0 + + + color10 + "dark blue" + + + label10 + + + + width10 + 1 + + + alpha2 + 1.0 + + + color2 + "red" + + + label2 + + + + width2 + 1 + + + alpha3 + 1.0 + + + color3 + "green" + + + label3 + + + + width3 + 1 + + + alpha4 + 1.0 + + + color4 + "black" + + + label4 + + + + width4 + 1 + + + alpha5 + 1.0 + + + color5 + "cyan" + + + label5 + + + + width5 + 1 + + + alpha6 + 1.0 + + + color6 + "magenta" + + + label6 + + + + width6 + 1 + + + alpha7 + 1.0 + + + color7 + "yellow" + + + label7 + + + + width7 + 1 + + + alpha8 + 1.0 + + + color8 + "dark red" + + + label8 + + + + width8 + 1 + + + alpha9 + 1.0 + + + color9 + "dark green" + + + label9 + + + + width9 + 1 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + name + "" + + + nconnections + 1 + + + showports + True + + + freqhalf + True + + + tr_chan + 0 + + + tr_level + 0.0 + + + tr_mode + qtgui.TRIG_MODE_FREE + + + tr_tag + "" + + + type + complex + + + update_time + 0.02 + + + wintype + firdes.WIN_BLACKMAN_hARRIS + + + ymax + 10 + + + ymin + -140 + + + + qtgui_waterfall_sink_x + + bw + samp_rate + + + alias + + + + fc + 0 + + + comment + + + + affinity + + + + _enabled + True + + + fftsize + 4096 + + + _coordinate + (976, 584) + + + gui_hint + + + + _rotation + 0 + + + grid + False + + + id + qtgui_waterfall_sink_x_0 + + + int_max + 10 + + + int_min + -140 + + + legend + True + + + alpha1 + 1.0 + + + color1 + 0 + + + label1 + + + + alpha10 + 1.0 + + + color10 + 0 + + + label10 + + + + alpha2 + 1.0 + + + color2 + 0 + + + label2 + + + + alpha3 + 1.0 + + + color3 + 0 + + + label3 + + + + alpha4 + 1.0 + + + color4 + 0 + + + label4 + + + + alpha5 + 1.0 + + + color5 + 0 + + + label5 + + + + alpha6 + 1.0 + + + color6 + 0 + + + label6 + + + + alpha7 + 1.0 + + + color7 + 0 + + + label7 + + + + alpha8 + 1.0 + + + color8 + 0 + + + label8 + + + + alpha9 + 1.0 + + + color9 + 0 + + + label9 + + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + name + "" + + + nconnections + 1 + + + showports + True + + + freqhalf + True + + + type + complex + + + update_time + 0.50 + + + wintype + firdes.WIN_BLACKMAN_hARRIS + + + + satnogs_doppler_correction_cc + + alias + + + + comment + + + + affinity + + + + corrections_per_sec + 10 + + + _enabled + True + + + _coordinate + (592, 416) + + + _rotation + 0 + + + id + satnogs_doppler_correction_cc_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + sampling_rate + samp_rate + + + target_freq + 145.890e6 + + + + satnogs_tcp_rigctl_msg_source + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (56, 318) + + + _rotation + 0 + + + id + satnogs_tcp_rigctl_msg_source_0 + + + addr + "127.0.0.1" + + + port + 4532 + + + mtu + 1500 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + analog_fastnoise_source_x_0 + blocks_add_xx_0 + 0 + 1 + + + analog_sig_source_x_0 + blocks_add_xx_0 + 0 + 0 + + + blocks_add_xx_0 + blocks_throttle_0 + 0 + 0 + + + blocks_throttle_0 + satnogs_doppler_correction_cc_0 + 0 + 0 + + + satnogs_doppler_correction_cc_0 + qtgui_freq_sink_x_0 + 0 + 0 + + + satnogs_doppler_correction_cc_0 + qtgui_waterfall_sink_x_0 + 0 + 0 + + + satnogs_tcp_rigctl_msg_source_0 + satnogs_doppler_correction_cc_0 + freq + freq + +