From 8bffcf7faf5e97fabd48431638d4a7e12243fe56 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Thu, 4 Oct 2018 14:10:06 +0200 Subject: [PATCH] update flow graphs (broken) --- examples/wifi_loopback.grc | 2270 ++++++-------------------------- examples/wifi_phy_hier.grc | 2531 ++++++++---------------------------- 2 files changed, 943 insertions(+), 3858 deletions(-) diff --git a/examples/wifi_loopback.grc b/examples/wifi_loopback.grc index ae8ee3f..c58f9cb 100644 --- a/examples/wifi_loopback.grc +++ b/examples/wifi_loopback.grc @@ -1,1855 +1,415 @@ - - - - Sat Feb 1 18:28:19 2014 - - options - - author - - - - window_size - 1280, 1024 - - - category - Custom - - - comment - - - - description - - - - _enabled - True - - - _coordinate - (16, 12) - - - _rotation - 0 - - - generate_options - qt_gui - - - hier_block_src_path - .: - - - id - wifi_loopback - - - max_nouts - 0 - - - qt_qss_theme - - - - realtime_scheduling - - - - run_command - {python} -u {filename} - - - run_options - prompt - - - run - True - - - thread_safe_setters - - - - title - - - - - variable_qtgui_chooser - - comment - - - - value - 0 - - - _enabled - True - - - _coordinate - (192, 8) - - - gui_hint - 0,0,1,1 - - - _rotation - 0 - - - id - chan_est - - - label0 - - - - label1 - - - - label2 - - - - label3 - - - - label4 - - - - label - - - - labels - ["LS", "LMS", "STA", "Linear Comb"] - - - num_opts - 0 - - - option0 - 0 - - - option1 - 1 - - - option2 - 2 - - - option3 - 3 - - - option4 - 4 - - - options - [ieee802_11.LS, ieee802_11.LMS, ieee802_11.STA, ieee802_11.COMB] - - - orient - Qt.QHBoxLayout - - - type - int - - - widget - combo_box - - - - variable_qtgui_chooser - - comment - - - - value - 0 - - - _enabled - True - - - _coordinate - (376, 8) - - - gui_hint - 0,1,1,1 - - - _rotation - 0 - - - id - encoding - - - label0 - - - - label1 - - - - label2 - - - - label3 - - - - label4 - - - - label - - - - labels - ["BPSK 1/2", "BPSK 3/4", "QPSK 1/2", "QPSK 3/4", "16QAM 1/2", "16QAM 3/4", "64QAM 2/3", "64QAM 3/4"] - - - num_opts - 0 - - - option0 - 0 - - - option1 - 1 - - - option2 - 2 - - - option3 - 3 - - - option4 - 4 - - - options - [0, 1, 2, 3, 4, 5, 6, 7] - - - orient - Qt.QHBoxLayout - - - type - int - - - widget - combo_box - - - - variable_qtgui_range - - comment - - - - value - 0 - - - _enabled - True - - - _coordinate - (688, 8) - - - gui_hint - 3,1,1,1 - - - _rotation - 0 - - - id - epsilon - - - label - - - - min_len - 200 - - - orient - Qt.Horizontal - - - start - -20e-6 - - - step - 1e-6 - - - stop - 20e-6 - - - rangeType - float - - - widget - counter_slider - - - - variable_qtgui_range - - comment - - - - value - 300 - - - _enabled - True - - - _coordinate - (808, 8) - - - gui_hint - 2,1,1,1 - - - _rotation - 0 - - - id - interval - - - label - - - - min_len - 200 - - - orient - Qt.Horizontal - - - start - 10 - - - step - 1 - - - stop - 1000 - - - rangeType - int - - - widget - counter_slider - - - - variable - - comment - - - - _enabled - True - - - _coordinate - (16, 76) - - - _rotation - 0 - - - id - out_buf_size - - - value - 96000 - - - - variable_qtgui_range - - comment - - - - value - 500 - - - _enabled - True - - - _coordinate - (560, 8) - - - gui_hint - 3,0,1,1 - - - _rotation - 0 - - - id - pdu_length - - - label - - - - min_len - 200 - - - orient - Qt.Horizontal - - - start - 0 - - - step - 1 - - - stop - 1500 - - - rangeType - int - - - widget - counter_slider - - - - variable_qtgui_range - - comment - - - - value - 15 - - - _enabled - True - - - _coordinate - (936, 8) - - - gui_hint - 2,0,1,1 - - - _rotation - 0 - - - id - snr - - - label - - - - min_len - 200 - - - orient - Qt.Horizontal - - - start - -15 - - - step - 0.1 - - - stop - 30 - - - rangeType - float - - - widget - counter_slider - - - - blocks_file_sink - - append - False - - - alias - - - - comment - - - - affinity - - - - _enabled - False - - - file - /tmp/wifi.bin - - - _coordinate - (144, 259) - - - _rotation - 180 - - - id - blocks_file_sink_0 - - - type - byte - - - unbuffered - True - - - vlen - 1 - - - - blocks_message_strobe - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (488, 171) - - - _rotation - 0 - - - id - blocks_message_strobe_0 - - - maxoutbuf - 0 - - - msg - pmt.intern("".join("x" for i in range(pdu_length))) - - - minoutbuf - 0 - - - period - interval - - - - blocks_multiply_const_vxx - - alias - - - - comment - - - - const - (10**(snr/10.0))**.5 - - - affinity - - - - _enabled - True - - - _coordinate - (744, 740) - - - _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 - True - - - _coordinate - (124, 448) - - - _rotation - 270 - - - id - blocks_pdu_to_tagged_stream_0 - - - type - float - - - tag - packet_len - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - blocks_pdu_to_tagged_stream - - alias - - - - comment - - - - affinity - - - - _enabled - 1 - - - _coordinate - (512, 404) - - - _rotation - 180 - - - id - blocks_pdu_to_tagged_stream_0_0 - - - type - complex - - - tag - packet_len - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - channels_channel_model - - alias - - - - block_tags - False - - - comment - - - - affinity - - - - _enabled - 1 - - - epsilon - 1.0 - - - freq_offset - epsilon * 5.89e9 / 10e6 - - - _coordinate - (912, 712) - - - _rotation - 0 - - - id - channels_channel_model_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - noise_voltage - 1 - - - seed - 0 - - - taps - 1.0 - - - - foo_packet_pad2 - - alias - - - - comment - - - - affinity - - - - debug - False - - - delay_sec - 0.001 - - - delay - False - - - _enabled - True - - - _coordinate - (568, 712) - - - _rotation - 0 - - - id - foo_packet_pad2_0 - - - maxoutbuf - 0 - - - minoutbuf - out_buf_size - - - pad_front - 500 - - - pad_tail - 0 - - - - foo_wireshark_connector - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - False - - - _coordinate - (352, 267) - - - _rotation - 180 - - - id - foo_wireshark_connector_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - tech - 127 - - - - ieee802_11_mac - - bss_mac - [0xff, 0xff, 0xff, 0xff, 0xff, 0xff] - - - alias - - - - comment - - - - affinity - - - - dst_mac - [0x42, 0x42, 0x42, 0x42, 0x42, 0x42] - - - _enabled - True - - - _coordinate - (736, 179) - - - _rotation - 0 - - - id - ieee802_11_mac_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - src_mac - [0x23, 0x23, 0x23, 0x23, 0x23, 0x23] - - - - ieee802_11_parse_mac - - alias - - - - comment - - - - affinity - - - - debug - True - - - _enabled - True - - - _coordinate - (288, 364) - - - _rotation - 180 - - - id - ieee802_11_parse_mac_0 - - - log - False - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - pfb_arb_resampler_xxx - - alias - - - - comment - - - - affinity - - - - _enabled - 1 - - - _coordinate - (1064, 464) - - - _rotation - 90 - - - id - pfb_arb_resampler_xxx_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - nfilts - 32 - - - rrate - 1+epsilon - - - samp_delay - 0 - - - atten - 100 - - - taps - - - - type - ccf - - - - qtgui_const_sink_x - - autoscale - False - - - axislabels - True - - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (420, 512) - - - gui_hint - 1,0,1,2 - - - _rotation - 270 - - - grid - False - - - id - qtgui_const_sink_x_0 - - - legend - True - - - alpha1 - 1.0 - - - color1 - "blue" - - - label1 - - - - marker1 - 0 - - - style1 - 0 - - - width1 - 1 - - - alpha10 - 1.0 - - - color10 - "red" - - - label10 - - - - marker10 - 0 - - - style10 - 0 - - - width10 - 1 - - - alpha2 - 1.0 - - - color2 - "red" - - - label2 - - - - marker2 - 0 - - - style2 - 0 - - - width2 - 1 - - - alpha3 - 1.0 - - - color3 - "red" - - - label3 - - - - marker3 - 0 - - - style3 - 0 - - - width3 - 1 - - - alpha4 - 1.0 - - - color4 - "red" - - - label4 - - - - marker4 - 0 - - - style4 - 0 - - - width4 - 1 - - - alpha5 - 1.0 - - - color5 - "red" - - - label5 - - - - marker5 - 0 - - - style5 - 0 - - - width5 - 1 - - - alpha6 - 1.0 - - - color6 - "red" - - - label6 - - - - marker6 - 0 - - - style6 - 0 - - - width6 - 1 - - - alpha7 - 1.0 - - - color7 - "red" - - - label7 - - - - marker7 - 0 - - - style7 - 0 - - - width7 - 1 - - - alpha8 - 1.0 - - - color8 - "red" - - - label8 - - - - marker8 - 0 - - - style8 - 0 - - - width8 - 1 - - - alpha9 - 1.0 - - - color9 - "red" - - - label9 - - - - marker9 - 0 - - - style9 - 0 - - - width9 - 1 - - - name - "" - - - nconnections - 1 - - - size - 48*10 - - - tr_chan - 0 - - - tr_level - 0.0 - - - tr_mode - qtgui.TRIG_MODE_FREE - - - tr_slope - qtgui.TRIG_SLOPE_POS - - - tr_tag - "" - - - type - complex - - - update_time - 0.10 - - - xmax - 2 - - - xmin - -2 - - - ymax - 2 - - - ymin - -2 - - - - qtgui_number_sink - - autoscale - False - - - avg - 0.05 - - - alias - - - - comment - - - - affinity - - - - _enabled - 1 - - - _coordinate - (192, 628) - - - gui_hint - - - - _rotation - 0 - - - graph_type - qtgui.NUM_GRAPH_NONE - - - id - qtgui_number_sink_0 - - - type - float - - - color1 - ("black", "black") - - - factor1 - 1 - - - label1 - Error Rate - - - unit1 - Percent - - - color10 - ("black", "black") - - - factor10 - 1 - - - label10 - - - - unit10 - - - - color2 - ("black", "black") - - - factor2 - 1 - - - label2 - - - - unit2 - - - - color3 - ("black", "black") - - - factor3 - 1 - - - label3 - - - - unit3 - - - - color4 - ("black", "black") - - - factor4 - 1 - - - label4 - - - - unit4 - - - - color5 - ("black", "black") - - - factor5 - 1 - - - label5 - - - - unit5 - - - - color6 - ("black", "black") - - - factor6 - 1 - - - label6 - - - - unit6 - - - - color7 - ("black", "black") - - - factor7 - 1 - - - label7 - - - - unit7 - - - - color8 - ("black", "black") - - - factor8 - 1 - - - label8 - - - - unit8 - - - - color9 - ("black", "black") - - - factor9 - 1 - - - label9 - - - - unit9 - - - - max - 100 - - - min - 0 - - - name - "" - - - nconnections - 1 - - - update_time - 0.10 - - - - wifi_phy_hier - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (792, 376) - - - _rotation - 180 - - - id - wifi_phy_hier_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - bandwidth - 10e6 - - - chan_est - chan_est - - - encoding - encoding - - - frequency - 5.89e9 - - - sensitivity - 0.56 - - - - blocks_message_strobe_0 - ieee802_11_mac_0 - strobe - app in - - - blocks_multiply_const_vxx_0 - channels_channel_model_0 - 0 - 0 - - - blocks_pdu_to_tagged_stream_0 - qtgui_number_sink_0 - 0 - 0 - - - blocks_pdu_to_tagged_stream_0_0 - qtgui_const_sink_x_0 - 0 - 0 - - - channels_channel_model_0 - pfb_arb_resampler_xxx_0 - 0 - 0 - - - foo_packet_pad2_0 - blocks_multiply_const_vxx_0 - 0 - 0 - - - foo_wireshark_connector_0 - blocks_file_sink_0 - 0 - 0 - - - ieee802_11_mac_0 - wifi_phy_hier_0 - phy out - mac_in - - - ieee802_11_parse_mac_0 - blocks_pdu_to_tagged_stream_0 - fer - pdus - - - pfb_arb_resampler_xxx_0 - wifi_phy_hier_0 - 0 - 0 - - - wifi_phy_hier_0 - blocks_pdu_to_tagged_stream_0_0 - carrier - pdus - - - wifi_phy_hier_0 - foo_wireshark_connector_0 - mac_out - in - - - wifi_phy_hier_0 - ieee802_11_parse_mac_0 - mac_out - in - - - wifi_phy_hier_0 - foo_packet_pad2_0 - 0 - 0 - - +options: + parameters: + category: Custom + generate_options: qt_gui + hier_block_src_path: '.:' + id: wifi_loopback + max_nouts: '0' + placement: (0,0) + run: 'True' + run_command: '{python} -u {filename}' + run_options: prompt + sizing_mode: fixed + window_size: 1280, 1024 + states: + coordinate: [16, 12] + rotation: 0 + state: enabled + +blocks: +- name: chan_est + id: variable_qtgui_chooser + parameters: + gui_hint: 0,0,1,1 + labels: '["LS", "LMS", "STA", "Linear Comb"]' + num_opts: '0' + option1: '1' + option2: '2' + option3: '3' + option4: '4' + options: '[ieee802_11.LS, ieee802_11.LMS, ieee802_11.STA, ieee802_11.COMB]' + orient: Qt.QHBoxLayout + type: int + value: '0' + widget: combo_box + states: + coordinate: [192, 8] + rotation: 0 + state: enabled +- name: encoding + id: variable_qtgui_chooser + parameters: + gui_hint: 0,1,1,1 + labels: '["BPSK 1/2", "BPSK 3/4", "QPSK 1/2", "QPSK 3/4", "16QAM 1/2", "16QAM + 3/4", "64QAM 2/3", "64QAM 3/4"]' + num_opts: '0' + option1: '1' + option2: '2' + option3: '3' + option4: '4' + options: '[0, 1, 2, 3, 4, 5, 6, 7]' + orient: Qt.QHBoxLayout + type: int + value: '0' + widget: combo_box + states: + coordinate: [376, 8] + rotation: 0 + state: enabled +- name: epsilon + id: variable_qtgui_range + parameters: + gui_hint: 3,1,1,1 + min_len: '200' + orient: Qt.Horizontal + rangeType: float + start: -20e-6 + step: 1e-6 + stop: 20e-6 + value: '0' + widget: counter_slider + states: + coordinate: [688, 8] + rotation: 0 + state: enabled +- name: interval + id: variable_qtgui_range + parameters: + gui_hint: 2,1,1,1 + min_len: '200' + orient: Qt.Horizontal + rangeType: int + start: '10' + step: '1' + stop: '1000' + value: '300' + widget: counter_slider + states: + coordinate: [808, 8] + rotation: 0 + state: enabled +- name: out_buf_size + id: variable + parameters: + value: '96000' + states: + coordinate: [16, 76] + rotation: 0 + state: enabled +- name: pdu_length + id: variable_qtgui_range + parameters: + gui_hint: 3,0,1,1 + min_len: '200' + orient: Qt.Horizontal + rangeType: int + start: '0' + step: '1' + stop: '1500' + value: '10' + widget: counter_slider + states: + coordinate: [560, 8] + rotation: 0 + state: enabled +- name: snr + id: variable_qtgui_range + parameters: + gui_hint: 2,0,1,1 + min_len: '200' + orient: Qt.Horizontal + rangeType: float + start: '-15' + step: '0.1' + stop: '30' + value: '15' + widget: counter_slider + states: + coordinate: [936, 8] + rotation: 0 + state: enabled +- name: blocks_file_sink_0 + id: blocks_file_sink + parameters: + append: 'False' + file: /tmp/wifi.bin + type: byte + unbuffered: 'True' + vlen: '1' + states: + coordinate: [144, 259] + rotation: 180 + state: disabled +- name: blocks_message_debug_0 + id: blocks_message_debug + parameters: {} + states: + coordinate: [744, 304.0] + rotation: 0 + state: true +- name: blocks_message_strobe_0 + id: blocks_message_strobe + parameters: + maxoutbuf: '0' + minoutbuf: '0' + msg: pmt.intern("".join("x" for i in range(pdu_length))) + period: interval + states: + coordinate: [488, 171] + rotation: 0 + state: enabled +- name: blocks_multiply_const_xx_0 + id: blocks_multiply_const_xx + parameters: + const: (10**(snr/10.0))**.5 + type: complex + vlen: '1' + states: + coordinate: [704, 732.0] + rotation: 0 + state: true +- name: blocks_pdu_to_tagged_stream_0 + id: blocks_pdu_to_tagged_stream + parameters: + maxoutbuf: '0' + minoutbuf: '0' + tag: packet_len + type: float + states: + coordinate: [124, 448] + rotation: 270 + state: disabled +- name: blocks_pdu_to_tagged_stream_0_0 + id: blocks_pdu_to_tagged_stream + parameters: + maxoutbuf: '0' + minoutbuf: '0' + tag: packet_len + type: complex + states: + coordinate: [464, 404.0] + rotation: 180 + state: disabled +- name: channels_channel_model_0 + id: channels_channel_model + parameters: + block_tags: 'False' + epsilon: '1.0' + freq_offset: epsilon * 5.89e9 / 10e6 + maxoutbuf: '0' + minoutbuf: '0' + noise_voltage: '1' + seed: '0' + taps: '1.0' + states: + coordinate: [912, 712] + rotation: 0 + state: enabled +- name: foo_packet_pad2_0 + id: foo_packet_pad2 + parameters: + debug: 'False' + delay: 'False' + delay_sec: '0.001' + maxoutbuf: '0' + minoutbuf: out_buf_size * 10 + pad_front: '500' + pad_tail: '0' + states: + coordinate: [544, 724.0] + rotation: 0 + state: enabled +- name: foo_wireshark_connector_0 + id: foo_wireshark_connector + parameters: + debug: 'False' + maxoutbuf: '0' + minoutbuf: '0' + tech: '127' + states: + coordinate: [352, 267] + rotation: 180 + state: disabled +- name: ieee802_11_mac_0 + id: ieee802_11_mac + parameters: + bss_mac: '[0xff, 0xff, 0xff, 0xff, 0xff, 0xff]' + dst_mac: '[0x42, 0x42, 0x42, 0x42, 0x42, 0x42]' + maxoutbuf: '0' + minoutbuf: '0' + src_mac: '[0x23, 0x23, 0x23, 0x23, 0x23, 0x23]' + states: + coordinate: [736, 179] + rotation: 0 + state: enabled +- name: ieee802_11_parse_mac_0 + id: ieee802_11_parse_mac + parameters: + debug: 'True' + log: 'True' + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [288, 364] + rotation: 180 + state: enabled +- name: pfb_arb_resampler_xxx_0 + id: pfb_arb_resampler_xxx + parameters: + atten: '100' + maxoutbuf: '0' + minoutbuf: '0' + nfilts: '32' + rrate: 1+epsilon + samp_delay: '0' + type: ccf + states: + coordinate: [1064, 464] + rotation: 90 + state: enabled +- name: qtgui_const_sink_x_0 + id: qtgui_const_sink_x + parameters: + alpha1: '1.0' + alpha10: '1.0' + alpha2: '1.0' + alpha3: '1.0' + alpha4: '1.0' + alpha5: '1.0' + alpha6: '1.0' + alpha7: '1.0' + alpha8: '1.0' + alpha9: '1.0' + autoscale: 'False' + axislabels: 'True' + color1: '"blue"' + color10: '"red"' + color2: '"red"' + color3: '"red"' + color4: '"red"' + color5: '"red"' + color6: '"red"' + color7: '"red"' + color8: '"red"' + color9: '"red"' + grid: 'False' + gui_hint: 1,0,1,2 + legend: 'True' + marker1: '0' + marker10: '0' + marker2: '0' + marker3: '0' + marker4: '0' + marker5: '0' + marker6: '0' + marker7: '0' + marker8: '0' + marker9: '0' + name: '""' + nconnections: '1' + size: 48*10 + style1: '0' + style10: '0' + style2: '0' + style3: '0' + style4: '0' + style5: '0' + style6: '0' + style7: '0' + style8: '0' + style9: '0' + tr_chan: '0' + tr_level: '0.0' + tr_mode: qtgui.TRIG_MODE_FREE + tr_slope: qtgui.TRIG_SLOPE_POS + tr_tag: '""' + type: complex + update_time: '0.10' + width1: '1' + width10: '1' + width2: '1' + width3: '1' + width4: '1' + width5: '1' + width6: '1' + width7: '1' + width8: '1' + width9: '1' + xmax: '2' + xmin: '-2' + ymax: '2' + ymin: '-2' + states: + coordinate: [388.0, 512] + rotation: 270 + state: disabled +- name: qtgui_number_sink_0 + id: qtgui_number_sink + parameters: + autoscale: 'False' + avg: '0.05' + color1: ("black", "black") + color10: ("black", "black") + color2: ("black", "black") + color3: ("black", "black") + color4: ("black", "black") + color5: ("black", "black") + color6: ("black", "black") + color7: ("black", "black") + color8: ("black", "black") + color9: ("black", "black") + factor1: '1' + factor10: '1' + factor2: '1' + factor3: '1' + factor4: '1' + factor5: '1' + factor6: '1' + factor7: '1' + factor8: '1' + factor9: '1' + graph_type: qtgui.NUM_GRAPH_NONE + label1: Error Rate + max: '100' + min: '0' + name: '""' + nconnections: '1' + type: float + unit1: Percent + update_time: '0.10' + states: + coordinate: [192, 628] + rotation: 0 + state: disabled +- name: wifi_phy_hier_0 + id: wifi_phy_hier + parameters: + bandwidth: 10e6 + chan_est: chan_est + encoding: encoding + frequency: 5.9e6 + sensitivity: '0.56' + states: + coordinate: [736, 484.0] + rotation: 180 + state: true + +connections: +- [blocks_message_strobe_0, strobe, ieee802_11_mac_0, app in] +- [blocks_multiply_const_xx_0, '0', channels_channel_model_0, '0'] +- [blocks_pdu_to_tagged_stream_0, '0', qtgui_number_sink_0, '0'] +- [blocks_pdu_to_tagged_stream_0_0, '0', qtgui_const_sink_x_0, '0'] +- [channels_channel_model_0, '0', pfb_arb_resampler_xxx_0, '0'] +- [foo_packet_pad2_0, '0', blocks_multiply_const_xx_0, '0'] +- [foo_wireshark_connector_0, '0', blocks_file_sink_0, '0'] +- [ieee802_11_mac_0, phy out, wifi_phy_hier_0, mac_in] +- [ieee802_11_parse_mac_0, fer, blocks_pdu_to_tagged_stream_0, pdus] +- [pfb_arb_resampler_xxx_0, '0', wifi_phy_hier_0, '0'] +- [wifi_phy_hier_0, '0', foo_packet_pad2_0, '0'] +- [wifi_phy_hier_0, carrier, blocks_message_debug_0, print] +- [wifi_phy_hier_0, carrier, blocks_pdu_to_tagged_stream_0_0, pdus] +- [wifi_phy_hier_0, mac_out, foo_wireshark_connector_0, in] +- [wifi_phy_hier_0, mac_out, ieee802_11_parse_mac_0, in] + +metadata: + file_format: 1 diff --git a/examples/wifi_phy_hier.grc b/examples/wifi_phy_hier.grc index 8f0eefe..78e7248 100644 --- a/examples/wifi_phy_hier.grc +++ b/examples/wifi_phy_hier.grc @@ -1,2003 +1,528 @@ - - - - Fri Jul 18 08:46:33 2014 - - options - - author - - - - window_size - 1280, 1024 - - - category - [IEEE802.11] - - - comment - - - - description - - - - _enabled - True - - - _coordinate - (8, 8) - - - _rotation - 0 - - - generate_options - hb - - - hier_block_src_path - .: - - - id - wifi_phy_hier - - - max_nouts - 0 - - - qt_qss_theme - - - - realtime_scheduling - - - - run_command - {python} -u {filename} - - - run_options - prompt - - - run - True - - - thread_safe_setters - - - - title - WiFi PHY Hier - - - - variable - - comment - - - - _enabled - True - - - _coordinate - (400, 12) - - - _rotation - 0 - - - id - header_formatter - - - value - ieee802_11.signal_field() - - - - variable - - comment - - - - _enabled - True - - - _coordinate - (528, 12) - - - _rotation - 0 - - - id - max_symbols - - - value - 5 + 1 + ((16 + 1540 * 8 + 6) * 2) / 24 - - - - variable - - comment - - - - _enabled - True - - - _coordinate - (192, 12) - - - _rotation - 0 - - - id - sync_length - - - value - 320 - - - - variable - - comment - - - - _enabled - True - - - _coordinate - (296, 12) - - - _rotation - 0 - - - id - window_size - - - value - 48 - - - - parameter - - alias - - - - comment - - - - _enabled - True - - - _coordinate - (1008, 12) - - - _rotation - 0 - - - id - bandwidth - - - label - - - - short_id - - - - type - eng_float - - - value - 10e6 - - - - blocks_complex_to_mag - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (960, 584) - - - _rotation - 0 - - - id - blocks_complex_to_mag_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - vlen - 1 - - - - blocks_complex_to_mag_squared - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (592, 504) - - - _rotation - 0 - - - id - blocks_complex_to_mag_squared_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - vlen - 1 - - - - blocks_conjugate_cc - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (384, 600) - - - _rotation - 0 - - - id - blocks_conjugate_cc_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - blocks_delay - - alias - - - - comment - - - - affinity - - - - delay - sync_length - - - _enabled - True - - - _coordinate - (424, 764) - - - _rotation - 0 - - - id - blocks_delay_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_ports - 1 - - - type - complex - - - vlen - 1 - - - - blocks_delay - - alias - - - - comment - - - - affinity - - - - delay - 16 - - - _enabled - True - - - _coordinate - (232, 596) - - - _rotation - 0 - - - id - blocks_delay_0_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_ports - 1 - - - type - complex - - - vlen - 1 - - - - blocks_divide_xx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (1120, 656) - - - _rotation - 270 - - - id - blocks_divide_xx_0 - - - type - float - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_inputs - 2 - - - vlen - 1 - - - - blocks_multiply_xx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (608, 568) - - - _rotation - 0 - - - id - blocks_multiply_xx_0 - - - type - complex - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_inputs - 2 - - - vlen - 1 - - - - blocks_stream_to_vector - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (872, 748) - - - _rotation - 0 - - - id - blocks_stream_to_vector_0 - - - type - complex - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_items - 64 - - - vlen - 1 - - - - blocks_tagged_stream_mux - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (744, 256) - - - _rotation - 0 - - - id - blocks_tagged_stream_mux_0 - - - type - complex - - - lengthtagname - "packet_len" - - - maxoutbuf - 0 - - - minoutbuf - max_symbols * 48 * 8 - - - ninputs - 2 - - - tag_preserve_head_pos - 1 - - - vlen - 1 - - - - parameter - - alias - - - - comment - - - - _enabled - True - - - _coordinate - (640, 12) - - - _rotation - 0 - - - id - chan_est - - - label - - - - short_id - - - - type - - - - value - ieee802_11.LS - - - - digital_chunks_to_symbols_xx - - alias - - - - comment - - - - affinity - - - - dimension - 1 - - - _enabled - True - - - _coordinate - (504, 204) - - - _rotation - 0 - - - id - digital_chunks_to_symbols_xx_0 - - - in_type - byte - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - num_ports - 1 - - - out_type - complex - - - symbol_table - [-1, 1] - - - - digital_ofdm_carrier_allocator_cvc - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - fft_len - 64 - - - _coordinate - (1040, 232) - - - _rotation - 0 - - - id - digital_ofdm_carrier_allocator_cvc_0_0_0 - - - len_tag_key - "packet_len" - - - maxoutbuf - 0 - - - minoutbuf - max_symbols * 48 * 8 - - - occupied_carriers - (range(-26, -21) + range(-20, -7) + range(-6, 0) + range(1, 7) + range(8, 21) + range(22, 27),) - - - pilot_carriers - ((-21, -7, 7, 21), ) - - - pilot_symbols - ((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, -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), (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, 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), (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, 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), (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, -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), (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, 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), (-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, 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), (-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, 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), (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, -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), (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, 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), (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, -1, 1), (-1, -1, -1, 1), (-1, -1, -1, 1), (-1, -1, -1, 1)) - - - sync_words - ((0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (0, 0j, 0, 0j, 0, 0j, -1, 1j, -1, 1j, -1, 1j, -1, -1j, 1, 1j, 1, -1j, -1, 1j, 1, 1j, 1, 1j, 1, 1j, -1, (-0-1j), 1, -1j, -1, 1j, 0, -1j, 1, (-0-1j), 1, -1j, 1, 1j, -1, -1j, 1, (-0-1j), -1, 1j, 1, 1j, 1, 1j, 1, 1j, -1, -1j, 1, 1j, 1, -1j, -1, 0j, 0, 0j, 0, 0j), (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)) - - - - digital_ofdm_cyclic_prefixer - - alias - - - - cp_len - 16 - - - comment - - - - affinity - - - - _enabled - True - - - input_size - 64 - - - _coordinate - (752, 376) - - - _rotation - 180 - - - id - digital_ofdm_cyclic_prefixer_0_0 - - - tagname - "packet_len" - - - maxoutbuf - 0 - - - minoutbuf - max_symbols * 48 * 8 - - - rolloff - 2 - - - - digital_packet_headergenerator_bb - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - header_formatter - header_formatter.formatter() - - - _coordinate - (240, 204) - - - _rotation - 0 - - - id - digital_packet_headergenerator_bb_0 - - - len_tag_key - "packet_len" - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - parameter - - alias - - - - comment - - - - _enabled - True - - - _coordinate - (728, 12) - - - _rotation - 0 - - - id - encoding - - - label - - - - short_id - - - - type - intx - - - value - ieee802_11.BPSK_1_2 - - - - fft_vxx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - fft_size - 64 - - - forward - False - - - _coordinate - (1040, 368) - - - _rotation - 180 - - - id - fft_vxx_0_0 - - - type - complex - - - maxoutbuf - 0 - - - minoutbuf - max_symbols * 48 * 8 - - - nthreads - 1 - - - shift - True - - - window - tuple([1/52**.5] * 64) - - - - fft_vxx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - fft_size - 64 - - - forward - True - - - _coordinate - (992, 888) - - - _rotation - 180 - - - id - fft_vxx_0_1 - - - type - complex - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - nthreads - 1 - - - shift - True - - - window - window.rectangular(64) - - - - parameter - - alias - - - - comment - - - - _enabled - True - - - _coordinate - (920, 12) - - - _rotation - 0 - - - id - frequency - - - label - - - - short_id - - - - type - eng_float - - - value - 5.89e9 - - - - ieee802_11_chunks_to_symbols_xx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (496, 288) - - - _rotation - 0 - - - id - ieee802_11_chunks_to_symbols_xx_0 - - - maxoutbuf - 0 - - - minoutbuf - max_symbols * 48 * 8 - - - - ieee802_11_decode_mac - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - True - - - _coordinate - (512, 924) - - - _rotation - 180 - - - id - ieee802_11_decode_mac_0 - - - log - False - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - ieee802_11_frame_equalizer - - algo - chan_est - - - bw - bandwidth - - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - True - - - freq - frequency - - - _coordinate - (776, 888) - - - _rotation - 180 - - - id - ieee802_11_frame_equalizer_0 - - - log - False - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - ieee802_11_mapper - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - True - - - encoding - encoding - - - _coordinate - (208, 108) - - - _rotation - 180 - - - id - ieee802_11_mapper_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - - ieee802_11_moving_average_xx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (848, 500) - - - _rotation - 0 - - - id - ieee802_11_moving_average_xx_0 - - - length - window_size + 16 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - type - float - - - - ieee802_11_moving_average_xx - - alias - - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (744, 580) - - - _rotation - 0 - - - id - ieee802_11_moving_average_xx_1 - - - length - window_size - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - type - complex - - - - pad_sink - - comment - - - - _enabled - True - - - _coordinate - (576, 396) - - - _rotation - 180 - - - id - pad_sink_0 - - - type - complex - - - label - samp_out - - - num_streams - 1 - - - optional - False - - - vlen - 1 - - - - pad_sink - - comment - - - - _enabled - True - - - _coordinate - (552, 868) - - - _rotation - 180 - - - id - pad_sink_1 - - - type - message - - - label - carrier - - - num_streams - 1 - - - optional - True - - - vlen - 1 - - - - pad_sink - - comment - - - - _enabled - True - - - _coordinate - (328, 932) - - - _rotation - 180 - - - id - pad_sink_2 - - - type - message - - - label - mac_out - - - num_streams - 1 - - - optional - True - - - vlen - 1 - - - - pad_source - - comment - - - - _enabled - True - - - _coordinate - (64, 500) - - - _rotation - 0 - - - id - pad_source_0 - - - label - samp_in - - - num_streams - 1 - - - optional - False - - - type - complex - - - vlen - 1 - - - - pad_source - - comment - - - - _enabled - True - - - _coordinate - (424, 116) - - - _rotation - 180 - - - id - pad_source_1 - - - label - mac_in - - - num_streams - 1 - - - optional - True - - - type - message - - - vlen - 1 - - - - parameter - - alias - - - - comment - - - - _enabled - True - - - _coordinate - (824, 12) - - - _rotation - 0 - - - id - sensitivity - - - label - - - - short_id - - - - type - eng_float - - - value - 0.56 - - - - ieee802_11_sync_long - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - True - - - _coordinate - (608, 732) - - - _rotation - 0 - - - id - sync_long - - - log - False - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - sync_length - sync_length - - - - ieee802_11_sync_short - - alias - - - - comment - - - - affinity - - - - debug - False - - - _enabled - True - - - _coordinate - (112, 704) - - - _rotation - 0 - - - id - sync_short - - - log - False - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - min_plateau - 2 - - - threshold - sensitivity - - - - blocks_complex_to_mag_0 - blocks_divide_xx_0 - 0 - 0 - - - blocks_complex_to_mag_squared_0 - ieee802_11_moving_average_xx_0 - 0 - 0 - - - blocks_conjugate_cc_0 - blocks_multiply_xx_0 - 0 - 1 - - - blocks_delay_0 - sync_long - 0 - 1 - - - blocks_delay_0_0 - blocks_conjugate_cc_0 - 0 - 0 - - - blocks_delay_0_0 - sync_short - 0 - 0 - - - blocks_divide_xx_0 - sync_short - 0 - 2 - - - blocks_multiply_xx_0 - ieee802_11_moving_average_xx_1 - 0 - 0 - - - blocks_stream_to_vector_0 - fft_vxx_0_1 - 0 - 0 - - - blocks_tagged_stream_mux_0 - digital_ofdm_carrier_allocator_cvc_0_0_0 - 0 - 0 - - - digital_chunks_to_symbols_xx_0 - blocks_tagged_stream_mux_0 - 0 - 0 - - - digital_ofdm_carrier_allocator_cvc_0_0_0 - fft_vxx_0_0 - 0 - 0 - - - digital_ofdm_cyclic_prefixer_0_0 - pad_sink_0 - 0 - 0 - - - digital_packet_headergenerator_bb_0 - digital_chunks_to_symbols_xx_0 - 0 - 0 - - - fft_vxx_0_0 - digital_ofdm_cyclic_prefixer_0_0 - 0 - 0 - - - fft_vxx_0_1 - ieee802_11_frame_equalizer_0 - 0 - 0 - - - ieee802_11_chunks_to_symbols_xx_0 - blocks_tagged_stream_mux_0 - 0 - 1 - - - ieee802_11_decode_mac_0 - pad_sink_2 - out - in - - - ieee802_11_frame_equalizer_0 - ieee802_11_decode_mac_0 - 0 - 0 - - - ieee802_11_frame_equalizer_0 - pad_sink_1 - symbols - in - - - ieee802_11_mapper_0 - digital_packet_headergenerator_bb_0 - 0 - 0 - - - ieee802_11_mapper_0 - ieee802_11_chunks_to_symbols_xx_0 - 0 - 0 - - - ieee802_11_moving_average_xx_0 - blocks_divide_xx_0 - 0 - 1 - - - ieee802_11_moving_average_xx_1 - blocks_complex_to_mag_0 - 0 - 0 - - - ieee802_11_moving_average_xx_1 - sync_short - 0 - 1 - - - pad_source_0 - blocks_complex_to_mag_squared_0 - 0 - 0 - - - pad_source_0 - blocks_delay_0_0 - 0 - 0 - - - pad_source_0 - blocks_multiply_xx_0 - 0 - 0 - - - pad_source_1 - ieee802_11_mapper_0 - out - in - - - sync_long - blocks_stream_to_vector_0 - 0 - 0 - - - sync_short - blocks_delay_0 - 0 - 0 - - - sync_short - sync_long - 0 - 0 - - +options: + parameters: + category: '[IEEE802.11]' + generate_options: hb + hier_block_src_path: '.:' + id: wifi_phy_hier + max_nouts: '0' + placement: (0,0) + run: 'True' + run_command: '{python} -u {filename}' + run_options: prompt + sizing_mode: fixed + title: WiFi PHY Hier + window_size: 1280, 1024 + states: + coordinate: [8, 8] + rotation: 0 + state: enabled + +blocks: +- name: header_formatter + id: variable + parameters: + value: ieee802_11.signal_field() + states: + coordinate: [400, 12] + rotation: 0 + state: enabled +- name: max_symbols + id: variable + parameters: + value: int(5 + 1 + ((16 + 1540 * 8 + 6) * 2) / 24) + states: + coordinate: [528, 12] + rotation: 0 + state: enabled +- name: sync_length + id: variable + parameters: + value: '320' + states: + coordinate: [192, 12] + rotation: 0 + state: enabled +- name: window_size + id: variable + parameters: + value: '48' + states: + coordinate: [296, 12] + rotation: 0 + state: enabled +- name: bandwidth + id: parameter + parameters: + hide: none + type: eng_float + value: 10e6 + states: + coordinate: [1008, 12] + rotation: 0 + state: enabled +- name: blocks_complex_to_mag_0 + id: blocks_complex_to_mag + parameters: + maxoutbuf: '0' + minoutbuf: '0' + vlen: '1' + states: + coordinate: [960, 584] + rotation: 0 + state: enabled +- name: blocks_complex_to_mag_squared_0 + id: blocks_complex_to_mag_squared + parameters: + maxoutbuf: '0' + minoutbuf: '0' + vlen: '1' + states: + coordinate: [592, 504] + rotation: 0 + state: enabled +- name: blocks_conjugate_cc_0 + id: blocks_conjugate_cc + parameters: + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [384, 600] + rotation: 0 + state: enabled +- name: blocks_delay_0 + id: blocks_delay + parameters: + delay: sync_length + maxoutbuf: '0' + minoutbuf: '0' + num_ports: '1' + type: complex + vlen: '1' + states: + coordinate: [424, 764] + rotation: 0 + state: enabled +- name: blocks_delay_0_0 + id: blocks_delay + parameters: + delay: '16' + maxoutbuf: '0' + minoutbuf: '0' + num_ports: '1' + type: complex + vlen: '1' + states: + coordinate: [232, 596] + rotation: 0 + state: enabled +- name: blocks_divide_xx_0 + id: blocks_divide_xx + parameters: + maxoutbuf: '0' + minoutbuf: '0' + num_inputs: '2' + type: float + vlen: '1' + states: + coordinate: [1120, 656] + rotation: 270 + state: enabled +- name: blocks_moving_average_xx_0 + id: blocks_moving_average_xx + parameters: + length: window_size + max_iter: '4000' + scale: '1' + type: complex + vlen: '1' + states: + coordinate: [760, 572.0] + rotation: 0 + state: true +- name: blocks_moving_average_xx_1 + id: blocks_moving_average_xx + parameters: + length: window_size + 16 + max_iter: '4000' + scale: '1' + type: float + vlen: '1' + states: + coordinate: [816, 476.0] + rotation: 0 + state: true +- name: blocks_multiply_xx_0 + id: blocks_multiply_xx + parameters: + maxoutbuf: '0' + minoutbuf: '0' + num_inputs: '2' + type: complex + vlen: '1' + states: + coordinate: [608, 568] + rotation: 0 + state: enabled +- name: blocks_stream_to_vector_0 + id: blocks_stream_to_vector + parameters: + maxoutbuf: '0' + minoutbuf: '0' + num_items: '64' + type: complex + vlen: '1' + states: + coordinate: [880, 776.0] + rotation: 0 + state: enabled +- name: blocks_tagged_stream_mux_0 + id: blocks_tagged_stream_mux + parameters: + lengthtagname: '"packet_len"' + maxoutbuf: '0' + minoutbuf: max_symbols * 48 * 8 + ninputs: '2' + tag_preserve_head_pos: '1' + type: complex + vlen: '1' + states: + coordinate: [744, 256] + rotation: 0 + state: enabled +- name: chan_est + id: parameter + parameters: + hide: none + value: ieee802_11.LS + states: + coordinate: [640, 12] + rotation: 0 + state: enabled +- name: digital_chunks_to_symbols_xx_0 + id: digital_chunks_to_symbols_xx + parameters: + dimension: '1' + in_type: byte + maxoutbuf: '0' + minoutbuf: max_symbols * 48 * 8 * 2 + num_ports: '1' + out_type: complex + symbol_table: '[-1, 1]' + states: + coordinate: [504, 204] + rotation: 0 + state: enabled +- name: digital_ofdm_carrier_allocator_cvc_0_0_0 + id: digital_ofdm_carrier_allocator_cvc + parameters: + fft_len: '64' + len_tag_key: '"packet_len"' + maxoutbuf: '0' + minoutbuf: max_symbols * 48 * 8 + occupied_carriers: (list(range(-26, -21)) + list(range(-20, -7)) + list(range(-6, + 0)) + list(range(1, 7)) + list(range(8, 21)) +list( range(22, 27)),) + pilot_carriers: ((-21, -7, 7, 21), ) + pilot_symbols: ((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, -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), (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, 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), (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, 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), (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, -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), (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, 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), (-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, 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), (-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, 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), (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, -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), (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, 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), (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, -1, 1), (-1, -1, -1, 1), (-1, -1, + -1, 1), (-1, -1, -1, 1)) + sync_words: ((0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, + (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), + 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), + 0.0, 0.0, 0.0, (-1.4719601443879746-1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), + 0.0, 0.0, 0.0, (1.4719601443879746+1.4719601443879746j), 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0), (0, 0j, 0, 0j, 0, 0j, -1, 1j, -1, 1j, -1, 1j, -1, -1j, 1, 1j, + 1, -1j, -1, 1j, 1, 1j, 1, 1j, 1, 1j, -1, (-0-1j), 1, -1j, -1, 1j, 0, -1j, 1, + (-0-1j), 1, -1j, 1, 1j, -1, -1j, 1, (-0-1j), -1, 1j, 1, 1j, 1, 1j, 1, 1j, -1, + -1j, 1, 1j, 1, -1j, -1, 0j, 0, 0j, 0, 0j), (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)) + states: + coordinate: [1040, 232] + rotation: 0 + state: enabled +- name: digital_ofdm_cyclic_prefixer_0_0 + id: digital_ofdm_cyclic_prefixer + parameters: + cp_len: '16' + input_size: '64' + maxoutbuf: '0' + minoutbuf: max_symbols * 48 * 8 * 10 + rolloff: '2' + tagname: '"packet_len"' + states: + coordinate: [752, 376] + rotation: 180 + state: enabled +- name: digital_packet_headergenerator_bb_0 + id: digital_packet_headergenerator_bb + parameters: + header_formatter: header_formatter.formatter() + len_tag_key: '"packet_len"' + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [240, 204] + rotation: 0 + state: enabled +- name: encoding + id: parameter + parameters: + hide: none + type: intx + value: ieee802_11.BPSK_1_2 + states: + coordinate: [728, 12] + rotation: 0 + state: enabled +- name: fft_vxx_0_0 + id: fft_vxx + parameters: + fft_size: '64' + forward: 'False' + maxoutbuf: '0' + minoutbuf: max_symbols * 48 * 8 * 10 + nthreads: '1' + shift: 'True' + type: complex + window: tuple([1/52**.5] * 64) + states: + coordinate: [1040, 368] + rotation: 180 + state: enabled +- name: fft_vxx_0_1 + id: fft_vxx + parameters: + fft_size: '64' + forward: 'True' + maxoutbuf: '0' + minoutbuf: '0' + nthreads: '1' + shift: 'True' + type: complex + window: window.rectangular(64) + states: + coordinate: [992, 888] + rotation: 180 + state: enabled +- name: frequency + id: parameter + parameters: + hide: none + type: eng_float + value: 5.89e9 + states: + coordinate: [920, 12] + rotation: 0 + state: enabled +- name: ieee802_11_chunks_to_symbols_xx_0 + id: ieee802_11_chunks_to_symbols_xx + parameters: + maxoutbuf: max_symbols * 48 * 8 + minoutbuf: max_symbols * 48 * 8 + states: + coordinate: [496, 288] + rotation: 0 + state: enabled +- name: ieee802_11_decode_mac_0 + id: ieee802_11_decode_mac + parameters: + debug: 'False' + log: 'False' + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [512, 924] + rotation: 180 + state: enabled +- name: ieee802_11_frame_equalizer_0 + id: ieee802_11_frame_equalizer + parameters: + algo: ieee802_11.LS + bw: bandwidth + debug: 'False' + freq: frequency + log: 'False' + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [776, 888] + rotation: 180 + state: enabled +- name: ieee802_11_mapper_0 + id: ieee802_11_mapper + parameters: + debug: 'True' + encoding: ieee802_11.BPSK_1_2 + maxoutbuf: '0' + minoutbuf: '0' + states: + coordinate: [208, 108] + rotation: 180 + state: enabled +- name: pad_sink_0 + id: pad_sink + parameters: + label: samp_out + num_streams: '1' + optional: 'False' + type: complex + vlen: '1' + states: + coordinate: [576, 396] + rotation: 180 + state: enabled +- name: pad_sink_1 + id: pad_sink + parameters: + label: carrier + num_streams: '1' + optional: 'True' + type: message + vlen: '1' + states: + coordinate: [560, 868.0] + rotation: 180 + state: enabled +- name: pad_sink_2 + id: pad_sink + parameters: + label: mac_out + num_streams: '1' + optional: 'True' + type: message + vlen: '1' + states: + coordinate: [328, 932] + rotation: 180 + state: enabled +- name: pad_source_0 + id: pad_source + parameters: + label: samp_in + num_streams: '1' + optional: 'False' + type: complex + vlen: '1' + states: + coordinate: [64, 500] + rotation: 0 + state: enabled +- name: pad_source_1 + id: pad_source + parameters: + label: mac_in + num_streams: '1' + optional: 'True' + type: message + vlen: '1' + states: + coordinate: [424, 116] + rotation: 180 + state: enabled +- name: sensitivity + id: parameter + parameters: + hide: none + type: eng_float + value: '0.56' + states: + coordinate: [824, 12] + rotation: 0 + state: enabled +- name: sync_long + id: ieee802_11_sync_long + parameters: + debug: 'False' + log: 'False' + maxoutbuf: '0' + minoutbuf: '0' + sync_length: sync_length + states: + coordinate: [608, 732] + rotation: 0 + state: enabled +- name: sync_short + id: ieee802_11_sync_short + parameters: + debug: 'False' + log: 'False' + maxoutbuf: '0' + min_plateau: '2' + minoutbuf: '0' + threshold: sensitivity + states: + coordinate: [112, 704] + rotation: 0 + state: enabled + +connections: +- [blocks_complex_to_mag_0, '0', blocks_divide_xx_0, '0'] +- [blocks_complex_to_mag_squared_0, '0', blocks_moving_average_xx_1, '0'] +- [blocks_conjugate_cc_0, '0', blocks_multiply_xx_0, '1'] +- [blocks_delay_0, '0', sync_long, '1'] +- [blocks_delay_0_0, '0', blocks_conjugate_cc_0, '0'] +- [blocks_delay_0_0, '0', sync_short, '0'] +- [blocks_divide_xx_0, '0', sync_short, '2'] +- [blocks_moving_average_xx_0, '0', blocks_complex_to_mag_0, '0'] +- [blocks_moving_average_xx_0, '0', sync_short, '1'] +- [blocks_moving_average_xx_1, '0', blocks_divide_xx_0, '1'] +- [blocks_multiply_xx_0, '0', blocks_moving_average_xx_0, '0'] +- [blocks_stream_to_vector_0, '0', fft_vxx_0_1, '0'] +- [blocks_tagged_stream_mux_0, '0', digital_ofdm_carrier_allocator_cvc_0_0_0, '0'] +- [digital_chunks_to_symbols_xx_0, '0', blocks_tagged_stream_mux_0, '0'] +- [digital_ofdm_carrier_allocator_cvc_0_0_0, '0', fft_vxx_0_0, '0'] +- [digital_ofdm_cyclic_prefixer_0_0, '0', pad_sink_0, '0'] +- [digital_packet_headergenerator_bb_0, '0', digital_chunks_to_symbols_xx_0, '0'] +- [fft_vxx_0_0, '0', digital_ofdm_cyclic_prefixer_0_0, '0'] +- [fft_vxx_0_1, '0', ieee802_11_frame_equalizer_0, '0'] +- [ieee802_11_chunks_to_symbols_xx_0, '0', blocks_tagged_stream_mux_0, '1'] +- [ieee802_11_decode_mac_0, out, pad_sink_2, in0] +- [ieee802_11_frame_equalizer_0, '0', ieee802_11_decode_mac_0, '0'] +- [ieee802_11_frame_equalizer_0, symbols, pad_sink_1, in0] +- [ieee802_11_mapper_0, '0', digital_packet_headergenerator_bb_0, '0'] +- [ieee802_11_mapper_0, '0', ieee802_11_chunks_to_symbols_xx_0, '0'] +- [pad_source_0, '0', blocks_complex_to_mag_squared_0, '0'] +- [pad_source_0, '0', blocks_delay_0_0, '0'] +- [pad_source_0, '0', blocks_multiply_xx_0, '0'] +- [pad_source_1, out0, ieee802_11_mapper_0, in] +- [sync_long, '0', blocks_stream_to_vector_0, '0'] +- [sync_short, '0', blocks_delay_0, '0'] +- [sync_short, '0', sync_long, '0'] + +metadata: + file_format: 1