From 9fc527b4735db31acb967ed1309b86fd76003b03 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 1 Feb 2010 18:55:24 -0500 Subject: Using PFB resampler to generate the pulse shaping filtered signal. --- gnuradio-examples/grc/demod/pam_timing.grc | 612 +++++++++++++---------------- 1 file changed, 266 insertions(+), 346 deletions(-) (limited to 'gnuradio-examples/grc') diff --git a/gnuradio-examples/grc/demod/pam_timing.grc b/gnuradio-examples/grc/demod/pam_timing.grc index 149e4c706..02130f481 100644 --- a/gnuradio-examples/grc/demod/pam_timing.grc +++ b/gnuradio-examples/grc/demod/pam_timing.grc @@ -1,6 +1,6 @@ - Sat Oct 31 10:26:48 2009 + Mon Feb 1 18:54:46 2010 options @@ -172,29 +172,6 @@ 0 - - variable - - id - rrctaps - - - _enabled - True - - - value - firdes.root_raised_cosine(nfilts,1.0,1.0/(spb*nfilts), .35, int(11*spb*nfilts)) - - - _coordinate - (513, 679) - - - _rotation - 0 - - random_source_x @@ -327,45 +304,6 @@ 0 - - gr_channel_model - - id - gr_channel_model_0 - - - _enabled - True - - - noise_voltage - noise_amp - - - freq_offset - freq_offset - - - epsilon - interpratio - - - taps - 1.0 - - - seed - 42 - - - _coordinate - (59, 543) - - - _rotation - 0 - - notebook @@ -401,73 +339,6 @@ 0 - - wxgui_scopesink2 - - id - wxgui_scopesink2_0_0_1 - - - _enabled - True - - - type - complex - - - title - Error - - - samp_rate - samp_rate - - - v_scale - .5 - - - v_offset - 0 - - - t_scale - 0 - - - ac_couple - False - - - xy_mode - False - - - num_inputs - 1 - - - win_size - - - - grid_pos - - - - notebook - notebook_0,3 - - - _coordinate - (1115, 358) - - - _rotation - 0 - - gr_add_xx @@ -530,29 +401,6 @@ 0 - - gr_float_to_complex - - id - gr_float_to_complex_0 - - - _enabled - True - - - vlen - 1 - - - _coordinate - (590, 184) - - - _rotation - 0 - - variable @@ -686,29 +534,6 @@ 180 - - variable - - id - spb_gen - - - _enabled - True - - - value - 4 - - - _coordinate - (119, 841) - - - _rotation - 0 - - variable_slider @@ -820,50 +645,45 @@ - root_raised_cosine_filter + variable id - root_raised_cosine_filter_0 + pam_amp _enabled True - type - interp_fir_filter_ccf - - - decim - 1 - - - interp - spb_gen + value + 2 - gain - 2*spb_gen + _coordinate + (223, 9) - samp_rate - 1.0 + _rotation + 0 + + + variable - sym_rate - 1./spb_gen + id + sig_amp - alpha - 0.35 + _enabled + True - ntaps - 11*spb_gen + value + 1 _coordinate - (834, 157) + (315, 9) _rotation @@ -871,61 +691,66 @@ - blks2_pfb_arb_resampler_ccf + wxgui_scopesink2 id - blks2_pfb_arb_resampler_ccf_0 + wxgui_scopesink2_0 _enabled True - rate - float(spb)/float(spb_gen) + type + complex - taps - firdes.low_pass(128, 128, 0.45, 0.1) + title + Scope Plot - size - 128 + samp_rate + samp_rate - _coordinate - (617, 374) + v_scale + 0 - _rotation + v_offset 0 - - - gr_multiply_const_vxx - id - gr_multiply_const_vxx_0 + t_scale + 0 - _enabled - True + ac_couple + False - type - complex + xy_mode + False - const - sig_amp + num_inputs + 1 - vlen - 1 + win_size + + + + grid_pos + + + + notebook + _coordinate - (1096, 197) + (1116, 500) _rotation @@ -933,22 +758,30 @@ - variable + gr_throttle id - pam_amp + gr_throttle_0 _enabled True - value - 2 - + type + complex + + + samples_per_second + samp_rate + + + vlen + 1 + _coordinate - (223, 9) + (290, 575) _rotation @@ -956,45 +789,66 @@ - variable + wxgui_scopesink2 id - spb + wxgui_scopesink2_0_0 _enabled True - value - 4.1 + type + float - _coordinate - (32, 842) + title + Error - _rotation + samp_rate + samp_rate + + + v_scale + 3 + + + v_offset 0 - - - variable - id - sig_amp + t_scale + 0 - _enabled - True + ac_couple + False - value + xy_mode + False + + + num_inputs 1 + + win_size + + + + grid_pos + + + + notebook + notebook_0,0 + _coordinate - (315, 9) + (1110, 651) _rotation @@ -1005,7 +859,7 @@ wxgui_scopesink2 id - wxgui_scopesink2_0 + wxgui_scopesink2_0_0_0 _enabled @@ -1013,7 +867,7 @@ type - complex + float title @@ -1025,7 +879,7 @@ v_scale - 0 + 9 v_offset @@ -1057,11 +911,11 @@ notebook - + notebook_0,1 _coordinate - (1116, 500) + (1112, 881) _rotation @@ -1069,10 +923,33 @@ - gr_throttle + variable id - gr_throttle_0 + rrctaps + + + _enabled + True + + + value + firdes.root_raised_cosine(nfilts,1.0,1.0/(spb*nfilts), .35, int(11*spb*nfilts)) + + + _coordinate + (513, 679) + + + _rotation + 0 + + + + gr_pfb_clock_sync_xxx + + id + gr_pfb_clock_sync_xxx_0 _enabled @@ -1080,19 +957,39 @@ type - complex + ccf - samples_per_second - samp_rate + sps + spb - vlen - 1 + alpha + alpha + + + beta + beta + + + taps + rrctaps + + + filter_size + nfilts + + + init_phase + 16 + + + max_dev + 1.5 _coordinate - (290, 575) + (512, 527) _rotation @@ -1103,7 +1000,7 @@ wxgui_scopesink2 id - wxgui_scopesink2_0_0 + wxgui_scopesink2_0_0_0_0 _enabled @@ -1115,7 +1012,7 @@ title - Error + Scope Plot samp_rate @@ -1123,7 +1020,7 @@ v_scale - 3 + 1.25 v_offset @@ -1155,11 +1052,11 @@ notebook - notebook_0,0 + notebook_0,2 _coordinate - (1110, 651) + (1111, 767) _rotation @@ -1170,7 +1067,7 @@ wxgui_scopesink2 id - wxgui_scopesink2_0_0_0_0 + wxgui_scopesink2_0_0_1 _enabled @@ -1178,11 +1075,11 @@ type - float + complex title - Scope Plot + Error samp_rate @@ -1190,7 +1087,7 @@ v_scale - 1.25 + .5 v_offset @@ -1222,11 +1119,11 @@ notebook - notebook_0,2 + notebook_0,3 _coordinate - (1111, 767) + (1115, 358) _rotation @@ -1234,50 +1131,53 @@ - gr_pfb_clock_sync_xxx + gr_float_to_complex id - gr_pfb_clock_sync_xxx_0 + gr_float_to_complex_0 _enabled True - type - ccf + vlen + 1 - sps - spb + _coordinate + (590, 184) - alpha - alpha + _rotation + 0 + + + blks2_pfb_arb_resampler_ccf - beta - beta + id + blks2_pfb_arb_resampler_ccf_0 - taps - rrctaps + _enabled + True - filter_size - nfilts + rate + spb - init_phase - 16 + taps + firdes.root_raised_cosine(32, 32, 1.0, 0.35, 44*32) - max_dev - 1.5 + size + 32 _coordinate - (512, 527) + (816, 181) _rotation @@ -1285,66 +1185,92 @@ - wxgui_scopesink2 + gr_channel_model id - wxgui_scopesink2_0_0_0 + gr_channel_model_0 _enabled True - type - float + noise_voltage + noise_amp - title - Scope Plot + freq_offset + freq_offset - samp_rate - samp_rate + epsilon + interpratio - v_scale - 9 + taps + 1.0 - v_offset - 0 + seed + 42 - t_scale + _coordinate + (59, 543) + + + _rotation 0 + + + gr_multiply_const_vxx - ac_couple - False + id + gr_multiply_const_vxx_0 - xy_mode - False + _enabled + True - num_inputs + type + complex + + + const + sig_amp + + + vlen 1 - win_size - + _coordinate + (714, 382) - grid_pos - + _rotation + 0 + + + + variable + + id + spb - notebook - notebook_0,1 + _enabled + True + + + value + 4.2563 _coordinate - (1112, 881) + (42, 840) _rotation @@ -1387,18 +1313,6 @@ 0 0 - - blks2_pfb_arb_resampler_ccf_0 - gr_channel_model_0 - 0 - 0 - - - blks2_pfb_arb_resampler_ccf_0 - wxgui_scopesink2_0_0_1 - 0 - 0 - gr_channel_model_0 gr_throttle_0 @@ -1418,51 +1332,57 @@ 1 - gr_float_to_complex_0 - root_raised_cosine_filter_0 + gr_pfb_clock_sync_xxx_0 + wxgui_scopesink2_0 0 0 - root_raised_cosine_filter_0 - gr_multiply_const_vxx_0 + gr_throttle_0 + gr_pfb_clock_sync_xxx_0 0 0 - gr_multiply_const_vxx_0 - blks2_pfb_arb_resampler_ccf_0 - 0 + gr_pfb_clock_sync_xxx_0 + wxgui_scopesink2_0_0 + 1 0 gr_pfb_clock_sync_xxx_0 - wxgui_scopesink2_0 - 0 + wxgui_scopesink2_0_0_0 + 3 0 - gr_throttle_0 - gr_pfb_clock_sync_xxx_0 + gr_pfb_clock_sync_xxx_0 + wxgui_scopesink2_0_0_0_0 + 2 + 0 + + + gr_multiply_const_vxx_0 + wxgui_scopesink2_0_0_1 0 0 - gr_pfb_clock_sync_xxx_0 - wxgui_scopesink2_0_0 - 1 + gr_float_to_complex_0 + blks2_pfb_arb_resampler_ccf_0 + 0 0 - gr_pfb_clock_sync_xxx_0 - wxgui_scopesink2_0_0_0_0 - 2 + blks2_pfb_arb_resampler_ccf_0 + gr_multiply_const_vxx_0 + 0 0 - gr_pfb_clock_sync_xxx_0 - wxgui_scopesink2_0_0_0 - 3 + gr_multiply_const_vxx_0 + gr_channel_model_0 + 0 0 -- cgit From 8d4804c546be699a3c3088edc7de25cfee620562 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 1 Feb 2010 18:58:37 -0500 Subject: Simplifying and using PFB resampler to generate pusle shape filtered signal. --- gnuradio-examples/grc/demod/pam_sync.grc | 606 ++++++++++++++----------------- 1 file changed, 263 insertions(+), 343 deletions(-) (limited to 'gnuradio-examples/grc') diff --git a/gnuradio-examples/grc/demod/pam_sync.grc b/gnuradio-examples/grc/demod/pam_sync.grc index fc1186894..80a7aef0c 100644 --- a/gnuradio-examples/grc/demod/pam_sync.grc +++ b/gnuradio-examples/grc/demod/pam_sync.grc @@ -1,6 +1,6 @@ - Tue Dec 15 23:06:57 2009 + Mon Feb 1 18:58:32 2010 options @@ -366,29 +366,6 @@ 0 - - gr_float_to_complex - - id - gr_float_to_complex_0 - - - _enabled - True - - - vlen - 1 - - - _coordinate - (590, 184) - - - _rotation - 0 - - variable @@ -522,60 +499,6 @@ 180 - - variable - - id - spb_gen - - - _enabled - True - - - value - 4 - - - _coordinate - (119, 841) - - - _rotation - 0 - - - - gr_multiply_const_vxx - - id - gr_multiply_const_vxx_0 - - - _enabled - True - - - type - complex - - - const - sig_amp - - - vlen - 1 - - - _coordinate - (1096, 197) - - - _rotation - 0 - - variable @@ -645,80 +568,6 @@ 0 - - root_raised_cosine_filter - - id - root_raised_cosine_filter_0 - - - _enabled - True - - - type - interp_fir_filter_ccf - - - decim - 1 - - - interp - spb_gen - - - gain - 2*spb_gen - - - samp_rate - 1.0 - - - sym_rate - 1./spb_gen - - - alpha - rolloff - - - ntaps - 11*spb_gen - - - _coordinate - (834, 157) - - - _rotation - 0 - - - - variable - - id - spb - - - _enabled - True - - - value - 4.0 - - - _coordinate - (32, 842) - - - _rotation - 0 - - gr_throttle @@ -1080,57 +929,6 @@ 180 - - gr_pfb_clock_sync_xxx - - id - gr_pfb_clock_sync_xxx_0 - - - _enabled - True - - - type - ccf - - - sps - spb - - - alpha - time_alpha - - - beta - time_beta - - - taps - rrctaps - - - filter_size - nfilts - - - init_phase - 16 - - - max_dev - 1.5 - - - _coordinate - (655, 527) - - - _rotation - 0 - - gr_costas_loop_cc @@ -1237,37 +1035,6 @@ 0 - - blks2_pfb_arb_resampler_ccf - - id - blks2_pfb_arb_resampler_ccf_0 - - - _enabled - True - - - rate - float(spb)/float(spb_gen) - - - taps - firdes.low_pass(128, 128, 0.45, 0.1) - - - size - 128 - - - _coordinate - (596, 326) - - - _rotation - 0 - - variable @@ -1291,49 +1058,6 @@ 0 - - gr_fll_band_edge_cc - - id - gr_fll_band_edge_cc_0 - - - _enabled - True - - - type - cc - - - samps_per_sym - spb_gen - - - rolloff - rolloff - - - filter_size - 44 - - - alpha - freq_alpha - - - beta - freq_beta - - - _coordinate - (429, 543) - - - _rotation - 0 - - notebook @@ -1547,49 +1271,10 @@ - gr_channel_model + virtual_sink id - gr_channel_model_0 - - - _enabled - True - - - noise_voltage - noise_amp - - - freq_offset - freq_offset - - - epsilon - interpratio - - - taps - 1.0 - - - seed - 42 - - - _coordinate - (60, 443) - - - _rotation - 0 - - - - virtual_sink - - id - virtual_sink_0 + virtual_sink_0 _enabled @@ -1688,7 +1373,248 @@ _coordinate - (655, 686) + (663, 687) + + + _rotation + 0 + + + + gr_pfb_clock_sync_xxx + + id + gr_pfb_clock_sync_xxx_0 + + + _enabled + True + + + type + ccf + + + sps + spb + + + alpha + time_alpha + + + beta + time_beta + + + taps + rrctaps + + + filter_size + nfilts + + + init_phase + 16 + + + max_dev + 1.5 + + + _coordinate + (662, 527) + + + _rotation + 0 + + + + gr_float_to_complex + + id + gr_float_to_complex_0 + + + _enabled + True + + + vlen + 1 + + + _coordinate + (592, 184) + + + _rotation + 0 + + + + gr_channel_model + + id + gr_channel_model_0 + + + _enabled + True + + + noise_voltage + noise_amp + + + freq_offset + freq_offset + + + epsilon + interpratio + + + taps + 1.0 + + + seed + 42 + + + _coordinate + (60, 443) + + + _rotation + 0 + + + + gr_multiply_const_vxx + + id + gr_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + sig_amp + + + vlen + 1 + + + _coordinate + (670, 322) + + + _rotation + 0 + + + + blks2_pfb_arb_resampler_ccf + + id + blks2_pfb_arb_resampler_ccf_0 + + + _enabled + True + + + rate + spb + + + taps + firdes.root_raised_cosine(32, 32, 1.0, 0.35, 44*32) + + + size + 32 + + + _coordinate + (778, 180) + + + _rotation + 0 + + + + gr_fll_band_edge_cc + + id + gr_fll_band_edge_cc_0 + + + _enabled + True + + + type + cc + + + samps_per_sym + spb + + + rolloff + rolloff + + + filter_size + 44 + + + alpha + freq_alpha + + + beta + freq_beta + + + _coordinate + (429, 528) + + + _rotation + 0 + + + + variable + + id + spb + + + _enabled + True + + + value + 4.0 + + + _coordinate + (40, 829) _rotation @@ -1719,12 +1645,6 @@ 0 0 - - blks2_pfb_arb_resampler_ccf_0 - gr_channel_model_0 - 0 - 0 - gr_channel_model_0 gr_throttle_0 @@ -1743,24 +1663,6 @@ 0 1 - - gr_float_to_complex_0 - root_raised_cosine_filter_0 - 0 - 0 - - - root_raised_cosine_filter_0 - gr_multiply_const_vxx_0 - 0 - 0 - - - gr_multiply_const_vxx_0 - blks2_pfb_arb_resampler_ccf_0 - 0 - 0 - gr_uchar_to_float_0 gr_add_xx_0 @@ -1821,4 +1723,22 @@ 0 0 + + gr_float_to_complex_0 + blks2_pfb_arb_resampler_ccf_0 + 0 + 0 + + + blks2_pfb_arb_resampler_ccf_0 + gr_multiply_const_vxx_0 + 0 + 0 + + + gr_multiply_const_vxx_0 + gr_channel_model_0 + 0 + 0 + -- cgit From cafa42f500337c3b4b9d54b8af1c9101727267b9 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 1 Feb 2010 18:59:56 -0500 Subject: Minor adjustments to FLL example --- gnuradio-examples/grc/demod/digital_freq_lock.grc | 80 +++++++++++------------ 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'gnuradio-examples/grc') diff --git a/gnuradio-examples/grc/demod/digital_freq_lock.grc b/gnuradio-examples/grc/demod/digital_freq_lock.grc index a7324a070..37ee8123e 100644 --- a/gnuradio-examples/grc/demod/digital_freq_lock.grc +++ b/gnuradio-examples/grc/demod/digital_freq_lock.grc @@ -1,6 +1,6 @@ - Tue Dec 15 22:45:39 2009 + Fri Jan 29 18:10:00 2010 options @@ -910,45 +910,6 @@ 0 - - gr_channel_model - - id - gr_channel_model_0 - - - _enabled - True - - - noise_voltage - noise_amp - - - freq_offset - freq_offset - - - epsilon - 1.0 - - - taps - 1.0 - - - seed - 42 - - - _coordinate - (346, 491) - - - _rotation - 0 - - variable @@ -1222,6 +1183,45 @@ 0 + + gr_channel_model + + id + gr_channel_model_0 + + + _enabled + True + + + noise_voltage + noise_amp + + + freq_offset + freq_offset + + + epsilon + 1.0 + + + taps + 1.0 + + + seed + 42 + + + _coordinate + (618, 376) + + + _rotation + 0 + + random_source_x_0 gr_uchar_to_float_0 -- cgit From 83369a926b2b23280ac4709335b0115f4c145602 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 1 Feb 2010 19:05:43 -0500 Subject: Changing Makefile so the new PAM examples are installed --- gnuradio-examples/grc/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnuradio-examples/grc') diff --git a/gnuradio-examples/grc/Makefile.am b/gnuradio-examples/grc/Makefile.am index f8a26bace..118ecd593 100644 --- a/gnuradio-examples/grc/Makefile.am +++ b/gnuradio-examples/grc/Makefile.am @@ -31,7 +31,9 @@ dist_audiodata_DATA = \ demoddatadir = $(grc_examples_prefix)/demod dist_demoddata_DATA = \ demod/mpsk_demod.grc \ - demod/pam_timing.grc + demod/pam_timing.grc \ + demod/pam_sync.grc \ + demod/digital_freq_lock.grc simpledatadir = $(grc_examples_prefix)/simple dist_simpledata_DATA = \ -- cgit