From 6af2c9c58cc6afcab371b769da5738c1f52fc969 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 25 Nov 2009 20:49:27 -0800 Subject: [PATCH] created dpsk demo with usrps --- gnuradio-examples/grc/Makefile.am | 2 + gnuradio-examples/grc/usrp/usrp_rx_dpsk.grc | 635 ++++++++++++++++++++ gnuradio-examples/grc/usrp/usrp_tx_dpsk.grc | 583 ++++++++++++++++++ 3 files changed, 1220 insertions(+) create mode 100644 gnuradio-examples/grc/usrp/usrp_rx_dpsk.grc create mode 100644 gnuradio-examples/grc/usrp/usrp_tx_dpsk.grc diff --git a/gnuradio-examples/grc/Makefile.am b/gnuradio-examples/grc/Makefile.am index 97417c5a..f8a26bac 100644 --- a/gnuradio-examples/grc/Makefile.am +++ b/gnuradio-examples/grc/Makefile.am @@ -49,6 +49,8 @@ usrpdatadir = $(grc_examples_prefix)/usrp dist_usrpdata_DATA = \ usrp/usrp2_const_wave.grc \ usrp/usrp2_dpsk_mod.grc \ + usrp/usrp_rx_dpsk.grc \ + usrp/usrp_tx_dpsk.grc \ usrp/usrp2_fft.grc \ usrp/usrp_two_tone_loopback.grc \ usrp/usrp_wbfm_receive.grc diff --git a/gnuradio-examples/grc/usrp/usrp_rx_dpsk.grc b/gnuradio-examples/grc/usrp/usrp_rx_dpsk.grc new file mode 100644 index 00000000..9b869687 --- /dev/null +++ b/gnuradio-examples/grc/usrp/usrp_rx_dpsk.grc @@ -0,0 +1,635 @@ + + + Wed Nov 25 20:45:31 2009 + + options + + id + usrp_rx_dpsk + + + _enabled + True + + + title + USRP RX DPSK + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + realtime_scheduling + + + + _coordinate + (12, 9) + + + _rotation + 0 + + + + variable + + id + samps_per_sym + + + _enabled + True + + + value + 4 + + + _coordinate + (14, 79) + + + _rotation + 0 + + + + variable + + id + bb_freq + + + _enabled + True + + + value + 2.45e9 + + + _coordinate + (18, 151) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 1e6 + + + _coordinate + (20, 234) + + + _rotation + 0 + + + + usrp2_source_xxxx + + id + usrp2_source_xxxx_0 + + + _enabled + True + + + type + complex + + + interface + + + + mac_addr + + + + decimation + int(100e6/samp_rate) + + + frequency + bb_freq + + + lo_offset + float('inf') + + + gain + 0 + + + _coordinate + (158, 51) + + + _rotation + 0 + + + + blks2_dxpsk2_demod + + id + blks2_dxpsk2_demod_0 + + + _enabled + True + + + type + dqpsk + + + samples_per_symbol + samps_per_sym + + + excess_bw + 0.35 + + + costas_alpha + costas_alpha + + + timing_alpha + timing_alpha + + + timing_max_dev + 1.5 + + + omega_relative_limit + 0.005 + + + gray_code + True + + + verbose + False + + + log + False + + + sync_out + True + + + _coordinate + (488, 65) + + + _rotation + 0 + + + + variable + + id + p2p + + + _enabled + True + + + value + 2.0 + + + _coordinate + (13, 314) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0 + + + _enabled + True + + + type + complex + + + title + Recovered DQPSK Constellation + + + samp_rate + samp_rate + + + v_scale + 0 + + + v_offset + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + True + + + num_inputs + 1 + + + win_size + + + + grid_pos + + + + notebook + + + + _coordinate + (747, 237) + + + _rotation + 0 + + + + variable_slider + + id + timing_alpha + + + _enabled + True + + + label + Timing Alpha + + + value + .1 + + + min + 0 + + + max + .5 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (759, 365) + + + _rotation + 0 + + + + gr_null_sink + + id + gr_null_sink_0 + + + _enabled + True + + + type + byte + + + vlen + 1 + + + _coordinate + (815, 80) + + + _rotation + 0 + + + + variable_slider + + id + costas_alpha + + + _enabled + True + + + label + Costas Alpha + + + value + 0.175 + + + min + 0 + + + max + .5 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (598, 367) + + + _rotation + 0 + + + + usrp_simple_source_x + + id + usrp_simple_source_x_0 + + + _enabled + False + + + type + complex + + + format + + + + which + 0 + + + decimation + int(64e6/samp_rate) + + + frequency + bb_freq + + + lo_offset + float('inf') + + + gain + 0 + + + side + B + + + rx_ant + TX/RX + + + hb_filters + + + + _coordinate + (154, 218) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0 + + + _enabled + True + + + type + complex + + + title + Receive Spectrum + + + samp_rate + samp_rate + + + baseband_freq + bb_freq + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + -40 + + + ref_scale + p2p + + + fft_size + 1024 + + + fft_rate + 20 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + win + None + + + win_size + + + + grid_pos + + + + notebook + + + + _coordinate + (383, 321) + + + _rotation + 0 + + + + usrp2_source_xxxx_0 + wxgui_fftsink2_0 + 0 + 0 + + + usrp2_source_xxxx_0 + blks2_dxpsk2_demod_0 + 0 + 0 + + + blks2_dxpsk2_demod_0 + gr_null_sink_0 + 0 + 0 + + + blks2_dxpsk2_demod_0 + wxgui_scopesink2_0 + 1 + 0 + + diff --git a/gnuradio-examples/grc/usrp/usrp_tx_dpsk.grc b/gnuradio-examples/grc/usrp/usrp_tx_dpsk.grc new file mode 100644 index 00000000..c710dbb2 --- /dev/null +++ b/gnuradio-examples/grc/usrp/usrp_tx_dpsk.grc @@ -0,0 +1,583 @@ + + + Wed Nov 25 20:45:29 2009 + + options + + id + usrp_tx_dpsk + + + _enabled + True + + + title + USRP TX DPSK + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + realtime_scheduling + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + variable + + id + samps_per_sym + + + _enabled + True + + + value + 4 + + + _coordinate + (15, 76) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 1e6 + + + _coordinate + (12, 207) + + + _rotation + 0 + + + + random_source_x + + id + random_source_x_0 + + + _enabled + True + + + type + byte + + + min + 0 + + + max + 2**8 + + + num_samps + 1000 + + + repeat + True + + + _coordinate + (23, 319) + + + _rotation + 0 + + + + blks2_dxpsk2_mod + + id + blks2_dxpsk2_mod_0 + + + _enabled + True + + + type + dqpsk + + + samples_per_symbol + samps_per_sym + + + excess_bw + 0.35 + + + gray_code + True + + + verbose + False + + + log + False + + + _coordinate + (234, 151) + + + _rotation + 0 + + + + usrp_simple_sink_x + + id + usrp_simple_sink_x_0 + + + _enabled + True + + + type + complex + + + which + 0 + + + interpolation + int(128e6/samp_rate) + + + frequency + bb_freq + + + lo_offset + float('inf') + + + gain + 0 + + + side + A + + + transmit + auto_tr + + + _coordinate + (516, 203) + + + _rotation + 0 + + + + usrp2_sink_xxxx + + id + usrp2_sink_xxxx_0 + + + _enabled + False + + + type + complex + + + interface + + + + mac_addr + + + + interpolation + int(100e6/samp_rate) + + + frequency + bb_freq + + + lo_offset + float('inf') + + + gain + 0 + + + _coordinate + (498, 51) + + + _rotation + 0 + + + + variable_slider + + id + tx_ampl + + + _enabled + True + + + label + TX Amplitude + + + value + .2 + + + min + 0 + + + max + 1 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (277, 491) + + + _rotation + 0 + + + + variable + + id + bb_freq + + + _enabled + True + + + value + 2.45e9+freq_off + + + _coordinate + (14, 141) + + + _rotation + 0 + + + + variable_slider + + id + freq_off + + + _enabled + True + + + label + Frequency Offset + + + value + 0 + + + min + -samp_rate/2 + + + max + samp_rate/2 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (63, 483) + + + _rotation + 0 + + + + variable + + id + p2p + + + _enabled + True + + + value + 2**15 + + + _coordinate + (179, 37) + + + _rotation + 0 + + + + gr_multiply_const_vxx + + id + gr_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + tx_ampl*p2p/2. + + + vlen + 1 + + + _coordinate + (306, 355) + + + _rotation + 0 + + + + wxgui_fftsink2 + + id + wxgui_fftsink2_0 + + + _enabled + True + + + type + complex + + + title + Transmit Spectrum + + + samp_rate + samp_rate + + + baseband_freq + bb_freq + + + y_per_div + 10 + + + y_divs + 10 + + + ref_level + 0 + + + ref_scale + p2p + + + fft_size + 1024 + + + fft_rate + 20 + + + peak_hold + False + + + average + False + + + avg_alpha + 0 + + + win + None + + + win_size + + + + grid_pos + + + + notebook + + + + _coordinate + (576, 410) + + + _rotation + 0 + + + + random_source_x_0 + blks2_dxpsk2_mod_0 + 0 + 0 + + + blks2_dxpsk2_mod_0 + gr_multiply_const_vxx_0 + 0 + 0 + + + gr_multiply_const_vxx_0 + usrp_simple_sink_x_0 + 0 + 0 + + + gr_multiply_const_vxx_0 + wxgui_fftsink2_0 + 0 + 0 + + -- 2.39.5