From c1dbbe78c4fb048491de6e1a6541cc2c23a1be8d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Wed, 12 Dec 2018 21:11:31 +0100 Subject: [PATCH] Start with hierarchical blocks for mod and demod --- grc/hamnet70_demod.grc | 2297 ++++++++++++++++++++++++++++++++++++++++ grc/hamnet70_mod.grc | 1728 ++++++++++++++++++++++++++++++ grc/install.sh | 9 + 3 files changed, 4034 insertions(+) create mode 100644 grc/hamnet70_demod.grc create mode 100644 grc/hamnet70_mod.grc create mode 100755 grc/install.sh diff --git a/grc/hamnet70_demod.grc b/grc/hamnet70_demod.grc new file mode 100644 index 0000000..2257c3d --- /dev/null +++ b/grc/hamnet70_demod.grc @@ -0,0 +1,2297 @@ + + + + Sun Sep 23 17:42:06 2018 + + options + + author + + + + window_size + (3000,1500) + + + category + [Hamnet70] + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + hb + + + hier_block_src_path + .: + + + id + hamnet70_demod + + + 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 + (375, 11) + + + _rotation + 0 + + + id + MTU + + + value + 1000 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (646, 11) + + + _rotation + 0 + + + id + base_buffer_size + + + value + 32*MTU + + + + variable_cc_decoder_def + + padding + False + + + comment + + + + k + 7 + + + dim1 + 1 + + + dim2 + 1 + + + _enabled + True + + + state_end + -1 + + + framebits + 8*(MTU+4)*2 + + + _coordinate + (1468, 11) + + + _rotation + 0 + + + id + fec_dec + + + value + "ok" + + + ndim + 0 + + + polys + [79,109] + + + rate + 2 + + + state_start + 0 + + + mode + fec.CC_TERMINATED + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (299, 12) + + + _rotation + 0 + + + id + fft_len + + + value + 64 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (428, 84) + + + _rotation + 0 + + + id + frame_key + + + value + "frame_len" + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (493, 230) + + + _rotation + 0 + + + id + header_equalizer + + + value + digital.ofdm_equalizer_simpledfe(fft_len, header_mod.base(), occupied_carriers, pilot_carriers, pilot_symbols) + + + + variable + + comment + Same as header_format_tx! + + + _enabled + 1 + + + _coordinate + (1391, 691) + + + _rotation + 0 + + + id + header_format_rx + + + value + digital.packet_header_ofdm(occupied_carriers, 1, len_key, frame_key, num_key, header_mod.bits_per_symbol(), payload_mod.bits_per_symbol(), scramble) + + + + variable_constellation_rect + + comment + + + + const_points + [1, -1] + + + _enabled + 1 + + + _coordinate + (889, 4) + + + _rotation + 0 + + + id + header_mod + + + imag_sect + 2 + + + real_sect + 2 + + + rot_sym + 2 + + + soft_dec_lut + None + + + precision + 8 + + + sym_map + [0, 1] + + + w_imag_sect + 1 + + + w_real_sect + 1 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (323, 84) + + + _rotation + 0 + + + id + len_key + + + value + "packet_len" + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (210, 84) + + + _rotation + 0 + + + id + num_key + + + value + "packet_num" + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (210, 157) + + + _rotation + 0 + + + id + occupied_carriers + + + value + (range(-26, -21) + range(-20, -7) + range(-6, 0) + range(1, 7) + range(8, 21) + range(22, 27),) + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (679, 230) + + + _rotation + 0 + + + id + payload_equalizer + + + value + digital.ofdm_equalizer_simpledfe(fft_len, payload_mod.base(), occupied_carriers, pilot_carriers, pilot_symbols, 1) + + + + variable_constellation_rect + + comment + + + + const_points + [-1-1j, -1+1j, 1+1j, 1-1j] + + + _enabled + True + + + _coordinate + (1075, 4) + + + _rotation + 0 + + + id + payload_mod + + + imag_sect + 2 + + + real_sect + 2 + + + rot_sym + 4 + + + soft_dec_lut + None + + + precision + 8 + + + sym_map + [0, 1, 3, 2] + + + w_imag_sect + 1 + + + w_real_sect + 1 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (355, 157) + + + _rotation + 0 + + + id + pilot_carriers + + + value + ((-21,-7, 0, 7, 21),) + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (485, 157) + + + _rotation + 0 + + + id + pilot_symbols + + + value + ((1,-1,1,1,-1),) + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (525, 84) + + + _rotation + 0 + + + id + scramble + + + value + True + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (210, 230) + + + _rotation + 0 + + + id + sync_word1 + + + value + [0., 0., 0., 0., 0., 0., 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 0., 0., 0., 0., 0.] + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (355, 230) + + + _rotation + 0 + + + id + sync_word2 + + + value + [0, 0, 0, 0, 0, 0, -1, -1, -1, -1, 1, 1, -1, -1, -1, 1, -1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 0, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, -1, -1, -1, -1, 0, 0, 0, 0, 0] + + + + analog_frequency_modulator_fc + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (533, 368) + + + _rotation + 0 + + + id + analog_frequency_modulator_fc_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + sensitivity + -2.0/fft_len + + + + blocks_char_to_float + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1908, 934) + + + _rotation + 0 + + + id + blocks_char_to_float_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + scale + 1 + + + vlen + 1 + + + + blocks_delay + + alias + + + + comment + + + + affinity + + + + delay + fft_len+fft_len/4 + + + _enabled + 1 + + + _coordinate + (307, 456) + + + _rotation + 0 + + + id + blocks_delay_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + num_ports + 1 + + + type + complex + + + vlen + 1 + + + + blocks_multiply_xx + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (711, 477) + + + _rotation + 0 + + + id + blocks_multiply_xx_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + num_inputs + 2 + + + vlen + 1 + + + + blocks_repack_bits_bb + + k + payload_mod.bits_per_symbol() + + + l + 1 + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + endianness + gr.GR_LSB_FIRST + + + _coordinate + (1561, 926) + + + _rotation + 0 + + + id + blocks_repack_bits_bb_1 + + + len_tag_key + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + align_output + False + + + + blocks_tagged_stream_to_pdu + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (2070, 934) + + + _rotation + 0 + + + id + blocks_tagged_stream_to_pdu_1 + + + type + float + + + tag + packet_len + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_constellation_decoder_cb + + alias + + + + comment + + + + constellation + header_mod + + + affinity + + + + _enabled + True + + + _coordinate + (1164, 788) + + + _rotation + 0 + + + id + digital_constellation_decoder_cb_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_constellation_decoder_cb + + alias + + + + comment + + + + constellation + payload_mod + + + affinity + + + + _enabled + 1 + + + _coordinate + (1164, 934) + + + _rotation + 0 + + + id + digital_constellation_decoder_cb_0_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_crc32_async_bb + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (2491, 934) + + + _rotation + 0 + + + id + digital_crc32_async_bb_1 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + check + True + + + + digital_header_payload_demux + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (913, 359) + + + _rotation + 0 + + + guard_interval + fft_len/4 + + + header_len + 3 + + + header_padding + 0 + + + id + digital_header_payload_demux_0 + + + type + complex + + + items_per_symbol + fft_len + + + length_tag_key + "frame_len" + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + output_symbols + True + + + samp_rate + int(samp_rate) + + + special_tags + () + + + timing_tag_key + "rx_time" + + + trigger_tag_key + "" + + + + digital_map_bb + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1763, 934) + + + _rotation + 0 + + + id + digital_map_bb_1 + + + map + -1,1 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_map_bb + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1407, 934) + + + _rotation + 0 + + + id + digital_map_bb_1_0 + + + map + payload_mod.pre_diff_code() + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_ofdm_chanest_vcvc + + alias + + + + eq_noise_red_len + 0 + + + comment + + + + affinity + + + + _enabled + True + + + force_one_symbol + False + + + _coordinate + (436, 756) + + + _rotation + 0 + + + id + digital_ofdm_chanest_vcvc_0 + + + maxoutbuf + 0 + + + max_carr_offset + 3 + + + minoutbuf + 0 + + + n_data_symbols + 1 + + + sync_symbol1 + sync_word1 + + + sync_symbol2 + sync_word2 + + + + digital_ofdm_frame_equalizer_vcvc + + alias + + + + cp_len + fft_len/4 + + + comment + + + + affinity + + + + _enabled + True + + + equalizer + header_equalizer.base() + + + fft_len + fft_len + + + fixed_frame_len + 1 + + + _coordinate + (711, 748) + + + _rotation + 0 + + + id + digital_ofdm_frame_equalizer_header + + + len_tag_key + frame_key + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + propagate_channel_state + True + + + + digital_ofdm_frame_equalizer_vcvc + + alias + + + + cp_len + fft_len/4 + + + comment + + + + affinity + + + + _enabled + True + + + equalizer + payload_equalizer.base() + + + fft_len + fft_len + + + fixed_frame_len + 0 + + + _coordinate + (711, 893) + + + _rotation + 0 + + + id + digital_ofdm_frame_equalizer_payload + + + len_tag_key + frame_key + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + propagate_channel_state + True + + + + digital_ofdm_serializer_vcc + + alias + + + + carr_offset_key + "" + + + comment + + + + affinity + + + + _enabled + True + + + fft_len + fft_len + + + _coordinate + (930, 748) + + + _rotation + 0 + + + id + digital_ofdm_serializer_vcc_0 + + + input_is_shifted + True + + + len_tag_key + frame_key + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + occupied_carriers + occupied_carriers + + + packet_len_tag_key + + + + symbols_skipped + 0 + + + + digital_ofdm_serializer_vcc + + alias + + + + carr_offset_key + "" + + + comment + + + + affinity + + + + _enabled + True + + + fft_len + fft_len + + + _coordinate + (930, 893) + + + _rotation + 0 + + + id + digital_ofdm_serializer_vcc_0_0 + + + input_is_shifted + True + + + len_tag_key + frame_key + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + occupied_carriers + occupied_carriers + + + packet_len_tag_key + len_key + + + symbols_skipped + 1 + + + + digital_ofdm_sync_sc_cfb + + alias + + + + comment + + + + affinity + + + + cp_len + fft_len/4 + + + _enabled + True + + + fft_len + fft_len + + + _coordinate + (307, 368) + + + _rotation + 0 + + + id + digital_ofdm_sync_sc_cfb_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + use_even_carriers + False + + + threshold + 0.9 + + + + digital_packet_headerparser_b + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + header_formatter + header_format_rx.base() + + + _coordinate + (1391, 788) + + + _rotation + 0 + + + id + digital_packet_headerparser_b_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + fec_async_decoder + + alias + + + + comment + + + + affinity + + + + decoder + fec_dec + + + _enabled + True + + + _coordinate + (2280, 926) + + + _rotation + 0 + + + id + fec_async_decoder_0 + + + mtu + MTU+5 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + packed + True + + + rev_pack + True + + + + fft_vxx + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + fft_size + fft_len + + + forward + True + + + _coordinate + (242, 756) + + + _rotation + 0 + + + id + fft_vxx_0_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + nthreads + 1 + + + shift + True + + + window + + + + + fft_vxx + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + fft_size + fft_len + + + forward + True + + + _coordinate + (242, 901) + + + _rotation + 0 + + + id + fft_vxx_0_0_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + nthreads + 1 + + + shift + True + + + window + + + + + pad_sink + + comment + + + + _enabled + True + + + _coordinate + (2669, 934) + + + _rotation + 0 + + + id + pad_sink_0 + + + type + message + + + label + message_out + + + num_streams + 1 + + + optional + False + + + vlen + 1 + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (72, 384) + + + _rotation + 0 + + + id + pad_source_0 + + + label + baseband_in + + + num_streams + 1 + + + optional + False + + + type + complex + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (8, 93) + + + _rotation + 0 + + + id + samp_rate + + + label + Sampling Rate + + + short_id + + + + hide + none + + + type + + + + value + 200e3 + + + + virtual_sink + + comment + + + + _enabled + True + + + _coordinate + (1229, 408) + + + _rotation + 0 + + + id + virtual_sink_1 + + + stream_id + Demod-Header + + + + virtual_sink + + comment + + + + _enabled + True + + + _coordinate + (1229, 456) + + + _rotation + 0 + + + id + virtual_sink_1_0 + + + stream_id + Demod-Payload + + + + virtual_source + + comment + + + + _enabled + 1 + + + _coordinate + (40, 788) + + + _rotation + 0 + + + id + virtual_source_0_0_0 + + + stream_id + Demod-Header + + + + virtual_source + + comment + + + + _enabled + 1 + + + _coordinate + (40, 934) + + + _rotation + 0 + + + id + virtual_source_0_0_0_0 + + + stream_id + Demod-Payload + + + + analog_frequency_modulator_fc_0 + blocks_multiply_xx_0 + 0 + 0 + + + blocks_char_to_float_0 + blocks_tagged_stream_to_pdu_1 + 0 + 0 + + + blocks_delay_0 + blocks_multiply_xx_0 + 0 + 1 + + + blocks_multiply_xx_0 + digital_header_payload_demux_0 + 0 + 0 + + + blocks_repack_bits_bb_1 + digital_map_bb_1 + 0 + 0 + + + blocks_tagged_stream_to_pdu_1 + fec_async_decoder_0 + pdus + in + + + digital_constellation_decoder_cb_0 + digital_packet_headerparser_b_0 + 0 + 0 + + + digital_constellation_decoder_cb_0_0 + digital_map_bb_1_0 + 0 + 0 + + + digital_crc32_async_bb_1 + pad_sink_0 + out + in + + + digital_header_payload_demux_0 + virtual_sink_1 + 0 + 0 + + + digital_header_payload_demux_0 + virtual_sink_1_0 + 1 + 0 + + + digital_map_bb_1 + blocks_char_to_float_0 + 0 + 0 + + + digital_map_bb_1_0 + blocks_repack_bits_bb_1 + 0 + 0 + + + digital_ofdm_chanest_vcvc_0 + digital_ofdm_frame_equalizer_header + 0 + 0 + + + digital_ofdm_frame_equalizer_header + digital_ofdm_serializer_vcc_0 + 0 + 0 + + + digital_ofdm_frame_equalizer_payload + digital_ofdm_serializer_vcc_0_0 + 0 + 0 + + + digital_ofdm_serializer_vcc_0 + digital_constellation_decoder_cb_0 + 0 + 0 + + + digital_ofdm_serializer_vcc_0_0 + digital_constellation_decoder_cb_0_0 + 0 + 0 + + + digital_ofdm_sync_sc_cfb_0 + digital_header_payload_demux_0 + 1 + 1 + + + digital_ofdm_sync_sc_cfb_0 + analog_frequency_modulator_fc_0 + 0 + 0 + + + digital_packet_headerparser_b_0 + digital_header_payload_demux_0 + header_data + header_data + + + fec_async_decoder_0 + digital_crc32_async_bb_1 + out + in + + + fft_vxx_0_0 + digital_ofdm_chanest_vcvc_0 + 0 + 0 + + + fft_vxx_0_0_0 + digital_ofdm_frame_equalizer_payload + 0 + 0 + + + pad_source_0 + blocks_delay_0 + 0 + 0 + + + pad_source_0 + digital_ofdm_sync_sc_cfb_0 + 0 + 0 + + + virtual_source_0_0_0 + fft_vxx_0_0 + 0 + 0 + + + virtual_source_0_0_0_0 + fft_vxx_0_0_0 + 0 + 0 + + diff --git a/grc/hamnet70_mod.grc b/grc/hamnet70_mod.grc new file mode 100644 index 0000000..329ba13 --- /dev/null +++ b/grc/hamnet70_mod.grc @@ -0,0 +1,1728 @@ + + + + Mon Nov 19 21:21:40 2018 + + options + + author + + + + window_size + (3000,1500) + + + category + [Hamnet70] + + + comment + + + + description + + + + _enabled + True + + + _coordinate + (8, 8) + + + _rotation + 0 + + + generate_options + hb + + + hier_block_src_path + .: + + + id + hamnet70_mod + + + 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 + (404, 20) + + + _rotation + 0 + + + id + MTU + + + value + 1000 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (242, 246) + + + _rotation + 0 + + + id + base_buffer_size + + + value + 32*MTU + + + + variable_cc_encoder_def + + padding + False + + + comment + + + + k + 7 + + + dim1 + 1 + + + dim2 + 1 + + + _enabled + True + + + framebits + 8*(MTU+4)*2 + + + _coordinate + (1180, 36) + + + _rotation + 0 + + + id + fec_enc + + + ndim + 0 + + + polys + [79,109] + + + rate + 2 + + + state_start + 0 + + + mode + fec.CC_TERMINATED + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (331, 20) + + + _rotation + 0 + + + id + fft_len + + + value + 64 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (347, 319) + + + _rotation + 0 + + + id + frame_key + + + value + "frame_len" + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (816, 343) + + + _rotation + 0 + + + id + header_format_tx + + + value + digital.packet_header_ofdm(occupied_carriers, 1, len_key, frame_key, num_key, header_mod.bits_per_symbol(), payload_mod.bits_per_symbol(), scramble) + + + + variable_constellation_rect + + comment + + + + const_points + [1, -1] + + + _enabled + True + + + _coordinate + (792, 28) + + + _rotation + 0 + + + id + header_mod + + + imag_sect + 2 + + + real_sect + 2 + + + rot_sym + 2 + + + soft_dec_lut + None + + + precision + 8 + + + sym_map + [0, 1] + + + w_imag_sect + 1 + + + w_real_sect + 1 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (242, 319) + + + _rotation + 0 + + + id + len_key + + + value + "packet_len" + + + + variable + + comment + + + + _enabled + 1 + + + _coordinate + (444, 319) + + + _rotation + 0 + + + id + num_key + + + value + "packet_num" + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (242, 101) + + + _rotation + 0 + + + id + occupied_carriers + + + value + (range(-26, -21) + range(-20, -7) + range(-6, 0) + range(1, 7) + range(8, 21) + range(22, 27),) + + + + variable_constellation_rect + + comment + + + + const_points + [-1-1j, -1+1j, 1+1j, 1-1j] + + + _enabled + True + + + _coordinate + (978, 28) + + + _rotation + 0 + + + id + payload_mod + + + imag_sect + 2 + + + real_sect + 2 + + + rot_sym + 4 + + + soft_dec_lut + None + + + precision + 8 + + + sym_map + [0, 1, 3, 2] + + + w_imag_sect + 1 + + + w_real_sect + 1 + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (388, 101) + + + _rotation + 0 + + + id + pilot_carriers + + + value + ((-21,-7, 0, 7, 21),) + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (517, 101) + + + _rotation + 0 + + + id + pilot_symbols + + + value + ((1,-1,1,1,-1),) + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (477, 20) + + + _rotation + 0 + + + id + scramble + + + value + True + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (242, 173) + + + _rotation + 0 + + + id + sync_word1 + + + value + [0., 0., 0., 0., 0., 0., 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., -1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., -1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 1.41421356, 0., 0., 0., 0., 0., 0.] + + + + variable + + comment + + + + _enabled + True + + + _coordinate + (388, 173) + + + _rotation + 0 + + + id + sync_word2 + + + value + [0, 0, 0, 0, 0, 0, -1, -1, -1, -1, 1, 1, -1, -1, -1, 1, -1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 0, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, -1, -1, -1, -1, 0, 0, 0, 0, 0] + + + + blocks_multiply_const_vxx + + alias + + + + comment + + + + const + 0.05 + + + affinity + + + + _enabled + True + + + _coordinate + (800, 699) + + + _rotation + 0 + + + id + blocks_multiply_const_vxx_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + vlen + 1 + + + + blocks_pdu_to_tagged_stream + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (574, 497) + + + _rotation + 0 + + + id + blocks_pdu_to_tagged_stream_0 + + + type + byte + + + tag + packet_len + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + + blocks_repack_bits_bb + + k + 8 + + + l + payload_mod.bits_per_symbol() + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + endianness + gr.GR_LSB_FIRST + + + _coordinate + (1035, 489) + + + _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 + header_mod.bits_per_symbol() + + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + endianness + gr.GR_LSB_FIRST + + + _coordinate + (1035, 408) + + + _rotation + 0 + + + id + blocks_repack_bits_bb_0_0 + + + len_tag_key + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + align_output + False + + + + blocks_tagged_stream_mux + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1722, 444) + + + _rotation + 0 + + + id + blocks_tagged_stream_mux_0 + + + type + complex + + + lengthtagname + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + ninputs + 2 + + + tag_preserve_head_pos + 0 + + + vlen + 1 + + + + digital_chunks_to_symbols_xx + + alias + + + + comment + + + + affinity + + + + dimension + 1 + + + _enabled + 1 + + + _coordinate + (1480, 489) + + + _rotation + 0 + + + id + digital_chunks_to_symbols_xx_0 + + + in_type + byte + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + num_ports + 1 + + + out_type + complex + + + symbol_table + payload_mod.points() + + + + digital_chunks_to_symbols_xx + + alias + + + + comment + + + + affinity + + + + dimension + 1 + + + _enabled + 1 + + + _coordinate + (1480, 408) + + + _rotation + 0 + + + id + digital_chunks_to_symbols_xx_0_0 + + + in_type + byte + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + num_ports + 1 + + + out_type + complex + + + symbol_table + header_mod.points() + + + + digital_crc32_async_bb + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (202, 497) + + + _rotation + 0 + + + id + digital_crc32_async_bb_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + check + False + + + + digital_map_bb + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1237, 497) + + + _rotation + 0 + + + id + digital_map_bb_0 + + + map + payload_mod.pre_diff_code() + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_map_bb + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + _coordinate + (1237, 416) + + + _rotation + 0 + + + id + digital_map_bb_0_0 + + + map + header_mod.pre_diff_code() + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + digital_ofdm_carrier_allocator_cvc + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + fft_len + fft_len + + + _coordinate + (186, 659) + + + _rotation + 0 + + + id + digital_ofdm_carrier_allocator_cvc_0 + + + len_tag_key + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + occupied_carriers + occupied_carriers + + + pilot_carriers + pilot_carriers + + + pilot_symbols + pilot_symbols + + + sync_words + (sync_word1, sync_word2) + + + + digital_ofdm_cyclic_prefixer + + alias + + + + cp_len + fft_len/4 + + + comment + + + + affinity + + + + _enabled + 1 + + + input_size + fft_len + + + _coordinate + (606, 675) + + + _rotation + 0 + + + id + digital_ofdm_cyclic_prefixer_0 + + + tagname + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + 2*base_buffer_size + + + rolloff + fft_len/4 + + + + digital_packet_headergenerator_bb + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + header_formatter + header_format_tx.base() + + + _coordinate + (816, 408) + + + _rotation + 0 + + + id + digital_packet_headergenerator_bb_0 + + + len_tag_key + "packet_len" + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + + fec_async_encoder + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + encoder + fec_enc + + + _coordinate + (372, 489) + + + _rotation + 0 + + + id + fec_async_encoder_0 + + + mtu + MTU+5 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + packed + True + + + rev_pack + True + + + rev_unpack + True + + + + fft_vxx + + alias + + + + comment + + + + affinity + + + + _enabled + 1 + + + fft_size + fft_len + + + forward + False + + + _coordinate + (404, 667) + + + _rotation + 0 + + + id + fft_vxx_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + base_buffer_size + + + nthreads + 1 + + + shift + True + + + window + + + + + pad_sink + + comment + + + + _enabled + True + + + _coordinate + (962, 683) + + + _rotation + 0 + + + id + pad_sink_0 + + + type + complex + + + label + baseband_out + + + num_streams + 1 + + + optional + False + + + vlen + 1 + + + + pad_source + + comment + + + + _enabled + True + + + _coordinate + (16, 481) + + + _rotation + 0 + + + id + pad_source_0 + + + label + packet_in + + + num_streams + 1 + + + optional + False + + + type + message + + + vlen + 1 + + + + parameter + + alias + + + + comment + + + + _enabled + True + + + _coordinate + (8, 101) + + + _rotation + 0 + + + id + samp_rate_0 + + + label + Sampling Rate + + + short_id + + + + hide + none + + + type + + + + value + 200e3 + + + + virtual_sink + + comment + + + + _enabled + 1 + + + _coordinate + (1941, 456) + + + _rotation + 0 + + + id + virtual_sink_0 + + + stream_id + Pre-OFDM + + + + virtual_source + + comment + + + + _enabled + 1 + + + _coordinate + (16, 699) + + + _rotation + 0 + + + id + virtual_source_0 + + + stream_id + Pre-OFDM + + + + blocks_multiply_const_vxx_0 + pad_sink_0 + 0 + 0 + + + blocks_pdu_to_tagged_stream_0 + blocks_repack_bits_bb_0 + 0 + 0 + + + blocks_pdu_to_tagged_stream_0 + digital_packet_headergenerator_bb_0 + 0 + 0 + + + blocks_repack_bits_bb_0 + digital_map_bb_0 + 0 + 0 + + + blocks_repack_bits_bb_0_0 + digital_map_bb_0_0 + 0 + 0 + + + blocks_tagged_stream_mux_0 + virtual_sink_0 + 0 + 0 + + + digital_chunks_to_symbols_xx_0 + blocks_tagged_stream_mux_0 + 0 + 1 + + + digital_chunks_to_symbols_xx_0_0 + blocks_tagged_stream_mux_0 + 0 + 0 + + + digital_crc32_async_bb_0 + fec_async_encoder_0 + out + in + + + digital_map_bb_0 + digital_chunks_to_symbols_xx_0 + 0 + 0 + + + digital_map_bb_0_0 + digital_chunks_to_symbols_xx_0_0 + 0 + 0 + + + digital_ofdm_carrier_allocator_cvc_0 + fft_vxx_0 + 0 + 0 + + + digital_ofdm_cyclic_prefixer_0 + blocks_multiply_const_vxx_0 + 0 + 0 + + + digital_packet_headergenerator_bb_0 + blocks_repack_bits_bb_0_0 + 0 + 0 + + + fec_async_encoder_0 + blocks_pdu_to_tagged_stream_0 + out + pdus + + + fft_vxx_0 + digital_ofdm_cyclic_prefixer_0 + 0 + 0 + + + pad_source_0 + digital_crc32_async_bb_0 + out + in + + + virtual_source_0 + digital_ofdm_carrier_allocator_cvc_0 + 0 + 0 + + diff --git a/grc/install.sh b/grc/install.sh new file mode 100755 index 0000000..d04d6d5 --- /dev/null +++ b/grc/install.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +for f in *.grc +do + echo Building $f ... + grcc $f +done