From 15a808396d74424d9d1a562fd22e2c381bc8bf4d Mon Sep 17 00:00:00 2001 From: then Date: Mon, 14 May 2018 12:20:26 +0200 Subject: [PATCH] added fm transmitter example --- .../NarrowFM_transmitter_LimeSDRMini.README | 27 + .../NarrowFM_transmitter_LimeSDRMini.grc | 523 ++++++++++++++++++ 2 files changed, 550 insertions(+) create mode 100644 gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.README create mode 100644 gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.grc diff --git a/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.README b/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.README new file mode 100644 index 0000000..aee62a4 --- /dev/null +++ b/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.README @@ -0,0 +1,27 @@ +INSTALL LIMESUITE, GNURADIO AND SOAPY +work in progress... +see: https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio + + +INSTALL LIME SDR GNU RADIO PLUGIN +$ sudo apt-get install libboost-all-dev swig +$ git clone https://github.com/myriadrf/gr-limesdr +$ cd gr-limesdr +$ mkdir build +$ cd build +$ cmake .. +$ make +$ sudo make install +$ sudo ldconfig + +see: +https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio + +note: +The original examples provided in the gr-limesdr plugin are not optimised for the +lime sdr MINI. They require some hacking. + +CONVERT MP3 FILES FOR USE WITH EXAMPLE FM TRANSMITTER PATCH +$ sudo apt-get install libsox-fmt-mp3 +$ sox infile.mp3 outfile.wav + diff --git a/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.grc b/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.grc new file mode 100644 index 0000000..4bbe8f7 --- /dev/null +++ b/gr-limesdr/examples/NarrowFM_transmitter_LimeSDRMini.grc @@ -0,0 +1,523 @@ + + + + Tue Feb 20 16:22:48 2018 + + options + + author + Lime Microsystems + + + window_size + + + + category + Custom + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + wx_gui + + + hier_block_src_path + .: + + + id + top_block + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + run + + + run + True + + + sizing_mode + fixed + + + thread_safe_setters + + + + title + FM transmitter + + + placement + (0,0) + + + + analog_nbfm_tx + + audio_rate + 48000 + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (216, 199) + + + _rotation + 0 + + + id + analog_nbfm_tx_0_0 + + + max_dev + 2e3 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + fh + -1.0 + + + quad_rate + 480000 + + + tau + 75e-6 + + + + blocks_wavfile_source + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + file + /home/then/Music/out.wav + + + _coordinate + (8, 213) + + + _rotation + 0 + + + id + blocks_wavfile_source_0_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + nchan + 1 + + + repeat + True + + + + limesdr_sink + + alias + + + + channel + 0 + + + analog_bandw_ch0 + 5e6 + + + analog_filter_ch0 + 0 + + + calibr_bandw_ch0 + 2.5e6 + + + calibration_ch0 + 0 + + + digital_bandw_ch0 + 100e3 + + + digital_filter_ch0 + 0 + + + gain_dB_ch0 + 60 + + + pa_path_ch0 + 1 + + + pa_path_mini + 1 + + + analog_bandw_ch1 + 7e6 + + + analog_filter_ch1 + 1 + + + calibr_bandw_ch1 + 10e6 + + + calibration_ch1 + 1 + + + digital_bandw_ch1 + 0 + + + digital_filter_ch1 + 1 + + + gain_dB_ch1 + 0 + + + pa_path_ch1 + 1 + + + rf_freq + 1447.09375e6 + + + chip_mode + 1 + + + comment + + + + affinity + + + + device_number + 0 + + + device_type + 1 + + + _enabled + True + + + filename + + + + _coordinate + (656, 12) + + + _rotation + 0 + + + id + limesdr_sink_0 + + + file_switch + 0 + + + oversample + 0 + + + samp_rate + 2e6 + + + + rational_resampler_xxx + + alias + + + + comment + + + + affinity + + + + decim + 6 + + + _enabled + 1 + + + fbw + 0 + + + _coordinate + (480, 188) + + + _rotation + 0 + + + id + rational_resampler_xxx_0 + + + interp + 25 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + taps + + + + type + ccf + + + + wxgui_fftsink2 + + avg_alpha + 0 + + + average + False + + + baseband_freq + 446.09375e6 + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + fft_size + 1024 + + + freqvar + None + + + _coordinate + (696, 308) + + + _rotation + 0 + + + grid_pos + + + + id + wxgui_fftsink2_0 + + + notebook + + + + peak_hold + False + + + ref_level + 0 + + + ref_scale + 2.0 + + + fft_rate + 15 + + + samp_rate + 2e6 + + + title + Transmitting data + + + type + complex + + + win_size + + + + win + None + + + y_divs + 10 + + + y_per_div + 10 + + + + analog_nbfm_tx_0_0 + rational_resampler_xxx_0 + 0 + 0 + + + blocks_wavfile_source_0_0 + analog_nbfm_tx_0_0 + 0 + 0 + + + rational_resampler_xxx_0 + limesdr_sink_0 + 0 + 0 + + + rational_resampler_xxx_0 + wxgui_fftsink2_0 + 0 + 0 + +