summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py
diff options
context:
space:
mode:
authorTom <trondeau@vt.edu>2009-10-06 10:24:38 -0700
committerTom <trondeau@vt.edu>2009-10-06 10:24:38 -0700
commiteee064ca72cbc9779eaae2f20e18f74ff7925574 (patch)
tree7b675e887faa17a6732e0fc45e24c2cb973b9a41 /gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py
parent28bcffdea069764716a769eb3e344c748bc705f6 (diff)
Using PFB clock recovery for testing
Diffstat (limited to 'gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py40
1 files changed, 30 insertions, 10 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py b/gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py
index 3147bfa2ab..ac2e9323fb 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/dbpsk.py
@@ -255,16 +255,34 @@ class dbpsk_demod(gr.hier_block2):
self._mm_omega = self._samples_per_symbol
self._mm_gain_omega = .25 * self._mm_gain_mu * self._mm_gain_mu
self._costas_beta = 0.25 * self._costas_alpha * self._costas_alpha
- fmin = -0.1
- fmax = 0.1
+ fmin = -0.25
+ fmax = 0.25
- self.receiver=gr.mpsk_receiver_cc(arity, 0,
- self._costas_alpha, self._costas_beta,
- fmin, fmax,
- self._mm_mu, self._mm_gain_mu,
- self._mm_omega, self._mm_gain_omega,
- self._mm_omega_relative_limit)
-
+ #self.receiver=gr.mpsk_receiver_cc(arity, 0,
+ # self._costas_alpha, self._costas_beta,
+ # fmin, fmax,
+ # self._mm_mu, self._mm_gain_mu,
+ # self._mm_omega, self._mm_gain_omega,
+ # self._mm_omega_relative_limit)
+
+ self.clock_recov = gr.costas_loop_cc(self._costas_alpha,
+ self._costas_beta,
+ fmax, fmin, arity)
+ if 0:
+ self.time_recov = gr.clock_recovery_mm_cc(self._mm_omega,
+ self._mm_gain_omega,
+ self._mm_mu,
+ self._mm_gain_mu,
+ self._mm_omega_relative_limit)
+ else:
+ nfilts = 8
+ ntaps = nfilts*ntaps
+ taps = gr.firdes.root_raised_cosine(
+ nfilts, 1.0, 0.25/nfilts, self._excess_bw, ntaps)
+ self.time_recov = gr.pfb_clock_sync_ccf(self._mm_omega,
+ self._mm_gain_mu,
+ taps, nfilts)
+
# Do differential decoding based on phase change of symbols
self.diffdec = gr.diff_phasor_cc()
@@ -288,7 +306,9 @@ class dbpsk_demod(gr.hier_block2):
self._setup_logging()
# Connect and Initialize base class
- self.connect(self, self.pre_scaler, self.agc, self.rrc_filter, self.receiver,
+ self.connect(self, self.pre_scaler, self.agc, #self.rrc_filter, self.receiver,
+ #self.clock_recov,
+ self.time_recov,
self.diffdec, self.slicer, self.symbol_mapper, self.unpack, self)
def samples_per_symbol(self):