Added frequency offset to RX

This commit is contained in:
Thomas Kolb 2019-08-10 17:23:18 +02:00
parent bd14eec4e0
commit 950124e218

View file

@ -197,6 +197,33 @@
<value>2.4e6</value> <value>2.4e6</value>
</param> </param>
</block> </block>
<block>
<key>variable</key>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(960, 16)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>offset_freq</value>
</param>
<param>
<key>value</key>
<value>200e3</value>
</param>
</block>
<block> <block>
<key>variable</key> <key>variable</key>
<param> <param>
@ -224,6 +251,167 @@
<value>300e3</value> <value>300e3</value>
</param> </param>
</block> </block>
<block>
<key>analog_sig_source_x</key>
<param>
<key>amp</key>
<value>1</value>
</param>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>affinity</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>freq</key>
<value>offset_freq</value>
</param>
<param>
<key>_coordinate</key>
<value>(80, 456)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>analog_sig_source_x_0</value>
</param>
<param>
<key>maxoutbuf</key>
<value>0</value>
</param>
<param>
<key>minoutbuf</key>
<value>0</value>
</param>
<param>
<key>offset</key>
<value>0</value>
</param>
<param>
<key>type</key>
<value>complex</value>
</param>
<param>
<key>samp_rate</key>
<value>io_rate</value>
</param>
<param>
<key>waveform</key>
<value>analog.GR_COS_WAVE</value>
</param>
</block>
<block>
<key>blocks_multiply_xx</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>affinity</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(328, 264)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>blocks_multiply_xx_0</value>
</param>
<param>
<key>type</key>
<value>complex</value>
</param>
<param>
<key>maxoutbuf</key>
<value>0</value>
</param>
<param>
<key>minoutbuf</key>
<value>0</value>
</param>
<param>
<key>num_inputs</key>
<value>2</value>
</param>
<param>
<key>vlen</key>
<value>1</value>
</param>
</block>
<block>
<key>blocks_null_sink</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>bus_conns</key>
<value>[[0,],]</value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>affinity</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(800, 600)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>blocks_null_sink_0</value>
</param>
<param>
<key>type</key>
<value>float</value>
</param>
<param>
<key>num_inputs</key>
<value>1</value>
</param>
<param>
<key>vlen</key>
<value>1</value>
</param>
</block>
<block> <block>
<key>blocks_tuntap_pdu</key> <key>blocks_tuntap_pdu</key>
<param> <param>
@ -248,7 +436,7 @@
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(607, 435)</value> <value>(808, 432)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -295,7 +483,7 @@
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(335, 391)</value> <value>(536, 392)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -338,11 +526,11 @@
</param> </param>
<param> <param>
<key>_enabled</key> <key>_enabled</key>
<value>True</value> <value>0</value>
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(822, 443)</value> <value>(1024, 440)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -1378,11 +1566,11 @@
</param> </param>
<param> <param>
<key>_enabled</key> <key>_enabled</key>
<value>True</value> <value>0</value>
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(1062, 243)</value> <value>(1264, 240)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -1501,11 +1689,11 @@
</param> </param>
<param> <param>
<key>corr0</key> <key>corr0</key>
<value>0</value> <value>-8</value>
</param> </param>
<param> <param>
<key>freq0</key> <key>freq0</key>
<value>center_freq</value> <value>center_freq+offset_freq</value>
</param> </param>
<param> <param>
<key>gain_mode0</key> <key>gain_mode0</key>
@ -2900,11 +3088,11 @@
</param> </param>
<param> <param>
<key>_enabled</key> <key>_enabled</key>
<value>True</value> <value>0</value>
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(263, 251)</value> <value>(464, 248)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -2963,11 +3151,11 @@
</param> </param>
<param> <param>
<key>_enabled</key> <key>_enabled</key>
<value>True</value> <value>0</value>
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(830, 267)</value> <value>(1032, 264)</value>
</param> </param>
<param> <param>
<key>_rotation</key> <key>_rotation</key>
@ -3038,7 +3226,7 @@
</param> </param>
<param> <param>
<key>_enabled</key> <key>_enabled</key>
<value>True</value> <value>0</value>
</param> </param>
<param> <param>
<key>fftsize</key> <key>fftsize</key>
@ -3046,7 +3234,7 @@
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(1062, 419)</value> <value>(1264, 416)</value>
</param> </param>
<param> <param>
<key>gui_hint</key> <key>gui_hint</key>
@ -3145,7 +3333,7 @@
</param> </param>
<param> <param>
<key>_coordinate</key> <key>_coordinate</key>
<value>(583, 243)</value> <value>(784, 240)</value>
</param> </param>
<param> <param>
<key>gui_hint</key> <key>gui_hint</key>
@ -3208,18 +3396,200 @@
<value>firdes.WIN_BLACKMAN_hARRIS</value> <value>firdes.WIN_BLACKMAN_hARRIS</value>
</param> </param>
</block> </block>
<block>
<key>qtgui_sink_x</key>
<param>
<key>bw</key>
<value>samp_rate</value>
</param>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>fc</key>
<value>0</value>
</param>
<param>
<key>freqchangevar</key>
<value>None</value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>affinity</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>fftsize</key>
<value>1024</value>
</param>
<param>
<key>_coordinate</key>
<value>(792, 360)</value>
</param>
<param>
<key>gui_hint</key>
<value></value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>qtgui_sink_x_1</value>
</param>
<param>
<key>maxoutbuf</key>
<value>0</value>
</param>
<param>
<key>minoutbuf</key>
<value>0</value>
</param>
<param>
<key>name</key>
<value>""</value>
</param>
<param>
<key>plotconst</key>
<value>True</value>
</param>
<param>
<key>plotfreq</key>
<value>True</value>
</param>
<param>
<key>plottime</key>
<value>True</value>
</param>
<param>
<key>plotwaterfall</key>
<value>True</value>
</param>
<param>
<key>showports</key>
<value>True</value>
</param>
<param>
<key>showrf</key>
<value>False</value>
</param>
<param>
<key>type</key>
<value>complex</value>
</param>
<param>
<key>rate</key>
<value>10</value>
</param>
<param>
<key>wintype</key>
<value>firdes.WIN_BLACKMAN_hARRIS</value>
</param>
</block>
<block>
<key>rational_resampler_xxx</key>
<param>
<key>alias</key>
<value></value>
</param>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>affinity</key>
<value></value>
</param>
<param>
<key>decim</key>
<value>int(io_rate/samp_rate)</value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>fbw</key>
<value>0</value>
</param>
<param>
<key>_coordinate</key>
<value>(464, 128)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>rational_resampler_xxx_0</value>
</param>
<param>
<key>interp</key>
<value>1</value>
</param>
<param>
<key>maxoutbuf</key>
<value>0</value>
</param>
<param>
<key>minoutbuf</key>
<value>0</value>
</param>
<param>
<key>taps</key>
<value></value>
</param>
<param>
<key>type</key>
<value>ccc</value>
</param>
</block>
<connection>
<source_block_id>analog_sig_source_x_0</source_block_id>
<sink_block_id>blocks_multiply_xx_0</sink_block_id>
<source_key>0</source_key>
<sink_key>1</sink_key>
</connection>
<connection>
<source_block_id>blocks_multiply_xx_0</source_block_id>
<sink_block_id>rational_resampler_xxx_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection> <connection>
<source_block_id>blocks_tuntap_pdu_0</source_block_id> <source_block_id>blocks_tuntap_pdu_0</source_block_id>
<sink_block_id>hamnet70_mod_sc16qam_0</sink_block_id> <sink_block_id>hamnet70_mod_sc16qam_0</sink_block_id>
<source_key>pdus</source_key> <source_key>pdus</source_key>
<sink_key>packet_in</sink_key> <sink_key>packet_in</sink_key>
</connection> </connection>
<connection>
<source_block_id>hamnet70_demod_sc16qam_0</source_block_id>
<sink_block_id>blocks_null_sink_0</sink_block_id>
<source_key>2</source_key>
<sink_key>0</sink_key>
</connection>
<connection> <connection>
<source_block_id>hamnet70_demod_sc16qam_0</source_block_id> <source_block_id>hamnet70_demod_sc16qam_0</source_block_id>
<sink_block_id>blocks_tuntap_pdu_0</sink_block_id> <sink_block_id>blocks_tuntap_pdu_0</sink_block_id>
<source_key>pdu_out</source_key> <source_key>pdu_out</source_key>
<sink_key>pdus</sink_key> <sink_key>pdus</sink_key>
</connection> </connection>
<connection>
<source_block_id>hamnet70_demod_sc16qam_0</source_block_id>
<sink_block_id>qtgui_sink_x_1</sink_block_id>
<source_key>1</source_key>
<sink_key>0</sink_key>
</connection>
<connection> <connection>
<source_block_id>hamnet70_mod_sc16qam_0</source_block_id> <source_block_id>hamnet70_mod_sc16qam_0</source_block_id>
<sink_block_id>pfb_arb_resampler_xxx_0_0</sink_block_id> <sink_block_id>pfb_arb_resampler_xxx_0_0</sink_block_id>
@ -3234,7 +3604,7 @@
</connection> </connection>
<connection> <connection>
<source_block_id>osmosdr_source_0</source_block_id> <source_block_id>osmosdr_source_0</source_block_id>
<sink_block_id>pfb_arb_resampler_xxx_0</sink_block_id> <sink_block_id>blocks_multiply_xx_0</sink_block_id>
<source_key>0</source_key> <source_key>0</source_key>
<sink_key>0</sink_key> <sink_key>0</sink_key>
</connection> </connection>
@ -3256,4 +3626,16 @@
<source_key>0</source_key> <source_key>0</source_key>
<sink_key>0</sink_key> <sink_key>0</sink_key>
</connection> </connection>
<connection>
<source_block_id>rational_resampler_xxx_0</source_block_id>
<sink_block_id>hamnet70_demod_sc16qam_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
<connection>
<source_block_id>rational_resampler_xxx_0</source_block_id>
<sink_block_id>qtgui_sink_x_0_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>
</connection>
</flow_graph> </flow_graph>