diff --git a/examples/gsm_fcch_detector.grc b/examples/gsm_fcch_detector.grc new file mode 100644 index 0000000..1d69b53 --- /dev/null +++ b/examples/gsm_fcch_detector.grc @@ -0,0 +1,567 @@ + + + Tue Jul 8 19:32:53 2014 + + variable + + id + samp_rate + + + _enabled + True + + + value + f_symb*OSR + + + _coordinate + (10, 170) + + + _rotation + 0 + + + + variable + + id + f_symb + + + _enabled + True + + + value + 1625000.0/6.0 + + + _coordinate + (11, 239) + + + _rotation + 0 + + + + parameter + + id + OSR + + + _enabled + True + + + label + OverSamplingRatio + + + value + 4 + + + type + intx + + + short_id + + + + _coordinate + (264, 4) + + + _rotation + 0 + + + + blocks_complex_to_arg + + id + blocks_complex_to_arg_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (641, 158) + + + _rotation + 0 + + + + blocks_multiply_conjugate_cc + + id + blocks_multiply_conjugate_cc_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (444, 141) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0 + + + _enabled + True + + + type + complex + + + delay + int(OSR) + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (319, 171) + + + _rotation + 0 + + + + blocks_moving_average_xx + + id + blocks_moving_average_xx_0 + + + _enabled + True + + + type + float + + + length + int((142)*samp_rate/f_symb) + + + scale + 1 + + + max_iter + int(1e6) + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (971, 138) + + + _rotation + 0 + + + + blocks_threshold_ff + + id + blocks_threshold_ff_0_0 + + + _enabled + True + + + low + 0 + + + high + 0 + + + init + 0 + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (815, 138) + + + _rotation + 0 + + + + pad_source + + id + pad_source_0 + + + _enabled + True + + + label + in + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (155, 137) + + + _rotation + 0 + + + + blocks_threshold_ff + + id + blocks_threshold_ff_0 + + + _enabled + True + + + low + int((138)*samp_rate/f_symb) + + + high + int((138)*samp_rate/f_symb) + + + init + 0 + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (1150, 138) + + + _rotation + 0 + + + + gsm_fcch_burst_tagger + + id + gsm_fcch_burst_tagger_0 + + + _enabled + True + + + OSR + OSR + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (348, 303) + + + _rotation + 0 + + + + pad_sink + + id + pad_sink_0 + + + _enabled + True + + + label + out + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (584, 316) + + + _rotation + 0 + + + + options + + id + fcch_detector + + + _enabled + True + + + title + FCCH Bursts Detector + + + author + Piotr Krysik + + + description + Detects positions of FCCH bursts. At the end of each detected FCCH burst adds to the stream a tag with key "fcch" and value which is a frequency offset estimate. The input sampling frequency should be integer multiply of GSM GMKS symbol rate - 1625000/6 Hz. + + + window_size + 1280, 1024 + + + generate_options + hb + + + category + GSM + + + run_options + prompt + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (8, 0) + + + _rotation + 0 + + + + pad_source_0 + blocks_multiply_conjugate_cc_0 + 0 + 0 + + + blocks_delay_0 + blocks_multiply_conjugate_cc_0 + 0 + 1 + + + blocks_complex_to_arg_0 + blocks_threshold_ff_0_0 + 0 + 0 + + + pad_source_0 + blocks_delay_0 + 0 + 0 + + + blocks_multiply_conjugate_cc_0 + blocks_complex_to_arg_0 + 0 + 0 + + + blocks_moving_average_xx_0 + blocks_threshold_ff_0 + 0 + 0 + + + blocks_threshold_ff_0_0 + blocks_moving_average_xx_0 + 0 + 0 + + + gsm_fcch_burst_tagger_0 + pad_sink_0 + 0 + 0 + + + pad_source_0 + gsm_fcch_burst_tagger_0 + 0 + 0 + + + blocks_threshold_ff_0 + gsm_fcch_burst_tagger_0 + 0 + 1 + +