From 9c353ab6d8c5120d4e1542cc39fd77a30a5ae760 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 11 Apr 2019 16:22:27 +0200 Subject: Add GNURadio file for FM TX simulation --- grc/fm_tone_gen.grc | 2015 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2015 insertions(+) create mode 100644 grc/fm_tone_gen.grc diff --git a/grc/fm_tone_gen.grc b/grc/fm_tone_gen.grc new file mode 100644 index 0000000..d217c2c --- /dev/null +++ b/grc/fm_tone_gen.grc @@ -0,0 +1,2015 @@ + + + + Sun Mar 24 11:06:12 2019 + + options + + author + HB9EGM + + + window_size + + + + category + [GRC Hier Blocks] + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + wx_gui + + + hier_block_src_path + .: + + + id + fm_tone_gen + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + prompt + + + run + True + + + sizing_mode + fixed + + + thread_safe_setters + + + + title + FM modulated 1750Hz tone generator + + + placement + (0,0) + + + + variable_slider + + comment + + + + converver + float_converter + + + value + 0 + + + _enabled + True + + + _coordinate + (680, 9) + + + _rotation + 0 + + + grid_pos + + + + id + af_gain + + + label + AF Gain [dB] + + + max + 30 + + + min + -30 + + + notebook + + + + num_steps + 300 + + + style + wx.SL_HORIZONTAL + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (6, 229) + + + _rotation + 0 + + + id + audio_rate + + + value + 48000 + + + + variable_chooser + + choices + [0, 1, 2] + + + comment + + + + value + 1 + + + _enabled + True + + + _coordinate + (502, 12) + + + _rotation + 0 + + + grid_pos + + + + id + choose_source + + + label + Select audio source + + + labels + ['Tone generator', 'soundcard', 'cw'] + + + notebook + + + + style + wx.RA_HORIZONTAL + + + type + radio_buttons + + + + variable_text_box + + comment + + + + converver + float_converter + + + value + 145.125 + + + _enabled + True + + + formatter + None + + + _coordinate + (349, 15) + + + _rotation + 0 + + + grid_pos + + + + id + freq_mhz + + + label + TX Freqency [MHz] + + + notebook + + + + + variable_text_box + + comment + + + + converver + float_converter + + + value + 300 + + + _enabled + True + + + formatter + None + + + _coordinate + (962, 6) + + + _rotation + 0 + + + grid_pos + + + + id + lo_offset_khz + + + label + LO Offset [kHz] + + + notebook + + + + + variable_low_pass_filter_taps + + beta + 6.76 + + + comment + + + + cutoff_freq + quad_rate * 2/5 + + + _enabled + True + + + _coordinate + (839, 315) + + + _rotation + 0 + + + gain + 1.0 + + + id + lowpasstaps + + + samp_rate + samp_rate + + + width + 5e3 + + + win + firdes.WIN_HAMMING + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (6, 168) + + + _rotation + 0 + + + id + quad_rate + + + value + 480000 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (6, 107) + + + _rotation + 0 + + + id + samp_rate + + + value + quad_rate * 8 + + + + variable_slider + + comment + + + + converver + float_converter + + + value + 1750 + + + _enabled + True + + + _coordinate + (214, 15) + + + _rotation + 0 + + + grid_pos + + + + id + tone_freq + + + label + Tone Frequency + + + max + 2000 + + + min + 1400 + + + notebook + + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + + variable_text_box + + comment + + + + converver + float_converter + + + value + 30 + + + _enabled + True + + + formatter + None + + + _coordinate + (846, 6) + + + _rotation + 0 + + + grid_pos + + + + id + txgain + + + label + TX Gain + + + notebook + + + + + analog_nbfm_tx + + audio_rate + audio_rate + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (588, 220) + + + _rotation + 0 + + + id + analog_nbfm_tx_0 + + + max_dev + 5e3 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + fh + -1.0 + + + quad_rate + quad_rate + + + tau + 75e-6 + + + + analog_sig_source_x + + amp + 1 + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + freq + tone_freq + + + _coordinate + (104, 196) + + + _rotation + 0 + + + id + analog_sig_source_x_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + offset + 0 + + + type + float + + + samp_rate + audio_rate + + + waveform + analog.GR_COS_WAVE + + + + audio_source + + alias + + + + comment + + + + affinity + + + + device_name + + + + _enabled + True + + + _coordinate + (73, 398) + + + _rotation + 180 + + + id + audio_source_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + num_outputs + 1 + + + ok_to_block + False + + + samp_rate + audio_rate + + + + blks2_selector + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (294, 236) + + + _rotation + 0 + + + id + blks2_selector_0 + + + input_index + choose_source + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + num_inputs + 3 + + + num_outputs + 1 + + + output_index + 0 + + + type + float + + + vlen + 1 + + + + blocks_multiply_const_vxx + + alias + + + + comment + + + + const + 10**(af_gain/20) + + + affinity + + + + _enabled + True + + + _coordinate + (435, 251) + + + _rotation + 0 + + + id + blocks_multiply_const_vxx_0 + + + type + float + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + vlen + 1 + + + + blocks_throttle + + alias + + + + comment + + + + affinity + + + + _enabled + 0 + + + _coordinate + (999, 324) + + + _rotation + 270 + + + id + blocks_throttle_0 + + + ignoretag + True + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + samples_per_second + samp_rate + + + type + complex + + + vlen + 1 + + + + blocks_wavfile_source + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + file + /home/bram/cwbeacon.wav + + + _coordinate + (49, 469) + + + _rotation + 0 + + + id + blocks_wavfile_source_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + nchan + 1 + + + repeat + True + + + + fractional_resampler_xx + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (61, 315) + + + _rotation + 0 + + + id + fractional_resampler_xx_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + phase_shift + 0 + + + resamp_ratio + 48048.0/48000.0 + + + type + float + + + + interp_fir_filter_xxx + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (839, 242) + + + _rotation + 0 + + + id + interp_fir_filter_xxx_0 + + + interp + samp_rate / quad_rate + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + samp_delay + 0 + + + taps + lowpasstaps + + + type + ccc + + + + uhd_usrp_sink + + alias + + + + ant0 + + + + bw0 + 0 + + + center_freq0 + uhd.tune_request(freq_mhz * 1e6, lo_offset_khz * 1e3) + + + norm_gain0 + False + + + gain0 + txgain + + + ant10 + + + + bw10 + 0 + + + center_freq10 + 0 + + + norm_gain10 + False + + + gain10 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq11 + 0 + + + norm_gain11 + False + + + gain11 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq12 + 0 + + + norm_gain12 + False + + + gain12 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq13 + 0 + + + norm_gain13 + False + + + gain13 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq14 + 0 + + + norm_gain14 + False + + + gain14 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq15 + 0 + + + norm_gain15 + False + + + gain15 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq16 + 0 + + + norm_gain16 + False + + + gain16 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq17 + 0 + + + norm_gain17 + False + + + gain17 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq18 + 0 + + + norm_gain18 + False + + + gain18 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq19 + 0 + + + norm_gain19 + False + + + gain19 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq1 + 0 + + + norm_gain1 + False + + + gain1 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq20 + 0 + + + norm_gain20 + False + + + gain20 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq21 + 0 + + + norm_gain21 + False + + + gain21 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq22 + 0 + + + norm_gain22 + False + + + gain22 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq23 + 0 + + + norm_gain23 + False + + + gain23 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq24 + 0 + + + norm_gain24 + False + + + gain24 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq25 + 0 + + + norm_gain25 + False + + + gain25 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq26 + 0 + + + norm_gain26 + False + + + gain26 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq27 + 0 + + + norm_gain27 + False + + + gain27 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq28 + 0 + + + norm_gain28 + False + + + gain28 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq29 + 0 + + + norm_gain29 + False + + + gain29 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq2 + 0 + + + norm_gain2 + False + + + gain2 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq30 + 0 + + + norm_gain30 + False + + + gain30 + 0 + + + ant31 + + + + bw31 + 0 + + + center_freq31 + 0 + + + norm_gain31 + False + + + gain31 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq3 + 0 + + + norm_gain3 + False + + + gain3 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq4 + 0 + + + norm_gain4 + False + + + gain4 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq5 + 0 + + + norm_gain5 + False + + + gain5 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq6 + 0 + + + norm_gain6 + False + + + gain6 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq7 + 0 + + + norm_gain7 + False + + + gain7 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq8 + 0 + + + norm_gain8 + False + + + gain8 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq9 + 0 + + + norm_gain9 + False + + + gain9 + 0 + + + clock_rate + 0.0 + + + comment + + + + affinity + + + + dev_addr + "" + + + dev_args + "" + + + _enabled + 1 + + + _coordinate + (1048, 226) + + + _rotation + 0 + + + id + uhd_usrp_sink_0 + + + type + fc32 + + + clock_source0 + + + + sd_spec0 + + + + time_source0 + + + + clock_source1 + + + + sd_spec1 + + + + time_source1 + + + + clock_source2 + + + + sd_spec2 + + + + time_source2 + + + + clock_source3 + + + + sd_spec3 + + + + time_source3 + + + + clock_source4 + + + + sd_spec4 + + + + time_source4 + + + + clock_source5 + + + + sd_spec5 + + + + time_source5 + + + + clock_source6 + + + + sd_spec6 + + + + time_source6 + + + + clock_source7 + + + + sd_spec7 + + + + time_source7 + + + + nchan + 1 + + + num_mboards + 1 + + + samp_rate + samp_rate + + + hide_cmd_port + True + + + hide_lo_controls + False + + + stream_args + + + + stream_chans + [] + + + sync + + + + len_tag_name + + + + otw + + + + + wxgui_waterfallsink2 + + avg_alpha + 0 + + + average + False + + + baseband_freq + 0 + + + alias + + + + comment + + + + affinity + + + + dynamic_range + 100 + + + _enabled + 0 + + + fft_rate + 15 + + + fft_size + 512 + + + freqvar + None + + + _coordinate + (1066, 386) + + + _rotation + 0 + + + grid_pos + + + + id + wxgui_waterfallsink2_0 + + + notebook + + + + ref_scale + 2.0 + + + ref_level + 0 + + + samp_rate + samp_rate + + + title + Waterfall Plot + + + type + complex + + + win_size + + + + win + None + + + + analog_nbfm_tx_0 + interp_fir_filter_xxx_0 + 0 + 0 + + + analog_sig_source_x_0 + blks2_selector_0 + 0 + 0 + + + audio_source_0 + fractional_resampler_xx_0 + 0 + 0 + + + blks2_selector_0 + blocks_multiply_const_vxx_0 + 0 + 0 + + + blocks_multiply_const_vxx_0 + analog_nbfm_tx_0 + 0 + 0 + + + blocks_throttle_0 + wxgui_waterfallsink2_0 + 0 + 0 + + + blocks_wavfile_source_0 + blks2_selector_0 + 0 + 2 + + + fractional_resampler_xx_0 + blks2_selector_0 + 0 + 1 + + + interp_fir_filter_xxx_0 + blocks_throttle_0 + 0 + 0 + + + interp_fir_filter_xxx_0 + uhd_usrp_sink_0 + 0 + 0 + + -- cgit v1.2.3