From b093ab533a0735a6f38fb043b648228bdff98531 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Thu, 23 Apr 2015 16:25:18 +0200 Subject: [PATCH] flow graphs: delete unused parameters, fix sample rate of scope, add padding --- examples/wifi_loopback.grc | 906 +++++++++++++++++++------------------ examples/wifi_phy_hier.grc | 230 ++++++++-- 2 files changed, 648 insertions(+), 488 deletions(-) diff --git a/examples/wifi_loopback.grc b/examples/wifi_loopback.grc index 0359935..07a4e4f 100644 --- a/examples/wifi_loopback.grc +++ b/examples/wifi_loopback.grc @@ -52,10 +52,18 @@ realtime_scheduling + + thread_safe_setters + + alias + + comment + + _coordinate (7, 4) @@ -65,33 +73,6 @@ 0 - - variable - - id - samp_rate - - - _enabled - True - - - value - 20000000 - - - alias - - - - _coordinate - (179, 4) - - - _rotation - 0 - - variable @@ -110,9 +91,13 @@ alias + + comment + + _coordinate - (272, 3) + (176, 11) _rotation @@ -157,6 +142,10 @@ maxoutbuf 0 + + comment + + _coordinate (416, 139) @@ -200,6 +189,10 @@ maxoutbuf 0 + + comment + + _coordinate (136, 635) @@ -209,49 +202,6 @@ 0 - - ieee802_11_ofdm_parse_mac - - id - ieee802_11_ofdm_parse_mac_0 - - - _enabled - True - - - log - True - - - debug - True - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (104, 251) - - - _rotation - 180 - - blocks_message_strobe @@ -286,6 +236,10 @@ maxoutbuf 0 + + comment + + _coordinate (48, 131) @@ -295,53 +249,6 @@ 0 - - variable_static_text - - id - snr_text - - - _enabled - True - - - label - SNR - - - value - str(snr) - - - converver - str_converter - - - formatter - None - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (515, 8) - - - _rotation - 0 - - variable_slider @@ -392,6 +299,10 @@ alias + + comment + + _coordinate (656, 11) @@ -401,80 +312,6 @@ 0 - - import - - id - import_0 - - - _enabled - True - - - import - import math - - - alias - - - - _coordinate - (376, 3) - - - _rotation - 0 - - - - blocks_multiply_const_vxx - - id - blocks_multiply_const_vxx_0 - - - _enabled - True - - - type - complex - - - const - (10**(snr/10.0))**.5 - - - vlen - 1 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (440, 427) - - - _rotation - 0 - - wxgui_numbersink2 @@ -561,6 +398,10 @@ affinity + + comment + + _coordinate (552, 555) @@ -604,6 +445,10 @@ maxoutbuf 0 + + comment + + _coordinate (688, 195) @@ -651,6 +496,10 @@ affinity + + comment + + _coordinate (896, 187) @@ -710,6 +559,10 @@ alias + + comment + + _coordinate (1064, 11) @@ -765,6 +618,10 @@ alias + + comment + + _coordinate (888, 11) @@ -774,203 +631,6 @@ 0 - - variable_chooser - - id - chan_est - - - _enabled - True - - - label - - - - value - 1 - - - choices - [0, 1] - - - labels - ["LMS", "Linear Comb"] - - - type - radio_buttons - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (1056, 267) - - - _rotation - 0 - - - - wxgui_scopesink2 - - id - wxgui_scopesink2_0 - - - _enabled - True - - - type - complex - - - title - Scope Plot - - - samp_rate - pdu_length*8.0/24/interval - - - v_scale - 0 - - - v_offset - 0 - - - t_scale - 0 - - - ac_couple - False - - - xy_mode - True - - - num_inputs - 1 - - - win_size - - - - grid_pos - - - - notebook - - - - trig_mode - wxgui.TRIG_MODE_AUTO - - - y_axis_label - Counts - - - alias - - - - affinity - - - - _coordinate - (168, 499) - - - _rotation - 0 - - - - channels_channel_model - - id - channels_channel_model_0 - - - _enabled - True - - - noise_voltage - .5**.5 - - - freq_offset - freq_offset - - - epsilon - 1.0 - - - taps - 1.0 - - - seed - 0 - - - block_tags - False - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (632, 395) - - - _rotation - 0 - - variable_slider @@ -1021,6 +681,10 @@ alias + + comment + + _coordinate (776, 11) @@ -1030,6 +694,210 @@ 0 + + variable_chooser + + id + chan_est + + + _enabled + True + + + label + + + + value + 1 + + + choices + [0, 1] + + + labels + ["LMS", "Linear Comb"] + + + type + radio_buttons + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (496, 11) + + + _rotation + 0 + + + + import + + id + import_0 + + + _enabled + True + + + import + import math + + + alias + + + + comment + + + + _coordinate + (280, 11) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + (10**(snr/10.0))**.5 + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (440, 427) + + + _rotation + 0 + + + + channels_channel_model + + id + channels_channel_model_0 + + + _enabled + True + + + noise_voltage + .5**.5 + + + freq_offset + freq_offset + + + epsilon + 1.0 + + + taps + 1.0 + + + seed + 0 + + + block_tags + False + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (664, 395) + + + _rotation + 0 + + variable_slider @@ -1081,63 +949,12 @@ - _coordinate - (1088, 147) - - - _rotation - 0 - - - - foo_packet_pad2 - - id - foo_packet_pad2_0 - - - _enabled - True - - - debug - False - - - delay - False - - - delay_sec - 0.001 - - - pad_front - 997 - - - pad_tail - 0 - - - alias + comment - - affinity - - - - minoutbuf - out_buf_size - - - maxoutbuf - 0 - _coordinate - (272, 395) + (376, 11) _rotation @@ -1178,15 +995,212 @@ maxoutbuf 0 + + comment + + _coordinate - (384, 264) + (384, 272) _rotation 180 + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (112, 259) + + + _rotation + 180 + + + + foo_packet_pad2 + + id + foo_packet_pad2_0 + + + _enabled + True + + + debug + False + + + delay + False + + + delay_sec + 0.001 + + + pad_front + 500 + + + pad_tail + 497 + + + alias + + + + affinity + + + + minoutbuf + out_buf_size + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (272, 395) + + + _rotation + 0 + + + + wxgui_scopesink2 + + id + wxgui_scopesink2_0 + + + _enabled + True + + + type + complex + + + title + Scope Plot + + + samp_rate + 12500 + + + v_scale + 0 + + + v_offset + 0 + + + t_scale + 0 + + + ac_couple + False + + + xy_mode + True + + + num_inputs + 1 + + + win_size + + + + grid_pos + + + + notebook + + + + trig_mode + wxgui.TRIG_MODE_AUTO + + + y_axis_label + Counts + + + alias + + + + affinity + + + + comment + + + + _coordinate + (152, 515) + + + _rotation + 0 + + wifi_phy_hier_0 ieee802_11_ofdm_parse_mac_0 @@ -1205,12 +1219,6 @@ 0 0 - - wifi_phy_hier_0 - ieee802_11_ofdm_mac_0 - mac_out - phy in - ieee802_11_ofdm_mac_0 wifi_phy_hier_0 diff --git a/examples/wifi_phy_hier.grc b/examples/wifi_phy_hier.grc index 0546b04..d470179 100644 --- a/examples/wifi_phy_hier.grc +++ b/examples/wifi_phy_hier.grc @@ -52,10 +52,18 @@ realtime_scheduling + + thread_safe_setters + + alias + + comment + + _coordinate (10, 10) @@ -83,6 +91,10 @@ alias + + comment + + _coordinate (488, 11) @@ -110,6 +122,10 @@ alias + + comment + + _coordinate (296, 11) @@ -137,6 +153,10 @@ alias + + comment + + _coordinate (196, 14) @@ -164,6 +184,10 @@ alias + + comment + + _coordinate (648, 11) @@ -223,6 +247,10 @@ maxoutbuf 0 + + comment + + _coordinate (1009, 908) @@ -262,6 +290,10 @@ optional False + + comment + + _coordinate (390, 130) @@ -305,6 +337,10 @@ maxoutbuf 0 + + comment + + _coordinate (283, 932) @@ -348,6 +384,10 @@ maxoutbuf 0 + + comment + + _coordinate (135, 123) @@ -387,6 +427,10 @@ alias + + comment + + _coordinate (400, 11) @@ -426,6 +470,10 @@ alias + + comment + + _coordinate (760, 11) @@ -465,6 +513,10 @@ optional False + + comment + + _coordinate (69, 940) @@ -520,6 +572,10 @@ maxoutbuf 0 + + comment + + _coordinate (752, 248) @@ -555,6 +611,10 @@ maxoutbuf 0 + + comment + + _coordinate (504, 280) @@ -610,6 +670,10 @@ maxoutbuf 0 + + comment + + _coordinate (504, 203) @@ -653,6 +717,10 @@ maxoutbuf 0 + + comment + + _coordinate (232, 203) @@ -712,6 +780,10 @@ maxoutbuf 0 + + comment + + _coordinate (1008, 219) @@ -763,6 +835,10 @@ maxoutbuf 0 + + comment + + _coordinate (704, 371) @@ -802,6 +878,10 @@ optional False + + comment + + _coordinate (472, 387) @@ -861,6 +941,10 @@ maxoutbuf 0 + + comment + + _coordinate (1008, 355) @@ -900,6 +984,10 @@ maxoutbuf 0 + + comment + + _coordinate (600, 520) @@ -935,6 +1023,10 @@ maxoutbuf 0 + + comment + + _coordinate (384, 608) @@ -986,6 +1078,10 @@ maxoutbuf 0 + + comment + + _coordinate (232, 603) @@ -1033,6 +1129,10 @@ maxoutbuf 0 + + comment + + _coordinate (608, 576) @@ -1072,6 +1172,10 @@ maxoutbuf 0 + + comment + + _coordinate (976, 592) @@ -1111,6 +1215,10 @@ optional False + + comment + + _coordinate (56, 515) @@ -1154,6 +1262,10 @@ maxoutbuf 0 + + comment + + _coordinate (880, 515) @@ -1205,6 +1317,10 @@ maxoutbuf 0 + + comment + + _coordinate (440, 803) @@ -1252,6 +1368,10 @@ maxoutbuf 0 + + comment + + _coordinate (1000, 787) @@ -1261,45 +1381,6 @@ 0 - - pad_sink - - id - pad_sink_1 - - - _enabled - True - - - label - carriers - - - type - complex - - - vlen - 1 - - - num_streams - 1 - - - optional - True - - - _coordinate - (176, 867) - - - _rotation - 180 - - blocks_vector_to_stream @@ -1338,6 +1419,10 @@ maxoutbuf 0 + + comment + + _coordinate (312, 867) @@ -1381,6 +1466,10 @@ maxoutbuf 0 + + comment + + _coordinate (768, 587) @@ -1428,6 +1517,10 @@ maxoutbuf 0 + + comment + + _coordinate (1128, 672) @@ -1479,6 +1572,10 @@ maxoutbuf 0 + + comment + + _coordinate (152, 744) @@ -1526,6 +1623,10 @@ maxoutbuf 0 + + comment + + _coordinate (656, 771) @@ -1569,6 +1670,10 @@ maxoutbuf 0 + + comment + + _coordinate (752, 931) @@ -1612,6 +1717,10 @@ maxoutbuf 0 + + comment + + _coordinate (525, 932) @@ -1621,6 +1730,49 @@ 180 + + pad_sink + + id + pad_sink_1 + + + _enabled + True + + + label + carrier + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + comment + + + + _coordinate + (176, 867) + + + _rotation + 180 + + pad_source_1 ieee802_11_ofdm_mapper_0