From 0982673af1e91b91c4b983f0f423277e09089e7e Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Fri, 15 Jul 2016 13:14:24 +0200 Subject: New clock offset corrector and clock offset control --- .../misc_utils/gsm_clock_offset_corrector_new.grc | 494 +++++++++++++++++ .../gsm_clock_offset_corrector_tagged.grc | 606 +++++++++++++++++++++ 2 files changed, 1100 insertions(+) create mode 100644 hier_blocks/misc_utils/gsm_clock_offset_corrector_new.grc create mode 100644 hier_blocks/misc_utils/gsm_clock_offset_corrector_tagged.grc (limited to 'hier_blocks') diff --git a/hier_blocks/misc_utils/gsm_clock_offset_corrector_new.grc b/hier_blocks/misc_utils/gsm_clock_offset_corrector_new.grc new file mode 100644 index 0000000..390fce6 --- /dev/null +++ b/hier_blocks/misc_utils/gsm_clock_offset_corrector_new.grc @@ -0,0 +1,494 @@ + + + + Thu Nov 6 10:22:20 2014 + + options + + author + Piotr Krysik + + + window_size + 2280, 1024 + + + category + GSM + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (10, 10) + + + _rotation + 0 + + + generate_options + hb + + + hier_block_src_path + .: + + + id + clock_offset_corrector_new + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + prompt + + + run + True + + + thread_safe_setters + + + + title + Clock offset corrector + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (736, 19) + + + _rotation + 0 + + + id + samp_rate_out + + + value + samp_rate_in + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (32, 244) + + + _rotation + 0 + + + id + ctrl_in + + + label + ctrl_in + + + num_streams + 1 + + + optional + True + + + type + message + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (274, 19) + + + _rotation + 0 + + + id + fc + + + label + fc + + + short_id + + + + type + eng_float + + + value + 936.6e6 + + + + grgsm_msg_to_tag + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (192, 193) + + + _rotation + 0 + + + id + grgsm_msg_to_tag_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + import + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (11, 125) + + + _rotation + 0 + + + id + math_imp + + + import + import math + + + + pad_sink + + comment + + + + _enabled + True + + + _coordinate + (1168, 204) + + + _rotation + 0 + + + id + pad_sink_1 + + + type + complex + + + label + out + + + num_streams + 1 + + + optional + False + + + vlen + 1 + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (32, 188) + + + _rotation + 0 + + + id + pad_source_0 + + + label + in + + + num_streams + 1 + + + optional + False + + + type + complex + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (496, 19) + + + _rotation + 0 + + + id + ppm + + + label + ppm + + + short_id + + + + type + eng_float + + + value + 0 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (368, 19) + + + _rotation + 0 + + + id + samp_rate_in + + + label + samp_rate_in + + + short_id + + + + type + eng_float + + + value + 1625000.0/6.0*4.0 + + + + parameter + + alias + + + + comment + + + + _enabled + False + + + _coordinate + (592, 20) + + + _rotation + 0 + + + id + samp_rate_out + + + label + samp_rate_out + + + short_id + + + + type + eng_float + + + value + 1625000.0/6.0*4.0 + + + + ctrl_in + grgsm_msg_to_tag_0 + out + msg + + + pad_source_0 + grgsm_msg_to_tag_0 + 0 + 0 + + diff --git a/hier_blocks/misc_utils/gsm_clock_offset_corrector_tagged.grc b/hier_blocks/misc_utils/gsm_clock_offset_corrector_tagged.grc new file mode 100644 index 0000000..61d8db7 --- /dev/null +++ b/hier_blocks/misc_utils/gsm_clock_offset_corrector_tagged.grc @@ -0,0 +1,606 @@ + + + + Thu Nov 6 10:22:20 2014 + + options + + author + Piotr Krysik + + + window_size + 2280, 1024 + + + category + GSM + + + comment + + + + description + Clock offset corrector with blocks that use tags to switch offsets + + + _enabled + True + + + _coordinate + (10, 10) + + + _rotation + 0 + + + generate_options + hb + + + hier_block_src_path + .: + + + id + clock_offset_corrector_tagged + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + prompt + + + run + True + + + thread_safe_setters + + + + title + Clock offset corrector tagged + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (736, 19) + + + _rotation + 0 + + + id + samp_rate_out + + + value + samp_rate_in + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (32, 244) + + + _rotation + 0 + + + id + ctrl + + + label + ctrl + + + num_streams + 1 + + + optional + True + + + type + message + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (274, 19) + + + _rotation + 0 + + + id + fc + + + label + fc + + + short_id + + + + type + eng_float + + + value + 936.6e6 + + + + grgsm_controlled_fractional_resampler_cc + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (328, 197) + + + _rotation + 0 + + + id + grgsm_controlled_fractional_resampler_cc_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + phase_shift + 0 + + + resamp_ratio + 1.0 + + + + grgsm_msg_to_tag + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (192, 193) + + + _rotation + 0 + + + id + grgsm_msg_to_tag_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + gsm_controlled_rotator_cc + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (608, 209) + + + _rotation + 0 + + + id + gsm_controlled_rotator_cc_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + phase_inc + ppm/1.0e6*2*math.pi*fc/samp_rate_in + + + samp_rate + samp_rate_out + + + + import + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (11, 125) + + + _rotation + 0 + + + id + math_imp + + + import + import math + + + + pad_sink + + comment + + + + _enabled + True + + + _coordinate + (784, 220) + + + _rotation + 0 + + + id + pad_sink_1 + + + type + complex + + + label + out + + + num_streams + 1 + + + optional + False + + + vlen + 1 + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (32, 188) + + + _rotation + 0 + + + id + pad_source_0 + + + label + in + + + num_streams + 1 + + + optional + False + + + type + complex + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (496, 19) + + + _rotation + 0 + + + id + ppm + + + label + ppm + + + short_id + + + + type + eng_float + + + value + 0 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (368, 19) + + + _rotation + 0 + + + id + samp_rate_in + + + label + samp_rate_in + + + short_id + + + + type + eng_float + + + value + 1625000.0/6.0*4.0 + + + + parameter + + alias + + + + comment + + + + _enabled + False + + + _coordinate + (592, 20) + + + _rotation + 0 + + + id + samp_rate_out + + + label + samp_rate_out + + + short_id + + + + type + eng_float + + + value + 1625000.0/6.0*4.0 + + + + ctrl + grgsm_msg_to_tag_0 + out + msg + + + grgsm_controlled_fractional_resampler_cc_0 + gsm_controlled_rotator_cc_0 + 0 + 0 + + + grgsm_msg_to_tag_0 + grgsm_controlled_fractional_resampler_cc_0 + 0 + 0 + + + gsm_controlled_rotator_cc_0 + pad_sink_1 + 0 + 0 + + + pad_source_0 + grgsm_msg_to_tag_0 + 0 + 0 + + -- cgit v1.2.3