From 1f04ebdb9a0aec3ff706ea45cd88cdf81adc41d1 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Wed, 31 Jul 2019 21:47:31 +0200 Subject: [PATCH] Added channel coding test flowgraph --- tmp/test_cc_enc.grc | 1099 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1099 insertions(+) create mode 100644 tmp/test_cc_enc.grc diff --git a/tmp/test_cc_enc.grc b/tmp/test_cc_enc.grc new file mode 100644 index 0000000..be54740 --- /dev/null +++ b/tmp/test_cc_enc.grc @@ -0,0 +1,1099 @@ + + + + Tue Jul 30 22:59:22 2019 + + options + + author + + + + window_size + + + + category + [GRC Hier Blocks] + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + qt_gui + + + hier_block_src_path + .: + + + id + top_block + + + max_nouts + 0 + + + qt_qss_theme + + + + realtime_scheduling + + + + run_command + {python} -u {filename} + + + run_options + prompt + + + run + True + + + sizing_mode + fixed + + + thread_safe_setters + + + + title + + + + placement + (0,0) + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (327, 11) + + + _rotation + 0 + + + id + MTU + + + value + 1000 + + + + variable_cc_encoder_def + + padding + True + + + comment + + + + k + 7 + + + dim1 + 1 + + + dim2 + 1 + + + _enabled + True + + + framebits + 8*(MTU+4)*2 + + + _coordinate + (423, 19) + + + _rotation + 0 + + + id + fec_enc + + + ndim + 0 + + + polys + [79,109] + + + rate + 2 + + + state_start + 0 + + + mode + fec.CC_TERMINATED + + + + variable_cc_decoder_def + + padding + True + + + comment + + + + k + 7 + + + dim1 + 1 + + + dim2 + 1 + + + _enabled + True + + + state_end + -1 + + + framebits + 8*(MTU+4)*2 + + + _coordinate + (631, 19) + + + _rotation + 0 + + + id + payload_dec + + + value + "ok" + + + ndim + 0 + + + polys + [79,109] + + + rate + 2 + + + state_start + 0 + + + mode + fec.CC_TERMINATED + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (8, 160) + + + _rotation + 0 + + + id + samp_rate + + + value + 32000 + + + + blocks_add_const_vxx + + alias + + + + comment + + + + const + -1 + + + affinity + + + + _enabled + True + + + _coordinate + (455, 515) + + + _rotation + 0 + + + id + blocks_add_const_vxx_0 + + + type + float + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + vlen + 1 + + + + blocks_char_to_float + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (303, 515) + + + _rotation + 0 + + + id + blocks_char_to_float_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + scale + 0.5 + + + vlen + 1 + + + + blocks_message_debug + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1134, 654) + + + _rotation + 0 + + + id + blocks_message_debug_0 + + + + blocks_pdu_to_tagged_stream + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (631, 387) + + + _rotation + 0 + + + id + blocks_pdu_to_tagged_stream_0 + + + type + byte + + + tag + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + blocks_repack_bits_bb + + k + 8 + + + l + 1 + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + endianness + gr.GR_LSB_FIRST + + + _coordinate + (95, 507) + + + _rotation + 0 + + + id + blocks_repack_bits_bb_0 + + + len_tag_key + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + align_output + False + + + + blocks_repack_bits_bb + + k + 1 + + + l + 8 + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + endianness + gr.GR_LSB_FIRST + + + _coordinate + (838, 507) + + + _rotation + 0 + + + id + blocks_repack_bits_bb_0_0 + + + len_tag_key + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + align_output + False + + + + blocks_tagged_stream_to_pdu + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (487, 291) + + + _rotation + 0 + + + id + blocks_tagged_stream_to_pdu_0 + + + type + byte + + + tag + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + blocks_tagged_stream_to_pdu + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1022, 515) + + + _rotation + 0 + + + id + blocks_tagged_stream_to_pdu_1_0_0 + + + type + byte + + + tag + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + blocks_throttle + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (335, 291) + + + _rotation + 0 + + + id + blocks_throttle_0_0 + + + ignoretag + True + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + samples_per_second + samp_rate + + + type + byte + + + vlen + 1 + + + + blocks_vector_source_x + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (119, 275) + + + _rotation + 0 + + + id + blocks_vector_source_x_0_0_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + type + byte + + + repeat + True + + + tags + tagged_streams.make_lengthtags((256,), (0,), "packet_len") + + + vlen + 1 + + + vector + list(range(256)) + + + + digital_crc32_async_bb + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (247, 387) + + + _rotation + 0 + + + id + digital_crc32_async_bb_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + check + False + + + + digital_crc32_async_bb + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (950, 658) + + + _rotation + 0 + + + id + digital_crc32_async_bb_0_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + check + True + + + + fec_async_encoder + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + encoder + fec_enc + + + _coordinate + (423, 379) + + + _rotation + 0 + + + id + fec_async_encoder_0 + + + mtu + MTU+5 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + packed + True + + + rev_pack + True + + + rev_unpack + True + + + + fec_extended_tagged_decoder + + ann + None + + + alias + + + + comment + + + + affinity + + + + decoder_list + payload_dec + + + _enabled + True + + + _coordinate + (583, 483) + + + _rotation + 0 + + + id + fec_extended_tagged_decoder_0 + + + lentagname + packet_len + + + mtu + 8*(MTU+4)*2 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + puncpat + '11' + + + value + fec_extended_decoder + + + + import + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (175, 11) + + + _rotation + 0 + + + id + import_0 + + + import + from gnuradio.digital.utils import tagged_streams + + + + blocks_add_const_vxx_0 + fec_extended_tagged_decoder_0 + 0 + 0 + + + blocks_char_to_float_0 + blocks_add_const_vxx_0 + 0 + 0 + + + blocks_pdu_to_tagged_stream_0 + blocks_repack_bits_bb_0 + 0 + 0 + + + blocks_repack_bits_bb_0 + blocks_char_to_float_0 + 0 + 0 + + + blocks_repack_bits_bb_0_0 + blocks_tagged_stream_to_pdu_1_0_0 + 0 + 0 + + + blocks_tagged_stream_to_pdu_0 + digital_crc32_async_bb_0 + pdus + in + + + blocks_tagged_stream_to_pdu_1_0_0 + digital_crc32_async_bb_0_0 + pdus + in + + + blocks_throttle_0_0 + blocks_tagged_stream_to_pdu_0 + 0 + 0 + + + blocks_vector_source_x_0_0_0 + blocks_throttle_0_0 + 0 + 0 + + + digital_crc32_async_bb_0 + fec_async_encoder_0 + out + in + + + digital_crc32_async_bb_0_0 + blocks_message_debug_0 + out + print_pdu + + + fec_async_encoder_0 + blocks_pdu_to_tagged_stream_0 + out + pdus + + + fec_extended_tagged_decoder_0 + blocks_repack_bits_bb_0_0 + 0 + 0 + +