4f069d6518
The readme says that if you run the loopback example, then "If everything works as intended you should see some decoded packets on the console". For this to be true out of the box, the debug option on the Parse MAC block must be enabled.
688 lines
14 KiB
Plaintext
688 lines
14 KiB
Plaintext
options:
|
|
parameters:
|
|
author: ''
|
|
category: Custom
|
|
cmake_opt: ''
|
|
comment: ''
|
|
copyright: ''
|
|
description: ''
|
|
gen_cmake: 'On'
|
|
gen_linking: dynamic
|
|
generate_options: qt_gui
|
|
hier_block_src_path: '.:'
|
|
id: wifi_loopback
|
|
max_nouts: '0'
|
|
output_language: python
|
|
placement: (0,0)
|
|
qt_qss_theme: ''
|
|
realtime_scheduling: ''
|
|
run: 'True'
|
|
run_command: '{python} -u {filename}'
|
|
run_options: prompt
|
|
sizing_mode: fixed
|
|
thread_safe_setters: ''
|
|
title: ''
|
|
window_size: 1280, 1024
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [16, 12]
|
|
rotation: 0
|
|
state: enabled
|
|
|
|
blocks:
|
|
- name: chan_est
|
|
id: variable_qtgui_chooser
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 0,0,1,1
|
|
label: ''
|
|
label0: ''
|
|
label1: ''
|
|
label2: ''
|
|
label3: ''
|
|
label4: ''
|
|
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
|
|
value: '0'
|
|
widget: combo_box
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [192, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: encoding
|
|
id: variable_qtgui_chooser
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 0,1,1,1
|
|
label: ''
|
|
label0: ''
|
|
label1: ''
|
|
label2: ''
|
|
label3: ''
|
|
label4: ''
|
|
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
|
|
value: '0'
|
|
widget: combo_box
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [376, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: epsilon
|
|
id: variable_qtgui_range
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 3,1,1,1
|
|
label: ''
|
|
min_len: '200'
|
|
orient: Qt.Horizontal
|
|
rangeType: float
|
|
start: -20e-6
|
|
step: 1e-6
|
|
stop: 20e-6
|
|
value: '0'
|
|
widget: counter_slider
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [688, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: interval
|
|
id: variable_qtgui_range
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 2,1,1,1
|
|
label: ''
|
|
min_len: '200'
|
|
orient: Qt.Horizontal
|
|
rangeType: int
|
|
start: '10'
|
|
step: '1'
|
|
stop: '1000'
|
|
value: '300'
|
|
widget: counter_slider
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [808, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: out_buf_size
|
|
id: variable
|
|
parameters:
|
|
comment: ''
|
|
value: '96000'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [16, 76]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: pdu_length
|
|
id: variable_qtgui_range
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 3,0,1,1
|
|
label: ''
|
|
min_len: '200'
|
|
orient: Qt.Horizontal
|
|
rangeType: int
|
|
start: '0'
|
|
step: '1'
|
|
stop: '1500'
|
|
value: '10'
|
|
widget: counter_slider
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [560, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: snr
|
|
id: variable_qtgui_range
|
|
parameters:
|
|
comment: ''
|
|
gui_hint: 2,0,1,1
|
|
label: ''
|
|
min_len: '200'
|
|
orient: Qt.Horizontal
|
|
rangeType: float
|
|
start: '-15'
|
|
step: '0.1'
|
|
stop: '30'
|
|
value: '15'
|
|
widget: counter_slider
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [936, 8]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: blocks_complex_to_mag_0
|
|
id: blocks_complex_to_mag
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
vlen: '52'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [168, 748.0]
|
|
rotation: 0
|
|
state: disabled
|
|
- name: blocks_ctrlport_monitor_performance_0
|
|
id: blocks_ctrlport_monitor_performance
|
|
parameters:
|
|
alias: ''
|
|
comment: ''
|
|
en: 'True'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [16, 156.0]
|
|
rotation: 0
|
|
state: disabled
|
|
- name: blocks_file_sink_0
|
|
id: blocks_file_sink
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
append: 'False'
|
|
comment: ''
|
|
file: /tmp/wifi.bin
|
|
type: byte
|
|
unbuffered: 'True'
|
|
vlen: '1'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [128, 436.0]
|
|
rotation: 180
|
|
state: disabled
|
|
- name: blocks_message_strobe_0
|
|
id: blocks_message_strobe
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
msg: pmt.intern("".join("x" for i in range(pdu_length)))
|
|
period: interval
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [464, 212.0]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: blocks_multiply_const_xx_0
|
|
id: blocks_multiply_const_xx
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
const: (10**(snr/10.0))**.5
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
type: complex
|
|
vlen: '1'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [728, 620.0]
|
|
rotation: 0
|
|
state: true
|
|
- name: blocks_pdu_to_tagged_stream_0_0
|
|
id: blocks_pdu_to_tagged_stream
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
tag: packet_len
|
|
type: complex
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [376, 348.0]
|
|
rotation: 180
|
|
state: enabled
|
|
- name: blocks_tag_debug_0
|
|
id: blocks_tag_debug
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
display: 'True'
|
|
filter: '""'
|
|
name: ''
|
|
num_inputs: '1'
|
|
type: complex
|
|
vlen: '52'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [152, 828.0]
|
|
rotation: 0
|
|
state: disabled
|
|
- name: blocks_vector_to_stream_0
|
|
id: blocks_vector_to_stream
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
num_items: '52'
|
|
type: float
|
|
vlen: '1'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [328, 752.0]
|
|
rotation: 0
|
|
state: disabled
|
|
- name: channels_channel_model_0
|
|
id: channels_channel_model
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
block_tags: 'False'
|
|
comment: ''
|
|
epsilon: '1.0'
|
|
freq_offset: epsilon * 5.89e9 / 10e6
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
noise_voltage: '1'
|
|
seed: '0'
|
|
taps: '1.0'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [912, 580.0]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: foo_packet_pad2_0
|
|
id: foo_packet_pad2
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
debug: 'False'
|
|
delay: 'False'
|
|
delay_sec: '0.001'
|
|
maxoutbuf: '0'
|
|
minoutbuf: out_buf_size * 10
|
|
pad_front: '500'
|
|
pad_tail: '0'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [568, 588.0]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: foo_wireshark_connector_0
|
|
id: foo_wireshark_connector
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
debug: 'False'
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
tech: '127'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [336, 444.0]
|
|
rotation: 180
|
|
state: disabled
|
|
- name: ieee802_11_extract_csi_0
|
|
id: ieee802_11_extract_csi
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [160, 608.0]
|
|
rotation: 180
|
|
state: disabled
|
|
- name: ieee802_11_mac_0
|
|
id: ieee802_11_mac
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
bss_mac: '[0xff, 0xff, 0xff, 0xff, 0xff, 0xff]'
|
|
comment: ''
|
|
dst_mac: '[0x42, 0x42, 0x42, 0x42, 0x42, 0x42]'
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
src_mac: '[0x23, 0x23, 0x23, 0x23, 0x23, 0x23]'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [704, 220.0]
|
|
rotation: 0
|
|
state: enabled
|
|
- name: ieee802_11_parse_mac_0
|
|
id: ieee802_11_parse_mac
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
comment: ''
|
|
debug: 'True'
|
|
log: 'False'
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [328, 596.0]
|
|
rotation: 180
|
|
state: enabled
|
|
- name: pfb_arb_resampler_xxx_0
|
|
id: pfb_arb_resampler_xxx
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
atten: '100'
|
|
comment: ''
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
nfilts: '32'
|
|
rrate: 1+epsilon
|
|
samp_delay: '0'
|
|
taps: ''
|
|
type: ccf
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [1100.0, 384]
|
|
rotation: 90
|
|
state: enabled
|
|
- name: qtgui_const_sink_x_0
|
|
id: qtgui_const_sink_x
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
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"'
|
|
comment: ''
|
|
grid: 'False'
|
|
gui_hint: 1,0,1,2
|
|
label1: ''
|
|
label10: ''
|
|
label2: ''
|
|
label3: ''
|
|
label4: ''
|
|
label5: ''
|
|
label6: ''
|
|
label7: ''
|
|
label8: ''
|
|
label9: ''
|
|
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:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [128, 340.0]
|
|
rotation: 180
|
|
state: enabled
|
|
- name: qtgui_time_sink_x_0
|
|
id: qtgui_time_sink_x
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
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: dark blue
|
|
color2: red
|
|
color3: green
|
|
color4: black
|
|
color5: cyan
|
|
color6: magenta
|
|
color7: yellow
|
|
color8: dark red
|
|
color9: dark green
|
|
comment: ''
|
|
ctrlpanel: 'False'
|
|
entags: 'False'
|
|
grid: 'False'
|
|
gui_hint: ''
|
|
label1: Signal 1
|
|
label10: Signal 10
|
|
label2: Signal 2
|
|
label3: Signal 3
|
|
label4: Signal 4
|
|
label5: Signal 5
|
|
label6: Signal 6
|
|
label7: Signal 7
|
|
label8: Signal 8
|
|
label9: Signal 9
|
|
legend: 'True'
|
|
marker1: '-1'
|
|
marker10: '-1'
|
|
marker2: '-1'
|
|
marker3: '-1'
|
|
marker4: '-1'
|
|
marker5: '-1'
|
|
marker6: '-1'
|
|
marker7: '-1'
|
|
marker8: '-1'
|
|
marker9: '-1'
|
|
name: '""'
|
|
nconnections: '1'
|
|
size: '52'
|
|
srate: '1'
|
|
stemplot: 'False'
|
|
style1: '1'
|
|
style10: '1'
|
|
style2: '1'
|
|
style3: '1'
|
|
style4: '1'
|
|
style5: '1'
|
|
style6: '1'
|
|
style7: '1'
|
|
style8: '1'
|
|
style9: '1'
|
|
tr_chan: '0'
|
|
tr_delay: '0'
|
|
tr_level: '0.0'
|
|
tr_mode: qtgui.TRIG_MODE_FREE
|
|
tr_slope: qtgui.TRIG_SLOPE_POS
|
|
tr_tag: '""'
|
|
type: float
|
|
update_time: '0.10'
|
|
width1: '1'
|
|
width10: '1'
|
|
width2: '1'
|
|
width3: '1'
|
|
width4: '1'
|
|
width5: '1'
|
|
width6: '1'
|
|
width7: '1'
|
|
width8: '1'
|
|
width9: '1'
|
|
ylabel: Amplitude
|
|
ymax: '350'
|
|
ymin: '-1'
|
|
yunit: '""'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [504, 732.0]
|
|
rotation: 0
|
|
state: disabled
|
|
- name: wifi_phy_hier_0
|
|
id: wifi_phy_hier
|
|
parameters:
|
|
affinity: ''
|
|
alias: ''
|
|
bandwidth: 10e6
|
|
chan_est: chan_est
|
|
comment: ''
|
|
encoding: encoding
|
|
frequency: 5.9e6
|
|
maxoutbuf: '0'
|
|
minoutbuf: '0'
|
|
sensitivity: '0.56'
|
|
states:
|
|
bus_sink: false
|
|
bus_source: false
|
|
bus_structure: null
|
|
coordinate: [744, 364.0]
|
|
rotation: 180
|
|
state: true
|
|
|
|
connections:
|
|
- [blocks_complex_to_mag_0, '0', blocks_vector_to_stream_0, '0']
|
|
- [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, '0', qtgui_const_sink_x_0, '0']
|
|
- [blocks_vector_to_stream_0, '0', qtgui_time_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_extract_csi_0, '0', blocks_complex_to_mag_0, '0']
|
|
- [ieee802_11_extract_csi_0, '0', blocks_tag_debug_0, '0']
|
|
- [ieee802_11_mac_0, phy out, wifi_phy_hier_0, mac_in]
|
|
- [ieee802_11_parse_mac_0, out, ieee802_11_extract_csi_0, pdu in]
|
|
- [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_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
|