From 7565ec52469eb8a9feeffb6a76859ca226951db2 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 21 Apr 2015 09:05:22 +0200 Subject: [PATCH] agc / csma flow graph fix lo offset --- examples/wifi_rx_agc.grc | 2316 ++++++++++++++++++------------------ examples/wifi_tx_csma.grc | 2381 +++++++++++++++++++++---------------- 2 files changed, 2525 insertions(+), 2172 deletions(-) diff --git a/examples/wifi_rx_agc.grc b/examples/wifi_rx_agc.grc index 087a084..dd3b8ac 100644 --- a/examples/wifi_rx_agc.grc +++ b/examples/wifi_rx_agc.grc @@ -73,37 +73,6 @@ 0 - - variable - - id - window_size - - - _enabled - True - - - value - 48 - - - alias - - - - comment - - - - _coordinate - (656, 11) - - - _rotation - 0 - - variable @@ -136,46 +105,18 @@ - variable_chooser + variable id - lo_offset + window_size _enabled True - - label - LO Offset - value - 0 - - - choices - [0, 6e9, 11e9] - - - labels - ['0 MHz', '6 MHz', '11 MHz'] - - - type - drop_down - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - + 48 alias @@ -187,1005 +128,7 @@ _coordinate - (176, 11) - - - _rotation - 0 - - - - uhd_usrp_source_agc - - id - uhd_usrp_source_agc_0 - - - _enabled - True - - - type - fc32 - - - otw - - - - stream_args - - - - stream_chans - [] - - - dev_addr - "" - - - dev_args - "" - - - sync - - - - clock_rate - 0.0 - - - num_mboards - 1 - - - clock_source0 - - - - time_source0 - - - - sd_spec0 - - - - clock_source1 - - - - time_source1 - - - - sd_spec1 - - - - clock_source2 - - - - time_source2 - - - - sd_spec2 - - - - clock_source3 - - - - time_source3 - - - - sd_spec3 - - - - clock_source4 - - - - time_source4 - - - - sd_spec4 - - - - clock_source5 - - - - time_source5 - - - - sd_spec5 - - - - clock_source6 - - - - time_source6 - - - - sd_spec6 - - - - clock_source7 - - - - time_source7 - - - - sd_spec7 - - - - nchan - 1 - - - samp_rate - samp_rate - - - center_freq0 - uhd.tune_request(freq - lo_offset, lo_offset) - - - gain0 - gain - - - agc0 - agc - - - norm_gain0 - False - - - ant0 - - - - bw0 - 0 - - - center_freq1 - 0 - - - gain1 - 0 - - - agc1 - False - - - norm_gain1 - False - - - ant1 - - - - bw1 - 0 - - - center_freq2 - 0 - - - gain2 - 0 - - - agc2 - False - - - norm_gain2 - False - - - ant2 - - - - bw2 - 0 - - - center_freq3 - 0 - - - gain3 - 0 - - - agc3 - False - - - norm_gain3 - False - - - ant3 - - - - bw3 - 0 - - - center_freq4 - 0 - - - gain4 - 0 - - - agc4 - False - - - norm_gain4 - False - - - ant4 - - - - bw4 - 0 - - - center_freq5 - 0 - - - gain5 - 0 - - - agc5 - False - - - norm_gain5 - False - - - ant5 - - - - bw5 - 0 - - - center_freq6 - 0 - - - gain6 - 0 - - - agc6 - False - - - norm_gain6 - False - - - ant6 - - - - bw6 - 0 - - - center_freq7 - 0 - - - gain7 - 0 - - - agc7 - False - - - norm_gain7 - False - - - ant7 - - - - bw7 - 0 - - - center_freq8 - 0 - - - gain8 - 0 - - - agc8 - False - - - norm_gain8 - False - - - ant8 - - - - bw8 - 0 - - - center_freq9 - 0 - - - gain9 - 0 - - - agc9 - False - - - norm_gain9 - False - - - ant9 - - - - bw9 - 0 - - - center_freq10 - 0 - - - gain10 - 0 - - - agc10 - False - - - norm_gain10 - False - - - ant10 - - - - bw10 - 0 - - - center_freq11 - 0 - - - gain11 - 0 - - - agc11 - False - - - norm_gain11 - False - - - ant11 - - - - bw11 - 0 - - - center_freq12 - 0 - - - gain12 - 0 - - - agc12 - False - - - norm_gain12 - False - - - ant12 - - - - bw12 - 0 - - - center_freq13 - 0 - - - gain13 - 0 - - - agc13 - False - - - norm_gain13 - False - - - ant13 - - - - bw13 - 0 - - - center_freq14 - 0 - - - gain14 - 0 - - - agc14 - False - - - norm_gain14 - False - - - ant14 - - - - bw14 - 0 - - - center_freq15 - 0 - - - gain15 - 0 - - - agc15 - False - - - norm_gain15 - False - - - ant15 - - - - bw15 - 0 - - - center_freq16 - 0 - - - gain16 - 0 - - - agc16 - False - - - norm_gain16 - False - - - ant16 - - - - bw16 - 0 - - - center_freq17 - 0 - - - gain17 - 0 - - - agc17 - False - - - norm_gain17 - False - - - ant17 - - - - bw17 - 0 - - - center_freq18 - 0 - - - gain18 - 0 - - - agc18 - False - - - norm_gain18 - False - - - ant18 - - - - bw18 - 0 - - - center_freq19 - 0 - - - gain19 - 0 - - - agc19 - False - - - norm_gain19 - False - - - ant19 - - - - bw19 - 0 - - - center_freq20 - 0 - - - gain20 - 0 - - - agc20 - False - - - norm_gain20 - False - - - ant20 - - - - bw20 - 0 - - - center_freq21 - 0 - - - gain21 - 0 - - - agc21 - False - - - norm_gain21 - False - - - ant21 - - - - bw21 - 0 - - - center_freq22 - 0 - - - gain22 - 0 - - - agc22 - False - - - norm_gain22 - False - - - ant22 - - - - bw22 - 0 - - - center_freq23 - 0 - - - gain23 - 0 - - - agc23 - False - - - norm_gain23 - False - - - ant23 - - - - bw23 - 0 - - - center_freq24 - 0 - - - gain24 - 0 - - - agc24 - False - - - norm_gain24 - False - - - ant24 - - - - bw24 - 0 - - - center_freq25 - 0 - - - gain25 - 0 - - - agc25 - False - - - norm_gain25 - False - - - ant25 - - - - bw25 - 0 - - - center_freq26 - 0 - - - gain26 - 0 - - - agc26 - False - - - norm_gain26 - False - - - ant26 - - - - bw26 - 0 - - - center_freq27 - 0 - - - gain27 - 0 - - - agc27 - False - - - norm_gain27 - False - - - ant27 - - - - bw27 - 0 - - - center_freq28 - 0 - - - gain28 - 0 - - - agc28 - False - - - norm_gain28 - False - - - ant28 - - - - bw28 - 0 - - - center_freq29 - 0 - - - gain29 - 0 - - - agc29 - False - - - norm_gain29 - False - - - ant29 - - - - bw29 - 0 - - - center_freq30 - 0 - - - gain30 - 0 - - - agc30 - False - - - norm_gain30 - False - - - ant30 - - - - bw30 - 0 - - - center_freq31 - 0 - - - gain31 - 0 - - - agc31 - False - - - norm_gain31 - False - - - ant31 - - - - bw31 - 0 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - comment - - - - _coordinate - (16, 187) - - - _rotation - 0 - - - - blocks_multiply_xx - - id - blocks_multiply_xx_0 - - - _enabled - True - - - type - complex - - - num_inputs - 2 - - - vlen - 1 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - comment - - - - _coordinate - (656, 304) + (656, 11) _rotation @@ -1286,57 +229,6 @@ 0 - - blocks_divide_xx - - id - blocks_divide_xx_0 - - - _enabled - True - - - type - float - - - vlen - 1 - - - num_inputs - 2 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - comment - - - - _coordinate - (1192, 392) - - - _rotation - 270 - - ieee802_11_ofdm_sync_short @@ -2609,49 +1501,6 @@ 0 - - blocks_complex_to_mag - - id - blocks_complex_to_mag_0 - - - _enabled - True - - - vlen - 1 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - comment - - - - _coordinate - (1032, 320) - - - _rotation - 0 - - wxgui_scopesink2 @@ -2739,6 +1588,1157 @@ 0 + + variable_chooser + + id + lo_offset + + + _enabled + True + + + label + LO Offset + + + value + 0 + + + choices + [0, 6e6, 11e6] + + + labels + ['0 MHz', '6 MHz', '11 MHz'] + + + type + drop_down + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (176, 11) + + + _rotation + 0 + + + + uhd_usrp_source_agc + + id + uhd_usrp_source_agc_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + "" + + + dev_args + "" + + + sync + + + + clock_rate + 0.0 + + + num_mboards + 1 + + + clock_source0 + + + + time_source0 + + + + sd_spec0 + + + + clock_source1 + + + + time_source1 + + + + sd_spec1 + + + + clock_source2 + + + + time_source2 + + + + sd_spec2 + + + + clock_source3 + + + + time_source3 + + + + sd_spec3 + + + + clock_source4 + + + + time_source4 + + + + sd_spec4 + + + + clock_source5 + + + + time_source5 + + + + sd_spec5 + + + + clock_source6 + + + + time_source6 + + + + sd_spec6 + + + + clock_source7 + + + + time_source7 + + + + sd_spec7 + + + + nchan + 1 + + + samp_rate + samp_rate + + + center_freq0 + uhd.tune_request(freq, rf_freq = freq - lo_offset, rf_freq_policy=uhd.tune_request.POLICY_MANUAL) + + + gain0 + gain + + + agc0 + agc + + + norm_gain0 + False + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + agc1 + False + + + norm_gain1 + False + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + agc2 + False + + + norm_gain2 + False + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + agc3 + False + + + norm_gain3 + False + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + agc4 + False + + + norm_gain4 + False + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + agc5 + False + + + norm_gain5 + False + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + agc6 + False + + + norm_gain6 + False + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + agc7 + False + + + norm_gain7 + False + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + agc8 + False + + + norm_gain8 + False + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + agc9 + False + + + norm_gain9 + False + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + agc10 + False + + + norm_gain10 + False + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + agc11 + False + + + norm_gain11 + False + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + agc12 + False + + + norm_gain12 + False + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + agc13 + False + + + norm_gain13 + False + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + agc14 + False + + + norm_gain14 + False + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + agc15 + False + + + norm_gain15 + False + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + agc16 + False + + + norm_gain16 + False + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + agc17 + False + + + norm_gain17 + False + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + agc18 + False + + + norm_gain18 + False + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + agc19 + False + + + norm_gain19 + False + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + agc20 + False + + + norm_gain20 + False + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + agc21 + False + + + norm_gain21 + False + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + agc22 + False + + + norm_gain22 + False + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + agc23 + False + + + norm_gain23 + False + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + agc24 + False + + + norm_gain24 + False + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + agc25 + False + + + norm_gain25 + False + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + agc26 + False + + + norm_gain26 + False + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + agc27 + False + + + norm_gain27 + False + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + agc28 + False + + + norm_gain28 + False + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + agc29 + False + + + norm_gain29 + False + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + agc30 + False + + + norm_gain30 + False + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + agc31 + False + + + norm_gain31 + False + + + ant31 + + + + bw31 + 0 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (16, 187) + + + _rotation + 0 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (656, 304) + + + _rotation + 0 + + + + blocks_complex_to_mag + + id + blocks_complex_to_mag_0 + + + _enabled + True + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (1032, 320) + + + _rotation + 0 + + + + blocks_divide_xx + + id + blocks_divide_xx_0 + + + _enabled + True + + + type + float + + + vlen + 1 + + + num_inputs + 2 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (1192, 392) + + + _rotation + 270 + + wxgui_scopesink2 @@ -2819,11 +2819,11 @@ _coordinate - (1008, 347) + (1171, 536) _rotation - 180 + 270 @@ -3001,7 +3001,7 @@ 0 - blocks_complex_to_mag_0 + blocks_divide_xx_0 wxgui_scopesink2_0 0 0 diff --git a/examples/wifi_tx_csma.grc b/examples/wifi_tx_csma.grc index 991fc6d..ac435ef 100644 --- a/examples/wifi_tx_csma.grc +++ b/examples/wifi_tx_csma.grc @@ -1,6 +1,1088 @@ + Fri Jul 18 14:50:50 2014 + + options + + id + wifi_tx_csma + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + run + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + thread_safe_setters + + + + alias + + + + comment + + + + _coordinate + (4, 3) + + + _rotation + 0 + + + + blocks_null_sink + + id + blocks_null_sink_0 + + + _enabled + True + + + type + complex + + + vlen + 1 + + + num_inputs + 1 + + + bus_conns + [[0,],] + + + alias + + + + affinity + + + + comment + + + + _coordinate + (1164, 918) + + + _rotation + 0 + + + + foo_packet_pad2 + + id + foo_packet_pad2_0 + + + _enabled + True + + + debug + False + + + delay + False + + + delay_sec + 0.01 + + + pad_front + 0 + + + pad_tail + 0 + + + alias + + + + affinity + + + + minoutbuf + 100000 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (92, 622) + + + _rotation + 0 + + + + blocks_null_source + + id + blocks_null_source_0 + + + _enabled + True + + + type + complex + + + vlen + 1 + + + num_outputs + 1 + + + bus_conns + [[0,],] + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (552, 522) + + + _rotation + 180 + + + + wifi_phy_hier + + id + wifi_phy_hier_0 + + + _enabled + True + + + encoding + encoding + + + chan_est + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (345, 488) + + + _rotation + 180 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + mult + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (91, 518) + + + _rotation + 180 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + src_mac + [0x23, 0x23, 0x23, 0x23, 0x23, 0x23] + + + dst_mac + [0x42, 0x42, 0x42, 0x42, 0x42, 0x42] + + + bss_mac + [0xff, 0xff, 0xff, 0xff, 0xff, 0xff] + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (323, 385) + + + _rotation + 0 + + + + ieee802_11_wifi_edca + + id + ieee802_11_wifi_edca_0 + + + _enabled + True + + + cw_min + [15, 15, 7, 3] + + + aifsn + [9, 6, 3, 2] + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (290, 209) + + + _rotation + 180 + + + + variable_chooser + + id + freq + + + _enabled + True + + + label + Channel + + + value + 5.89e9 + + + choices + [2412000000.0, 2417000000.0, 2422000000.0, 2427000000.0, 2432000000.0, 2437000000.0, 2442000000.0, 2447000000.0, 2452000000.0, 2457000000.0, 2462000000.0, 2467000000.0, 2472000000.0, 2484000000.0, 5170000000.0, 5180000000.0, 5190000000.0, 5200000000.0, 5210000000.0, 5220000000.0, 5230000000.0, 5240000000.0, 5260000000.0, 5280000000.0, 5300000000.0, 5320000000.0, 5500000000.0, 5520000000.0, 5540000000.0, 5560000000.0, 5580000000.0, 5600000000.0, 5620000000.0, 5640000000.0, 5660000000.0, 5680000000.0, 5700000000.0, 5745000000.0, 5765000000.0, 5785000000.0, 5805000000.0, 5825000000.0, 5860000000.0, 5870000000.0, 5880000000.0, 5890000000.0, 5900000000.0, 5910000000.0, 5920000000.0] + + + labels + [' 1 | 2412.0 | 11g', ' 2 | 2417.0 | 11g', ' 3 | 2422.0 | 11g', ' 4 | 2427.0 | 11g', ' 5 | 2432.0 | 11g', ' 6 | 2437.0 | 11g', ' 7 | 2442.0 | 11g', ' 8 | 2447.0 | 11g', ' 9 | 2452.0 | 11g', ' 10 | 2457.0 | 11g', ' 11 | 2462.0 | 11g', ' 12 | 2467.0 | 11g', ' 13 | 2472.0 | 11g', ' 14 | 2484.0 | 11g', ' 34 | 5170.0 | 11a', ' 36 | 5180.0 | 11a', ' 38 | 5190.0 | 11a', ' 40 | 5200.0 | 11a', ' 42 | 5210.0 | 11a', ' 44 | 5220.0 | 11a', ' 46 | 5230.0 | 11a', ' 48 | 5240.0 | 11a', ' 52 | 5260.0 | 11a', ' 56 | 5280.0 | 11a', ' 58 | 5300.0 | 11a', ' 60 | 5320.0 | 11a', '100 | 5500.0 | 11a', '104 | 5520.0 | 11a', '108 | 5540.0 | 11a', '112 | 5560.0 | 11a', '116 | 5580.0 | 11a', '120 | 5600.0 | 11a', '124 | 5620.0 | 11a', '128 | 5640.0 | 11a', '132 | 5660.0 | 11a', '136 | 5680.0 | 11a', '140 | 5700.0 | 11a', '149 | 5745.0 | 11a', '153 | 5765.0 | 11a', '157 | 5785.0 | 11a', '161 | 5805.0 | 11a', '165 | 5825.0 | 11a', '172 | 5860.0 | 11p', '174 | 5870.0 | 11p', '176 | 5880.0 | 11p', '178 | 5890.0 | 11p', '180 | 5900.0 | 11p', '182 | 5910.0 | 11p', '184 | 5920.0 | 11p'] + + + type + drop_down + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (169, 4) + + + _rotation + 0 + + + + variable_chooser + + id + samp_rate + + + _enabled + True + + + label + Sample Rate + + + value + 10e6 + + + choices + [10e6, 20e6] + + + labels + ["10 Mhz", "20 Mhz"] + + + type + radio_buttons + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (511, 6) + + + _rotation + 0 + + + + variable_slider + + id + slottime + + + _enabled + True + + + label + CSMA Slot Time + + + value + 1300 + + + min + 0 + + + max + 100000 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + int_converter + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (821, 8) + + + _rotation + 0 + + + + variable_slider + + id + threshold + + + _enabled + True + + + label + CSMA Threshold + + + value + 5000 + + + min + 0 + + + max + 500000 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + int_converter + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (956, 7) + + + _rotation + 0 + + + + variable_chooser + + id + csma_enable + + + _enabled + True + + + label + CSMA + + + value + True + + + choices + [False, True] + + + labels + ["disable", "enable"] + + + type + radio_buttons + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (1090, 7) + + + _rotation + 0 + + + + variable_slider + + id + mult + + + _enabled + True + + + label + + + + value + .38 + + + min + 0 + + + max + 2 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (1102, 142) + + + _rotation + 0 + + + + variable_slider + + id + gain + + + _enabled + True + + + label + + + + value + 25 + + + min + 0 + + + max + 100 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (986, 141) + + + _rotation + 0 + + + + blocks_message_strobe + + id + blocks_message_strobe_0 + + + _enabled + True + + + msg + pmt.intern(" Hello World") + + + period + 300 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (569, 299) + + + _rotation + 180 + + + + blocks_socket_pdu + + id + blocks_socket_pdu_0 + + + _enabled + True + + + type + "UDP_SERVER" + + + host + + + + port + 52001 + + + mtu + 10000 + + + tcp_no_delay + False + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + comment + + + + _coordinate + (63, 232) + + + _rotation + 0 + + + + variable_chooser + + id + encoding + + + _enabled + True + + + label + Encoding + + + value + 0 + + + choices + [0,1,2,3,4,5,6,7] + + + 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"] + + + type + radio_buttons + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (339, 5) + + + _rotation + 0 + + + + variable_chooser + + id + lo_offset + + + _enabled + True + + + label + LO Offset + + + value + 6e6 + + + choices + [0, 6e6, 11e6] + + + labels + ['0 MHz', '6 MHz', '11 MHz'] + + + type + drop_down + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + alias + + + + comment + + + + _coordinate + (648, 6) + + + _rotation + 0 + + uhd_usrp_source @@ -153,12 +1235,16 @@ center_freq0 - uhd.tune_request(freq - lo_offset, lo_offset) + uhd.tune_request(freq, rf_freq = freq - lo_offset, rf_freq_policy=uhd.tune_request.POLICY_MANUAL) gain0 10 + + norm_gain0 + False + ant0 @@ -175,6 +1261,10 @@ gain1 0 + + norm_gain1 + False + ant1 @@ -191,6 +1281,10 @@ gain2 0 + + norm_gain2 + False + ant2 @@ -207,6 +1301,10 @@ gain3 0 + + norm_gain3 + False + ant3 @@ -223,6 +1321,10 @@ gain4 0 + + norm_gain4 + False + ant4 @@ -239,6 +1341,10 @@ gain5 0 + + norm_gain5 + False + ant5 @@ -255,6 +1361,10 @@ gain6 0 + + norm_gain6 + False + ant6 @@ -271,6 +1381,10 @@ gain7 0 + + norm_gain7 + False + ant7 @@ -287,6 +1401,10 @@ gain8 0 + + norm_gain8 + False + ant8 @@ -303,6 +1421,10 @@ gain9 0 + + norm_gain9 + False + ant9 @@ -319,6 +1441,10 @@ gain10 0 + + norm_gain10 + False + ant10 @@ -335,6 +1461,10 @@ gain11 0 + + norm_gain11 + False + ant11 @@ -351,6 +1481,10 @@ gain12 0 + + norm_gain12 + False + ant12 @@ -367,6 +1501,10 @@ gain13 0 + + norm_gain13 + False + ant13 @@ -383,6 +1521,10 @@ gain14 0 + + norm_gain14 + False + ant14 @@ -399,6 +1541,10 @@ gain15 0 + + norm_gain15 + False + ant15 @@ -415,6 +1561,10 @@ gain16 0 + + norm_gain16 + False + ant16 @@ -431,6 +1581,10 @@ gain17 0 + + norm_gain17 + False + ant17 @@ -447,6 +1601,10 @@ gain18 0 + + norm_gain18 + False + ant18 @@ -463,6 +1621,10 @@ gain19 0 + + norm_gain19 + False + ant19 @@ -479,6 +1641,10 @@ gain20 0 + + norm_gain20 + False + ant20 @@ -495,6 +1661,10 @@ gain21 0 + + norm_gain21 + False + ant21 @@ -511,6 +1681,10 @@ gain22 0 + + norm_gain22 + False + ant22 @@ -527,6 +1701,10 @@ gain23 0 + + norm_gain23 + False + ant23 @@ -543,6 +1721,10 @@ gain24 0 + + norm_gain24 + False + ant24 @@ -559,6 +1741,10 @@ gain25 0 + + norm_gain25 + False + ant25 @@ -575,6 +1761,10 @@ gain26 0 + + norm_gain26 + False + ant26 @@ -591,6 +1781,10 @@ gain27 0 + + norm_gain27 + False + ant27 @@ -607,6 +1801,10 @@ gain28 0 + + norm_gain28 + False + ant28 @@ -623,6 +1821,10 @@ gain29 0 + + norm_gain29 + False + ant29 @@ -639,6 +1841,10 @@ gain30 0 + + norm_gain30 + False + ant30 @@ -655,6 +1861,10 @@ gain31 0 + + norm_gain31 + False + ant31 @@ -679,6 +1889,10 @@ maxoutbuf 0 + + comment + + _coordinate (913, 890) @@ -689,10 +1903,10 @@ - blocks_null_sink + blocks_tag_debug id - blocks_null_sink_0 + blocks_tag_debug_0 _enabled @@ -703,16 +1917,24 @@ complex - vlen - 1 + name + + + + filter + "" num_inputs 1 - bus_conns - [[0,],] + vlen + 1 + + + display + True alias @@ -722,9 +1944,13 @@ affinity + + comment + + _coordinate - (1164, 918) + (271, 780) _rotation @@ -883,7 +2109,7 @@ center_freq0 - uhd.tune_request(freq - lo_offset, lo_offset) + uhd.tune_request(freq, rf_freq = freq - lo_offset, rf_freq_policy=uhd.tune_request.POLICY_MANUAL) gain0 @@ -901,6 +2127,10 @@ csma_threshold0 threshold + + norm_gain0 + False + ant0 @@ -929,6 +2159,10 @@ csma_threshold1 0 + + norm_gain1 + False + ant1 @@ -957,6 +2191,10 @@ csma_threshold2 0 + + norm_gain2 + False + ant2 @@ -985,6 +2223,10 @@ csma_threshold3 0 + + norm_gain3 + False + ant3 @@ -1013,6 +2255,10 @@ csma_threshold4 0 + + norm_gain4 + False + ant4 @@ -1041,6 +2287,10 @@ csma_threshold5 0 + + norm_gain5 + False + ant5 @@ -1069,6 +2319,10 @@ csma_threshold6 0 + + norm_gain6 + False + ant6 @@ -1097,6 +2351,10 @@ csma_threshold7 0 + + norm_gain7 + False + ant7 @@ -1125,6 +2383,10 @@ csma_threshold8 0 + + norm_gain8 + False + ant8 @@ -1153,6 +2415,10 @@ csma_threshold9 0 + + norm_gain9 + False + ant9 @@ -1181,6 +2447,10 @@ csma_threshold10 0 + + norm_gain10 + False + ant10 @@ -1209,6 +2479,10 @@ csma_threshold11 0 + + norm_gain11 + False + ant11 @@ -1237,6 +2511,10 @@ csma_threshold12 0 + + norm_gain12 + False + ant12 @@ -1265,6 +2543,10 @@ csma_threshold13 0 + + norm_gain13 + False + ant13 @@ -1293,6 +2575,10 @@ csma_threshold14 0 + + norm_gain14 + False + ant14 @@ -1321,6 +2607,10 @@ csma_threshold15 0 + + norm_gain15 + False + ant15 @@ -1349,6 +2639,10 @@ csma_threshold16 0 + + norm_gain16 + False + ant16 @@ -1377,6 +2671,10 @@ csma_threshold17 0 + + norm_gain17 + False + ant17 @@ -1405,6 +2703,10 @@ csma_threshold18 0 + + norm_gain18 + False + ant18 @@ -1433,6 +2735,10 @@ csma_threshold19 0 + + norm_gain19 + False + ant19 @@ -1461,6 +2767,10 @@ csma_threshold20 0 + + norm_gain20 + False + ant20 @@ -1489,6 +2799,10 @@ csma_threshold21 0 + + norm_gain21 + False + ant21 @@ -1517,6 +2831,10 @@ csma_threshold22 0 + + norm_gain22 + False + ant22 @@ -1545,6 +2863,10 @@ csma_threshold23 0 + + norm_gain23 + False + ant23 @@ -1573,6 +2895,10 @@ csma_threshold24 0 + + norm_gain24 + False + ant24 @@ -1601,6 +2927,10 @@ csma_threshold25 0 + + norm_gain25 + False + ant25 @@ -1629,6 +2959,10 @@ csma_threshold26 0 + + norm_gain26 + False + ant26 @@ -1657,6 +2991,10 @@ csma_threshold27 0 + + norm_gain27 + False + ant27 @@ -1685,6 +3023,10 @@ csma_threshold28 0 + + norm_gain28 + False + ant28 @@ -1713,6 +3055,10 @@ csma_threshold29 0 + + norm_gain29 + False + ant29 @@ -1741,6 +3087,10 @@ csma_threshold30 0 + + norm_gain30 + False + ant30 @@ -1769,6 +3119,10 @@ csma_threshold31 0 + + norm_gain31 + False + ant31 @@ -1789,6 +3143,10 @@ affinity + + comment + + _coordinate (309, 590) @@ -1798,1011 +3156,6 @@ 0 - - foo_packet_pad2 - - id - foo_packet_pad2_0 - - - _enabled - True - - - debug - False - - - delay - False - - - delay_sec - 0.01 - - - pad_front - 0 - - - pad_tail - 0 - - - alias - - - - affinity - - - - minoutbuf - 100000 - - - maxoutbuf - 0 - - - _coordinate - (92, 622) - - - _rotation - 0 - - - - blocks_tag_debug - - id - blocks_tag_debug_0 - - - _enabled - True - - - type - complex - - - name - - - - filter - "" - - - num_inputs - 1 - - - vlen - 1 - - - display - True - - - alias - - - - affinity - - - - _coordinate - (271, 780) - - - _rotation - 0 - - - - blocks_null_source - - id - blocks_null_source_0 - - - _enabled - True - - - type - complex - - - vlen - 1 - - - num_outputs - 1 - - - bus_conns - [[0,],] - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (552, 522) - - - _rotation - 180 - - - - wifi_phy_hier - - id - wifi_phy_hier_0 - - - _enabled - True - - - encoding - encoding - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (345, 488) - - - _rotation - 180 - - - - blocks_multiply_const_vxx - - id - blocks_multiply_const_vxx_0 - - - _enabled - True - - - type - complex - - - const - mult - - - vlen - 1 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (91, 518) - - - _rotation - 180 - - - - ieee802_11_ofdm_mac - - id - ieee802_11_ofdm_mac_0 - - - _enabled - True - - - src_mac - [0x23, 0x23, 0x23, 0x23, 0x23, 0x23] - - - dst_mac - [0x42, 0x42, 0x42, 0x42, 0x42, 0x42] - - - bss_mac - [0xff, 0xff, 0xff, 0xff, 0xff, 0xff] - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (323, 385) - - - _rotation - 0 - - - - ieee802_11_wifi_edca - - id - ieee802_11_wifi_edca_0 - - - _enabled - True - - - cw_min - [15, 15, 7, 3] - - - aifsn - [9, 6, 3, 2] - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (290, 209) - - - _rotation - 180 - - - - options - - id - wifi_tx_csma - - - _enabled - True - - - title - - - - author - - - - description - - - - window_size - 1280, 1024 - - - generate_options - wx_gui - - - category - Custom - - - run_options - run - - - run - True - - - max_nouts - 0 - - - realtime_scheduling - - - - alias - - - - _coordinate - (4, 3) - - - _rotation - 0 - - - - variable_chooser - - id - freq - - - _enabled - True - - - label - Channel - - - value - 5.89e9 - - - choices - [2412000000.0, 2417000000.0, 2422000000.0, 2427000000.0, 2432000000.0, 2437000000.0, 2442000000.0, 2447000000.0, 2452000000.0, 2457000000.0, 2462000000.0, 2467000000.0, 2472000000.0, 2484000000.0, 5170000000.0, 5180000000.0, 5190000000.0, 5200000000.0, 5210000000.0, 5220000000.0, 5230000000.0, 5240000000.0, 5260000000.0, 5280000000.0, 5300000000.0, 5320000000.0, 5500000000.0, 5520000000.0, 5540000000.0, 5560000000.0, 5580000000.0, 5600000000.0, 5620000000.0, 5640000000.0, 5660000000.0, 5680000000.0, 5700000000.0, 5745000000.0, 5765000000.0, 5785000000.0, 5805000000.0, 5825000000.0, 5860000000.0, 5870000000.0, 5880000000.0, 5890000000.0, 5900000000.0, 5910000000.0, 5920000000.0] - - - labels - [' 1 | 2412.0 | 11g', ' 2 | 2417.0 | 11g', ' 3 | 2422.0 | 11g', ' 4 | 2427.0 | 11g', ' 5 | 2432.0 | 11g', ' 6 | 2437.0 | 11g', ' 7 | 2442.0 | 11g', ' 8 | 2447.0 | 11g', ' 9 | 2452.0 | 11g', ' 10 | 2457.0 | 11g', ' 11 | 2462.0 | 11g', ' 12 | 2467.0 | 11g', ' 13 | 2472.0 | 11g', ' 14 | 2484.0 | 11g', ' 34 | 5170.0 | 11a', ' 36 | 5180.0 | 11a', ' 38 | 5190.0 | 11a', ' 40 | 5200.0 | 11a', ' 42 | 5210.0 | 11a', ' 44 | 5220.0 | 11a', ' 46 | 5230.0 | 11a', ' 48 | 5240.0 | 11a', ' 52 | 5260.0 | 11a', ' 56 | 5280.0 | 11a', ' 58 | 5300.0 | 11a', ' 60 | 5320.0 | 11a', '100 | 5500.0 | 11a', '104 | 5520.0 | 11a', '108 | 5540.0 | 11a', '112 | 5560.0 | 11a', '116 | 5580.0 | 11a', '120 | 5600.0 | 11a', '124 | 5620.0 | 11a', '128 | 5640.0 | 11a', '132 | 5660.0 | 11a', '136 | 5680.0 | 11a', '140 | 5700.0 | 11a', '149 | 5745.0 | 11a', '153 | 5765.0 | 11a', '157 | 5785.0 | 11a', '161 | 5805.0 | 11a', '165 | 5825.0 | 11a', '172 | 5860.0 | 11p', '174 | 5870.0 | 11p', '176 | 5880.0 | 11p', '178 | 5890.0 | 11p', '180 | 5900.0 | 11p', '182 | 5910.0 | 11p', '184 | 5920.0 | 11p'] - - - type - drop_down - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (169, 4) - - - _rotation - 0 - - - - variable_chooser - - id - encoding - - - _enabled - True - - - label - Encoding - - - value - 0 - - - choices - [0,1,2,3,4,5,6,7] - - - 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"] - - - type - radio_buttons - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (339, 5) - - - _rotation - 0 - - - - variable_chooser - - id - samp_rate - - - _enabled - True - - - label - Sample Rate - - - value - 10e6 - - - choices - [10e6, 20e6] - - - labels - ["10 Mhz", "20 Mhz"] - - - type - radio_buttons - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (511, 6) - - - _rotation - 0 - - - - variable_chooser - - id - lo_offset - - - _enabled - True - - - label - LO Offset - - - value - 6e9 - - - choices - [0, 6e9, 11e9] - - - labels - ['0 MHz', '6 MHz', '11 MHz'] - - - type - drop_down - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (648, 6) - - - _rotation - 0 - - - - variable_slider - - id - slottime - - - _enabled - True - - - label - CSMA Slot Time - - - value - 1300 - - - min - 0 - - - max - 100000 - - - num_steps - 100 - - - style - wx.SL_HORIZONTAL - - - converver - int_converter - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (821, 8) - - - _rotation - 0 - - - - variable_slider - - id - threshold - - - _enabled - True - - - label - CSMA Threshold - - - value - 5000 - - - min - 0 - - - max - 500000 - - - num_steps - 100 - - - style - wx.SL_HORIZONTAL - - - converver - int_converter - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (956, 7) - - - _rotation - 0 - - - - variable_chooser - - id - csma_enable - - - _enabled - True - - - label - CSMA - - - value - True - - - choices - [False, True] - - - labels - ["disable", "enable"] - - - type - radio_buttons - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (1090, 7) - - - _rotation - 0 - - - - variable_slider - - id - mult - - - _enabled - True - - - label - - - - value - .38 - - - min - 0 - - - max - 2 - - - num_steps - 100 - - - style - wx.SL_HORIZONTAL - - - converver - float_converter - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (1102, 142) - - - _rotation - 0 - - - - variable_slider - - id - gain - - - _enabled - True - - - label - - - - value - 25 - - - min - 0 - - - max - 100 - - - num_steps - 100 - - - style - wx.SL_HORIZONTAL - - - converver - float_converter - - - grid_pos - - - - notebook - - - - alias - - - - _coordinate - (986, 141) - - - _rotation - 0 - - - - blocks_message_strobe - - id - blocks_message_strobe_0 - - - _enabled - True - - - msg - pmt.intern(" Hello World") - - - period - 300 - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (569, 299) - - - _rotation - 180 - - - - blocks_socket_pdu - - id - blocks_socket_pdu_0 - - - _enabled - True - - - type - "UDP_SERVER" - - - host - - - - port - 52001 - - - mtu - 10000 - - - tcp_no_delay - False - - - alias - - - - affinity - - - - minoutbuf - 0 - - - maxoutbuf - 0 - - - _coordinate - (63, 232) - - - _rotation - 0 - - blocks_socket_pdu_0 ieee802_11_ofdm_mac_0