From a4b184e64f8d55008b95b64f7913aaec81df0670 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Thu, 10 Oct 2013 11:04:20 +0200 Subject: [PATCH] new flow graphs --- examples/ofdm_loopback.grc | 872 +++++++++++ examples/ofdm_phy_hier.grc | 1298 ++++++++++++++++ examples/ofdm_rx.grc | 1640 ++++++++++---------- examples/ofdm_rx_nogui.grc | 1817 ++++++++++++++++++++++ examples/ofdm_sim.grc | 710 +++++++++ examples/ofdm_transceiver.grc | 2068 ++++++++++++++++++++++++++ examples/ofdm_transceiver_no_gui.grc | 1954 ++++++++++++++++++++++++ examples/ofdm_tx.grc | 1285 ++++++++++++++++ examples/ofdm_tx_nogui.grc | 1355 +++++++++++++++++ examples/rx_demo.grc | 1710 +++++++++++---------- 10 files changed, 13129 insertions(+), 1580 deletions(-) create mode 100644 examples/ofdm_loopback.grc create mode 100644 examples/ofdm_phy_hier.grc create mode 100644 examples/ofdm_rx_nogui.grc create mode 100644 examples/ofdm_sim.grc create mode 100644 examples/ofdm_transceiver.grc create mode 100644 examples/ofdm_transceiver_no_gui.grc create mode 100644 examples/ofdm_tx.grc create mode 100644 examples/ofdm_tx_nogui.grc diff --git a/examples/ofdm_loopback.grc b/examples/ofdm_loopback.grc new file mode 100644 index 0000000..6bca5c2 --- /dev/null +++ b/examples/ofdm_loopback.grc @@ -0,0 +1,872 @@ + + + Mon Aug 26 12:18:50 2013 + + options + + id + ofdm_loopback + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (7, 4) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 20000000 + + + _coordinate + (179, 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 + + + + _coordinate + (1067, 10) + + + _rotation + 0 + + + + analog_sig_source_x + + id + analog_sig_source_x_0 + + + _enabled + True + + + type + complex + + + samp_rate + samp_rate + + + waveform + analog.GR_COS_WAVE + + + freq + freq_offset + + + amp + 1 + + + offset + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (344, 442) + + + _rotation + 0 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + 60000 + + + pad_tail + 20000 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (365, 354) + + + _rotation + 0 + + + + foo_wireshark_connector + + id + foo_wireshark_connector_0 + + + _enabled + False + + + tech + 127 + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (629, 184) + + + _rotation + 0 + + + + blocks_file_sink + + id + blocks_file_sink_0 + + + _enabled + False + + + file + /tmp/ofdm.bin + + + type + byte + + + vlen + 1 + + + unbuffered + True + + + append + False + + + affinity + + + + _coordinate + (866, 176) + + + _rotation + 0 + + + + blocks_ctrlport_monitor_performance + + id + blocks_ctrlport_monitor_performance_0 + + + _enabled + False + + + en + True + + + _coordinate + (1055, 164) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + False + + + en + True + + + _coordinate + (1089, 216) + + + _rotation + 0 + + + + variable_slider + + id + freq_offset + + + _enabled + True + + + label + + + + value + 500 + + + min + -10000 + + + max + 10000 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (947, 7) + + + _rotation + 0 + + + + analog_noise_source_x + + id + analog_noise_source_x_0 + + + _enabled + True + + + type + complex + + + noise_type + analog.GR_GAUSSIAN + + + amp + (noise_power/2.0)**0.5 + + + seed + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (728, 258) + + + _rotation + 180 + + + + variable_slider + + id + noise_power + + + _enabled + True + + + label + + + + value + 0 + + + min + 0 + + + max + 5 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (829, 5) + + + _rotation + 0 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (551, 374) + + + _rotation + 0 + + + + blocks_add_xx + + id + blocks_add_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (583, 278) + + + _rotation + 180 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + signal_power + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (721, 437) + + + _rotation + 0 + + + + variable_slider + + id + signal_power + + + _enabled + True + + + label + + + + value + 0.39 + + + min + 0 + + + max + 3 + + + num_steps + 1000 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (687, 15) + + + _rotation + 0 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (373, 162) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + affinity + + + + _coordinate + (113, 249) + + + _rotation + 180 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_1 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (359, 261) + + + _rotation + 180 + + + + blocks_message_strobe + + id + blocks_message_strobe_0 + + + _enabled + True + + + msg + pmt.intern("Hello World") + + + period + 200 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (62, 150) + + + _rotation + 0 + + + + foo_wireshark_connector_0 + blocks_file_sink_0 + 0 + 0 + + + analog_sig_source_x_0 + blocks_multiply_xx_0 + 0 + 1 + + + foo_packet_pad_0 + blocks_multiply_xx_0 + 0 + 0 + + + ofdm_phy_hier_1 + foo_packet_pad_0 + 0 + 0 + + + analog_noise_source_x_0 + blocks_add_xx_0 + 0 + 1 + + + blocks_add_xx_0 + ofdm_phy_hier_1 + 0 + 0 + + + blocks_message_strobe_0 + ieee802_11_ofdm_mac_0 + 0 + 0 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_mac_0 + 1 + 1 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_1 + 1 + 1 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_parse_mac_0 + 1 + 0 + + + blocks_multiply_xx_0 + blocks_multiply_const_vxx_0 + 0 + 0 + + + blocks_multiply_const_vxx_0 + blocks_add_xx_0 + 0 + 0 + + diff --git a/examples/ofdm_phy_hier.grc b/examples/ofdm_phy_hier.grc new file mode 100644 index 0000000..a169470 --- /dev/null +++ b/examples/ofdm_phy_hier.grc @@ -0,0 +1,1298 @@ + + + Mon Oct 7 02:23:53 2013 + + options + + id + ofdm_phy_hier + + + _enabled + True + + + title + OFDM PHY Hier + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + hb + + + category + IEEE802.11 + + + run_options + prompt + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + variable + + id + window_size + + + _enabled + True + + + value + 48 + + + _coordinate + (323, 14) + + + _rotation + 0 + + + + variable + + id + sync_length + + + _enabled + True + + + value + 320 + + + _coordinate + (213, 13) + + + _rotation + 0 + + + + pad_source + + id + pad_source_0 + + + _enabled + True + + + label + samp_in + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (48, 386) + + + _rotation + 0 + + + + blocks_conjugate_cc + + id + blocks_conjugate_cc_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (370, 480) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0_0 + + + _enabled + True + + + type + complex + + + delay + 16 + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (224, 476) + + + _rotation + 0 + + + + fft_vxx + + id + fft_vxx_0_1 + + + _enabled + True + + + type + complex + + + fft_size + 64 + + + forward + True + + + window + + + + shift + True + + + nthreads + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1000, 777) + + + _rotation + 180 + + + + ieee802_11_ofdm_equalize_symbols + + id + ieee802_11_ofdm_equalize_symbols_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (754, 809) + + + _rotation + 180 + + + + pad_sink + + id + pad_sink_0 + + + _enabled + True + + + label + samp_out + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (175, 254) + + + _rotation + 180 + + + + parameter + + id + encoding + + + _enabled + True + + + label + + + + value + 0 + + + type + intx + + + short_id + + + + _coordinate + (429, 10) + + + _rotation + 0 + + + + blocks_stream_to_vector + + id + blocks_stream_to_vector_0 + + + _enabled + True + + + type + complex + + + num_items + 64 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1013, 661) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0 + + + _enabled + True + + + type + complex + + + delay + sync_length + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (449, 678) + + + _rotation + 0 + + + + pad_source + + id + pad_source_1 + + + _enabled + True + + + label + mac_in + + + type + message + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (131, 116) + + + _rotation + 0 + + + + pad_sink + + id + pad_sink_1 + + + _enabled + True + + + label + mac_out + + + type + message + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (65, 809) + + + _rotation + 180 + + + + ieee802_11_ofdm_decode_mac + + id + ieee802_11_ofdm_decode_mac_0 + + + _enabled + True + + + log + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (260, 801) + + + _rotation + 180 + + + + ieee802_11_ofdm_sync_long + + id + sync_long + + + _enabled + True + + + log + False + + + debug + False + + + sync_length + sync_length + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (669, 645) + + + _rotation + 0 + + + + ieee802_11_ofdm_decode_signal + + id + ieee802_11_ofdm_decode_signal_0 + + + _enabled + True + + + log + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (511, 801) + + + _rotation + 180 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (596, 446) + + + _rotation + 0 + + + + blocks_complex_to_mag + + id + blocks_complex_to_mag_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (960, 463) + + + _rotation + 0 + + + + blocks_complex_to_mag_squared + + id + blocks_complex_to_mag_squared_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (586, 390) + + + _rotation + 0 + + + + blocks_divide_xx + + id + blocks_divide_xx_0 + + + _enabled + True + + + type + float + + + vlen + 1 + + + num_inputs + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1116, 540) + + + _rotation + 270 + + + + digital_ofdm_cyclic_prefixer + + id + digital_ofdm_cyclic_prefixer_0 + + + _enabled + True + + + input_size + 64 + + + cp_len + 16 + + + rolloff + 2 + + + tagname + + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (956, 238) + + + _rotation + 180 + + + + ieee802_11_ofdm_preamble + + id + ieee802_11_ofdm_preamble_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (491, 254) + + + _rotation + 180 + + + + ieee802_11_ofdm_mapper + + id + ieee802_11_ofdm_mapper_0 + + + _enabled + True + + + encoding + encoding + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (382, 108) + + + _rotation + 0 + + + + ieee802_11_ofdm_pilot + + id + ieee802_11_ofdm_pilot_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (630, 116) + + + _rotation + 0 + + + + fft_vxx + + id + fft_vxx_0 + + + _enabled + True + + + type + complex + + + fft_size + 64 + + + forward + False + + + window + window.rectangular(64) + + + shift + True + + + nthreads + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (850, 84) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0 + + + _enabled + True + + + type + complex + + + const + 1/52**0.5 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (741, 254) + + + _rotation + 180 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_1 + + + _enabled + True + + + type + complex + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (759, 459) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_0 + + + _enabled + True + + + type + float + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (867, 386) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_short + + id + sync_short + + + _enabled + True + + + log + True + + + debug + False + + + threshold + 0.7 + + + max_samples + 80 * 140 + + + min_plateau + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (169, 612) + + + _rotation + 0 + + + + fft_vxx_0 + digital_ofdm_cyclic_prefixer_0 + 0 + 0 + + + blocks_complex_to_mag_0 + blocks_divide_xx_0 + 0 + 0 + + + blocks_conjugate_cc_0 + blocks_multiply_xx_0 + 0 + 1 + + + blocks_delay_0_0 + blocks_conjugate_cc_0 + 0 + 0 + + + pad_source_0 + blocks_delay_0_0 + 0 + 0 + + + pad_source_0 + blocks_complex_to_mag_squared_0 + 0 + 0 + + + pad_source_0 + blocks_multiply_xx_0 + 0 + 0 + + + blocks_stream_to_vector_0 + fft_vxx_0_1 + 0 + 0 + + + digital_ofdm_cyclic_prefixer_0 + blocks_multiply_const_vxx_0 + 0 + 0 + + + blocks_delay_0_0 + sync_short + 0 + 0 + + + sync_long + blocks_stream_to_vector_0 + 0 + 0 + + + ieee802_11_ofdm_decode_signal_0 + ieee802_11_ofdm_decode_mac_0 + 0 + 0 + + + ieee802_11_ofdm_equalize_symbols_0 + ieee802_11_ofdm_decode_signal_0 + 0 + 0 + + + fft_vxx_0_1 + ieee802_11_ofdm_equalize_symbols_0 + 0 + 0 + + + blocks_multiply_const_vxx_0 + ieee802_11_ofdm_preamble_0 + 0 + 0 + + + ieee802_11_ofdm_mapper_0 + ieee802_11_ofdm_pilot_0 + 0 + 0 + + + ieee802_11_ofdm_pilot_0 + fft_vxx_0 + 0 + 0 + + + ieee802_11_ofdm_preamble_0 + pad_sink_0 + 0 + 0 + + + sync_short + blocks_delay_0 + 0 + 0 + + + blocks_delay_0 + sync_long + 0 + 1 + + + sync_short + sync_long + 0 + 0 + + + blocks_divide_xx_0 + sync_short + 0 + 1 + + + blocks_multiply_xx_0 + ieee802_11_moving_average_xx_1 + 0 + 0 + + + ieee802_11_moving_average_xx_1 + blocks_complex_to_mag_0 + 0 + 0 + + + blocks_complex_to_mag_squared_0 + ieee802_11_moving_average_xx_0 + 0 + 0 + + + ieee802_11_moving_average_xx_0 + blocks_divide_xx_0 + 0 + 1 + + + pad_source_1 + ieee802_11_ofdm_mapper_0 + 0 + 0 + + + ieee802_11_ofdm_decode_mac_0 + pad_sink_1 + 0 + 0 + + diff --git a/examples/ofdm_rx.grc b/examples/ofdm_rx.grc index 84389e6..9200bb3 100644 --- a/examples/ofdm_rx.grc +++ b/examples/ofdm_rx.grc @@ -1,6 +1,6 @@ - Tue Jul 16 13:04:42 2013 + Wed Sep 25 15:49:06 2013 options @@ -60,6 +60,161 @@ 0 + + variable + + id + sync_length + + + _enabled + True + + + value + 320 - 64 + + + _coordinate + (459, 46) + + + _rotation + 0 + + + + variable + + id + window_size + + + _enabled + True + + + value + 48 + + + _coordinate + (562, 49) + + + _rotation + 0 + + + + fft_vxx + + id + fft_vxx_0 + + + _enabled + True + + + type + complex + + + fft_size + 64 + + + forward + True + + + window + + + + shift + True + + + nthreads + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (91, 697) + + + _rotation + 0 + + + + blocks_conjugate_cc + + id + gr_conjugate_cc_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (329, 320) + + + _rotation + 0 + + + + ieee802_11_ofdm_equalize_symbols + + id + ieee802_11_ofdm_equalize_symbols_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (465, 729) + + + _rotation + 0 + + variable_slider @@ -76,7 +231,7 @@ value - 30 + 27 min @@ -115,6 +270,676 @@ 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 + + + + _coordinate + (808, 20) + + + _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 + + + + _coordinate + (992, 24) + + + _rotation + 0 + + + + blocks_delay + + id + gr_delay_0_0 + + + _enabled + True + + + type + complex + + + delay + sync_length + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (354, 539) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_long + + id + ieee802_11_ofdm_sync_long_0 + + + _enabled + True + + + log + False + + + debug + False + + + sync_length + sync_length + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (571, 506) + + + _rotation + 0 + + + + blocks_stream_to_vector + + id + gr_stream_to_vector_0 + + + _enabled + True + + + type + complex + + + num_items + 64 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (864, 522) + + + _rotation + 0 + + + + blocks_complex_to_mag + + id + gr_complex_to_mag_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (977, 303) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_0 + + + _enabled + True + + + type + complex + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (738, 299) + + + _rotation + 0 + + + + blocks_divide_xx + + id + gr_divide_xx_0 + + + _enabled + True + + + type + float + + + vlen + 1 + + + num_inputs + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1154, 383) + + + _rotation + 270 + + + + ieee802_11_ofdm_decode_signal + + id + ieee802_11_ofdm_decode_signal_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (819, 721) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_1 + + + _enabled + True + + + type + float + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (626, 215) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + affinity + + + + _coordinate + (1030, 857) + + + _rotation + 180 + + + + ieee802_11_ofdm_decode_mac + + id + ieee802_11_ofdm_decode_mac_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1068, 721) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + False + + + en + True + + + _coordinate + (828, 166) + + + _rotation + 0 + + + + blocks_ctrlport_monitor_performance + + id + blocks_ctrlport_monitor_performance_0 + + + _enabled + False + + + en + True + + + _coordinate + (972, 169) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_short + + id + ieee802_11_ofdm_sync_short_0 + + + _enabled + True + + + log + False + + + debug + True + + + threshold + 0.8 + + + max_samples + 80 * 160 + + + min_plateau + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (100, 473) + + + _rotation + 0 + + + + blocks_delay + + id + gr_delay_0 + + + _enabled + True + + + type + complex + + + delay + 16 + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (112, 316) + + + _rotation + 0 + + + + blocks_complex_to_mag_squared + + id + gr_complex_to_mag_squared_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (340, 219) + + + _rotation + 0 + + + + blocks_multiply_xx + + id + gr_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (588, 286) + + + _rotation + 0 + + uhd_usrp_source @@ -137,6 +962,10 @@ stream_args + + stream_chans + [] + dev_addr @@ -770,749 +1599,22 @@ 0 - _coordinate - (105, 8) + affinity + - _rotation - 180 - - - - blocks_skiphead - - id - gr_skiphead_0 - - - _enabled - True - - - type - complex - - - num_items - 20000000 - - - vlen - 1 + minoutbuf + 0 _coordinate - (39, 100) + (24, 33) _rotation 270 - - fir_filter_xxx - - id - fir_filter_xxx_0_0 - - - _enabled - True - - - type - ccf - - - decim - 1 - - - taps - [1]*window_size - - - _coordinate - (740, 291) - - - _rotation - 0 - - - - blocks_multiply_xx - - id - gr_multiply_xx_0 - - - _enabled - True - - - type - complex - - - num_inputs - 2 - - - vlen - 1 - - - _coordinate - (588, 286) - - - _rotation - 0 - - - - blocks_complex_to_mag - - id - gr_complex_to_mag_0 - - - _enabled - True - - - vlen - 1 - - - _coordinate - (977, 303) - - - _rotation - 0 - - - - fft_vxx - - id - fft_vxx_0 - - - _enabled - True - - - type - complex - - - fft_size - 64 - - - forward - True - - - window - - - - shift - True - - - nthreads - 1 - - - _coordinate - (91, 697) - - - _rotation - 0 - - - - blocks_complex_to_mag_squared - - id - gr_complex_to_mag_squared_0 - - - _enabled - True - - - vlen - 1 - - - _coordinate - (340, 218) - - - _rotation - 0 - - - - fir_filter_xxx - - id - fir_filter_xxx_0 - - - _enabled - True - - - type - fff - - - decim - 1 - - - taps - [1]*window_size - - - _coordinate - (578, 206) - - - _rotation - 0 - - - - variable_chooser - - id - samp_rate - - - _enabled - True - - - label - Sample Rate - - - value - 20e6 - - - choices - [10e6, 20e6] - - - labels - ["10 Mhz", "20 Mhz"] - - - type - radio_buttons - - - style - wx.RA_HORIZONTAL - - - grid_pos - - - - notebook - - - - _coordinate - (992, 24) - - - _rotation - 0 - - - - blocks_divide_xx - - id - gr_divide_xx_0 - - - _enabled - True - - - type - float - - - vlen - 1 - - - num_inputs - 2 - - - _coordinate - (1154, 383) - - - _rotation - 270 - - - - blocks_conjugate_cc - - id - gr_conjugate_cc_0 - - - _enabled - True - - - _coordinate - (329, 320) - - - _rotation - 0 - - - - ieee802_11_ofdm_sync_long - - id - ieee802_11_ofdm_sync_long_0 - - - _enabled - True - - - debug - False - - - sync_length - sync_length - - - freq_est - 100 - - - _coordinate - (568, 498) - - - _rotation - 0 - - - - blocks_delay - - id - gr_delay_0_0 - - - _enabled - True - - - type - complex - - - delay - sync_length - - - num_ports - 1 - - - vlen - 1 - - - _coordinate - (349, 531) - - - _rotation - 0 - - - - blocks_delay - - id - gr_delay_0 - - - _enabled - True - - - type - complex - - - delay - 16 - - - num_ports - 1 - - - vlen - 1 - - - _coordinate - (112, 316) - - - _rotation - 0 - - - - variable - - id - window_size - - - _enabled - True - - - value - 48 - - - _coordinate - (562, 49) - - - _rotation - 0 - - - - variable - - id - sync_length - - - _enabled - True - - - value - 320 - 64 - - - _coordinate - (459, 46) - - - _rotation - 0 - - - - variable_chooser - - id - freq - - - _enabled - True - - - label - Channel - - - value - 5.22e9 - - - 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 - - - - _coordinate - (808, 20) - - - _rotation - 0 - - - - ieee802_11_ofdm_equalize_symbols - - id - ieee802_11_ofdm_equalize_symbols_0 - - - _enabled - True - - - debug - False - - - _coordinate - (465, 729) - - - _rotation - 0 - - - - ieee802_11_ofdm_decode_signal - - id - ieee802_11_ofdm_decode_signal_0 - - - _enabled - True - - - debug - False - - - _coordinate - (825, 729) - - - _rotation - 0 - - - - ieee802_11_ofdm_sync_short - - id - ieee802_11_ofdm_sync_short_0 - - - _enabled - True - - - debug - False - - - threshold - 0.8 - - - max_samples - 80 * 160 - - - min_plateau - 2 - - - _coordinate - (100, 473) - - - _rotation - 0 - - - - blocks_socket_pdu - - id - gr_socket_pdu_0 - - - _enabled - True - - - type - "UDP_SERVER" - - - host - - - - port - 12345 - - - mtu - 10000 - - - _coordinate - (771, 839) - - - _rotation - 180 - - - - ieee802_11_ofdm_decode_mac - - id - ieee802_11_ofdm_decode_mac_0 - - - _enabled - True - - - debug - False - - - _coordinate - (1069, 729) - - - _rotation - 0 - - - - ieee802_11_ofdm_parse_mac - - id - ieee802_11_ofdm_parse_mac_0 - - - _enabled - True - - - debug - True - - - _coordinate - (1030, 857) - - - _rotation - 180 - - - - blocks_stream_to_vector - - id - gr_stream_to_vector_0 - - - _enabled - True - - - type - complex - - - num_items - 64 - - - vlen - 1 - - - _coordinate - (885, 514) - - - _rotation - 0 - - - - uhd_usrp_source_0 - gr_skiphead_0 - 0 - 0 - - - gr_skiphead_0 - gr_complex_to_mag_squared_0 - 0 - 0 - - - fir_filter_xxx_0 - gr_divide_xx_0 - 0 - 1 - - - gr_complex_to_mag_squared_0 - fir_filter_xxx_0 - 0 - 0 - - - gr_skiphead_0 - gr_multiply_xx_0 - 0 - 0 - gr_conjugate_cc_0 gr_multiply_xx_0 @@ -1525,24 +1627,6 @@ 0 0 - - gr_multiply_xx_0 - fir_filter_xxx_0_0 - 0 - 0 - - - fir_filter_xxx_0_0 - gr_complex_to_mag_0 - 0 - 0 - - - gr_skiphead_0 - gr_delay_0 - 0 - 0 - gr_delay_0 gr_conjugate_cc_0 @@ -1604,21 +1688,57 @@ 1 - ieee802_11_ofdm_parse_mac_0 - gr_socket_pdu_0 + ieee802_11_ofdm_sync_long_0 + gr_stream_to_vector_0 0 0 + + uhd_usrp_source_0 + gr_complex_to_mag_squared_0 + 0 + 0 + + + uhd_usrp_source_0 + gr_delay_0 + 0 + 0 + + + uhd_usrp_source_0 + gr_multiply_xx_0 + 0 + 0 + + + gr_multiply_xx_0 + ieee802_11_moving_average_xx_0 + 0 + 0 + + + ieee802_11_moving_average_xx_0 + gr_complex_to_mag_0 + 0 + 0 + + + gr_complex_to_mag_squared_0 + ieee802_11_moving_average_xx_1 + 0 + 0 + + + ieee802_11_moving_average_xx_1 + gr_divide_xx_0 + 0 + 1 + ieee802_11_ofdm_decode_mac_0 ieee802_11_ofdm_parse_mac_0 0 0 - - ieee802_11_ofdm_sync_long_0 - gr_stream_to_vector_0 - 0 - 0 - diff --git a/examples/ofdm_rx_nogui.grc b/examples/ofdm_rx_nogui.grc new file mode 100644 index 0000000..fd4a4b9 --- /dev/null +++ b/examples/ofdm_rx_nogui.grc @@ -0,0 +1,1817 @@ + + + Sat Oct 5 15:30:07 2013 + + options + + id + ofdm_rx_nogui + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + no_gui + + + category + Custom + + + run_options + run + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (280, 15) + + + _rotation + 0 + + + + variable + + id + freq + + + _enabled + True + + + value + 5.89e9 + + + _coordinate + (687, 27) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 10e6 + + + _coordinate + (592, 24) + + + _rotation + 0 + + + + variable + + id + window_size + + + _enabled + True + + + value + 48 + + + _coordinate + (487, 24) + + + _rotation + 0 + + + + blocks_conjugate_cc + + id + blocks_conjugate_cc_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (376, 323) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_short + + id + ieee802_11_ofdm_sync_short_0 + + + _enabled + True + + + log + False + + + debug + False + + + threshold + 0.8 + + + max_samples + 80 * 160 + + + min_plateau + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (279, 478) + + + _rotation + 0 + + + + fft_vxx + + id + fft_vxx_0 + + + _enabled + True + + + type + complex + + + fft_size + 64 + + + forward + True + + + window + + + + shift + True + + + nthreads + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (91, 697) + + + _rotation + 0 + + + + foo_wireshark_connector + + id + foo_wireshark_connector_0 + + + _enabled + True + + + tech + 127 + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (925, 943) + + + _rotation + 180 + + + + blocks_file_sink + + id + blocks_file_sink_0 + + + _enabled + True + + + file + /tmp/unex_sdr_90dB.pcap + + + type + byte + + + vlen + 1 + + + unbuffered + True + + + append + False + + + affinity + + + + _coordinate + (687, 935) + + + _rotation + 180 + + + + ieee802_11_ofdm_decode_signal + + id + ieee802_11_ofdm_decode_signal_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (660, 721) + + + _rotation + 0 + + + + ieee802_11_ofdm_decode_mac + + id + ieee802_11_ofdm_decode_mac_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (919, 721) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + True + + + en + True + + + _coordinate + (565, 135) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0 + + + _enabled + True + + + type + complex + + + delay + 16 + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (133, 319) + + + _rotation + 0 + + + + uhd_usrp_source + + id + uhd_usrp_source_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (104, 98) + + + _rotation + 180 + + + + blocks_complex_to_mag_squared + + id + blocks_complex_to_mag_squared_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (341, 218) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_0 + + + _enabled + True + + + type + float + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (650, 214) + + + _rotation + 0 + + + + blocks_divide_xx + + id + blocks_divide_xx_0 + + + _enabled + True + + + type + float + + + vlen + 1 + + + num_inputs + 2 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1124, 384) + + + _rotation + 270 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (601, 289) + + + _rotation + 0 + + + + blocks_complex_to_mag + + id + blocks_complex_to_mag_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (968, 306) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_1 + + + _enabled + True + + + type + complex + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (753, 302) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_long + + id + ieee802_11_ofdm_sync_long_0 + + + _enabled + True + + + log + False + + + debug + False + + + sync_length + delay + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (705, 511) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0_0 + + + _enabled + True + + + type + complex + + + delay + delay + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (493, 544) + + + _rotation + 0 + + + + blocks_stream_to_vector + + id + blocks_stream_to_vector_0 + + + _enabled + True + + + type + complex + + + num_items + 64 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (951, 527) + + + _rotation + 0 + + + + parameter + + id + delay + + + _enabled + True + + + label + delay + + + value + 320 + + + type + intx + + + short_id + + + + _coordinate + (812, 19) + + + _rotation + 0 + + + + parameter + + id + gain + + + _enabled + True + + + label + gain + + + value + 40 + + + type + intx + + + short_id + + + + _coordinate + (906, 21) + + + _rotation + 0 + + + + parameter + + id + plateau + + + _enabled + True + + + label + plateau + + + value + 2 + + + type + intx + + + short_id + + + + _coordinate + (1003, 20) + + + _rotation + 0 + + + + parameter + + id + threshold + + + _enabled + True + + + label + threshold + + + value + 0.8 + + + type + eng_float + + + short_id + + + + _coordinate + (1109, 17) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + _coordinate + (947, 840) + + + _rotation + 180 + + + + ieee802_11_ofdm_equalize_symbols + + id + ieee802_11_ofdm_equalize_symbols_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (382, 729) + + + _rotation + 0 + + + + blocks_complex_to_mag_0 + blocks_divide_xx_0 + 0 + 0 + + + blocks_conjugate_cc_0 + blocks_multiply_xx_0 + 0 + 1 + + + blocks_delay_0 + blocks_conjugate_cc_0 + 0 + 0 + + + blocks_stream_to_vector_0 + fft_vxx_0 + 0 + 0 + + + ieee802_11_ofdm_sync_short_0 + ieee802_11_ofdm_sync_long_0 + 0 + 0 + + + ieee802_11_ofdm_equalize_symbols_0 + ieee802_11_ofdm_decode_signal_0 + 0 + 0 + + + blocks_divide_xx_0 + ieee802_11_ofdm_sync_short_0 + 0 + 1 + + + blocks_delay_0 + ieee802_11_ofdm_sync_short_0 + 0 + 0 + + + ieee802_11_ofdm_sync_short_0 + blocks_delay_0_0 + 0 + 0 + + + blocks_delay_0_0 + ieee802_11_ofdm_sync_long_0 + 0 + 1 + + + ieee802_11_ofdm_sync_long_0 + blocks_stream_to_vector_0 + 0 + 0 + + + fft_vxx_0 + ieee802_11_ofdm_equalize_symbols_0 + 0 + 0 + + + ieee802_11_ofdm_decode_signal_0 + ieee802_11_ofdm_decode_mac_0 + 0 + 0 + + + ieee802_11_ofdm_decode_mac_0 + foo_wireshark_connector_0 + 0 + 0 + + + foo_wireshark_connector_0 + blocks_file_sink_0 + 0 + 0 + + + ieee802_11_ofdm_decode_mac_0 + ieee802_11_ofdm_parse_mac_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_complex_to_mag_squared_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_delay_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_multiply_xx_0 + 0 + 0 + + + blocks_complex_to_mag_squared_0 + ieee802_11_moving_average_xx_0 + 0 + 0 + + + ieee802_11_moving_average_xx_0 + blocks_divide_xx_0 + 0 + 1 + + + blocks_multiply_xx_0 + ieee802_11_moving_average_xx_1 + 0 + 0 + + + ieee802_11_moving_average_xx_1 + blocks_complex_to_mag_0 + 0 + 0 + + diff --git a/examples/ofdm_sim.grc b/examples/ofdm_sim.grc new file mode 100644 index 0000000..2d97838 --- /dev/null +++ b/examples/ofdm_sim.grc @@ -0,0 +1,710 @@ + + + Wed Aug 28 12:48:20 2013 + + options + + id + ofdm_sim + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + no_gui + + + category + Custom + + + run_options + run + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (6, 5) + + + _rotation + 0 + + + + variable + + id + samp_rate + + + _enabled + True + + + value + 20000000 + + + _coordinate + (1067, 17) + + + _rotation + 0 + + + + parameter + + id + freq_offset + + + _enabled + True + + + label + + + + value + 0 + + + type + eng_float + + + short_id + + + + _coordinate + (967, 14) + + + _rotation + 0 + + + + analog_sig_source_x + + id + analog_sig_source_x_0 + + + _enabled + True + + + type + complex + + + samp_rate + samp_rate + + + waveform + analog.GR_COS_WAVE + + + freq + freq_offset + + + amp + 1 + + + offset + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (459, 447) + + + _rotation + 0 + + + + blocks_add_xx + + id + blocks_add_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (742, 282) + + + _rotation + 180 + + + + parameter + + id + seed + + + _enabled + True + + + label + + + + value + 0 + + + type + long + + + short_id + + + + _coordinate + (877, 16) + + + _rotation + 0 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (695, 377) + + + _rotation + 0 + + + + parameter + + id + snr + + + _enabled + True + + + label + + + + value + 10 + + + type + eng_float + + + short_id + + + + _coordinate + (767, 19) + + + _rotation + 0 + + + + analog_noise_source_x + + id + analog_noise_source_x_0 + + + _enabled + True + + + type + complex + + + noise_type + analog.GR_GAUSSIAN + + + amp + ((10**(-snr/10.0))/2.0)**0.5 + + + seed + seed + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (860, 262) + + + _rotation + 180 + + + + parameter + + id + encoding + + + _enabled + True + + + label + + + + value + 0 + + + type + intx + + + short_id + + + + _coordinate + (676, 15) + + + _rotation + 0 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_1 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (497, 265) + + + _rotation + 180 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + 0 + + + pad_tail + 15000 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (467, 357) + + + _rotation + 0 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (501, 166) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + True + + + debug + True + + + affinity + + + + _coordinate + (250, 253) + + + _rotation + 180 + + + + import + + id + import_0 + + + _enabled + True + + + import + import random + + + _coordinate + (467, 25) + + + _rotation + 0 + + + + import + + id + import_1 + + + _enabled + True + + + import + import string + + + _coordinate + (573, 25) + + + _rotation + 0 + + + + parameter + + id + packet_length + + + _enabled + True + + + label + + + + value + 133 + + + type + intx + + + short_id + + + + _coordinate + (339, 14) + + + _rotation + 0 + + + + foo_periodic_msg_source + + id + foo_periodic_msg_source_0_0 + + + _enabled + True + + + msg + pmt.intern(''.join(random.choice(string.ascii_letters + string.digits) for x in range(packet_length-24))) + + + interval + 50 + + + debug + False + + + num + 100 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (78, 138) + + + _rotation + 0 + + + + analog_sig_source_x_0 + blocks_multiply_xx_0 + 0 + 1 + + + foo_packet_pad_0 + blocks_multiply_xx_0 + 0 + 0 + + + blocks_add_xx_0 + ofdm_phy_hier_1 + 0 + 0 + + + blocks_multiply_xx_0 + blocks_add_xx_0 + 0 + 0 + + + analog_noise_source_x_0 + blocks_add_xx_0 + 0 + 1 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_parse_mac_0 + 1 + 0 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_1 + 1 + 1 + + + ofdm_phy_hier_1 + foo_packet_pad_0 + 0 + 0 + + + foo_periodic_msg_source_0_0 + ieee802_11_ofdm_mac_0 + 0 + 0 + + + foo_periodic_msg_source_0_0 + ieee802_11_ofdm_parse_mac_0 + 0 + 0 + + diff --git a/examples/ofdm_transceiver.grc b/examples/ofdm_transceiver.grc new file mode 100644 index 0000000..12ae2ff --- /dev/null +++ b/examples/ofdm_transceiver.grc @@ -0,0 +1,2068 @@ + + + Mon Oct 7 02:30:22 2013 + + options + + id + ofdm_transceiver + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + wx_gui + + + category + Custom + + + run_options + prompt + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (12, 33) + + + _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 + + + + _coordinate + (1111, 6) + + + _rotation + 0 + + + + variable_chooser + + id + samp_rate + + + _enabled + True + + + label + Sample Rate + + + value + 10e6 + + + choices + [5e6,10e6, 20e6] + + + labels + ["5MHz", "10 MHz", "20 MHz"] + + + type + radio_buttons + + + style + wx.RA_HORIZONTAL + + + grid_pos + + + + notebook + + + + _coordinate + (930, 5) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + affinity + + + + _coordinate + (48, 344) + + + _rotation + 180 + + + + ieee802_11_ether_encap + + id + ieee802_11_ether_encap_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (308, 156) + + + _rotation + 0 + + + + blocks_tuntap_pdu + + id + blocks_tuntap_pdu_0 + + + _enabled + True + + + ifn + tap0 + + + mtu + 260 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (310, 74) + + + _rotation + 180 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (339, 257) + + + _rotation + 0 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_1 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (324, 356) + + + _rotation + 180 + + + + foo_wireshark_connector + + id + foo_wireshark_connector_0 + + + _enabled + True + + + tech + 127 + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (580, 307) + + + _rotation + 0 + + + + uhd_usrp_source + + id + uhd_usrp_source_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + rx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (477, 445) + + + _rotation + 0 + + + + uhd_usrp_sink + + id + uhd_usrp_sink_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + tx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + _coordinate + (260, 447) + + + _rotation + 0 + + + + blocks_ctrlport_monitor_performance + + id + blocks_ctrlport_monitor_performance_0 + + + _enabled + False + + + en + True + + + _coordinate + (611, 163) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + False + + + en + True + + + _coordinate + (807, 164) + + + _rotation + 0 + + + + blocks_file_sink + + id + blocks_file_sink_0 + + + _enabled + True + + + file + /tmp/ofdm.pcap + + + type + byte + + + vlen + 1 + + + unbuffered + True + + + append + True + + + affinity + + + + _coordinate + (800, 299) + + + _rotation + 0 + + + + variable_chooser + + id + freq + + + _enabled + True + + + label + Channel + + + value + 5.90e9 + + + 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 + + + + _coordinate + (755, 3) + + + _rotation + 0 + + + + variable_slider + + id + tx_gain + + + _enabled + True + + + label + + + + value + 15 + + + min + 0 + + + max + 100 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (1050, 134) + + + _rotation + 0 + + + + variable_slider + + id + rx_gain + + + _enabled + True + + + label + + + + value + 5 + + + min + 0 + + + max + 100 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (1162, 133) + + + _rotation + 0 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + 50000 + + + pad_tail + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (72, 447) + + + _rotation + 0 + + + + foo_wireshark_connector_0 + blocks_file_sink_0 + 0 + 0 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_parse_mac_0 + 1 + 0 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_mac_0 + 1 + 1 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_1 + 1 + 1 + + + ieee802_11_ofdm_mac_0 + ieee802_11_ether_encap_0 + 0 + 1 + + + ieee802_11_ether_encap_0 + ieee802_11_ofdm_mac_0 + 1 + 0 + + + foo_packet_pad_0 + uhd_usrp_sink_0 + 0 + 0 + + + ofdm_phy_hier_1 + foo_packet_pad_0 + 0 + 0 + + + blocks_tuntap_pdu_0 + ieee802_11_ether_encap_0 + 0 + 0 + + + ieee802_11_ether_encap_0 + blocks_tuntap_pdu_0 + 0 + 0 + + + ieee802_11_ofdm_mac_0 + foo_wireshark_connector_0 + 1 + 0 + + + ofdm_phy_hier_1 + foo_wireshark_connector_0 + 1 + 0 + + + uhd_usrp_source_0 + ofdm_phy_hier_1 + 0 + 0 + + diff --git a/examples/ofdm_transceiver_no_gui.grc b/examples/ofdm_transceiver_no_gui.grc new file mode 100644 index 0000000..aced2f3 --- /dev/null +++ b/examples/ofdm_transceiver_no_gui.grc @@ -0,0 +1,1954 @@ + + + Mon Oct 7 02:46:09 2013 + + options + + id + ofdm_transceiver_no_gui + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + no_gui + + + category + Custom + + + run_options + run + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + 1 + + + _coordinate + (12, 33) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + affinity + + + + _coordinate + (48, 344) + + + _rotation + 180 + + + + ieee802_11_ether_encap + + id + ieee802_11_ether_encap_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (308, 156) + + + _rotation + 0 + + + + blocks_tuntap_pdu + + id + blocks_tuntap_pdu_0 + + + _enabled + True + + + ifn + tap0 + + + mtu + 260 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (310, 74) + + + _rotation + 180 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (339, 257) + + + _rotation + 0 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_1 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (324, 356) + + + _rotation + 180 + + + + uhd_usrp_source + + id + uhd_usrp_source_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + rx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (477, 445) + + + _rotation + 0 + + + + uhd_usrp_sink + + id + uhd_usrp_sink_0 + + + _enabled + True + + + type + fc32 + + + otw + + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + tx_gain + + + ant0 + + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + _coordinate + (260, 447) + + + _rotation + 0 + + + + parameter + + id + freq + + + _enabled + True + + + label + + + + value + 5860000000 + + + type + intx + + + short_id + + + + _coordinate + (586, 48) + + + _rotation + 0 + + + + parameter + + id + samp_rate + + + _enabled + True + + + label + + + + value + 10000000 + + + type + intx + + + short_id + + + + _coordinate + (683, 50) + + + _rotation + 0 + + + + parameter + + id + tx_gain + + + _enabled + True + + + label + + + + value + 15 + + + type + intx + + + short_id + + + + _coordinate + (781, 50) + + + _rotation + 0 + + + + blocks_ctrlport_monitor_performance + + id + blocks_ctrlport_monitor_performance_0 + + + _enabled + False + + + en + True + + + _coordinate + (10, 165) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + False + + + en + True + + + _coordinate + (32, 241) + + + _rotation + 0 + + + + parameter + + id + pad_front + + + _enabled + True + + + label + + + + value + 100000 + + + type + intx + + + short_id + + + + _coordinate + (588, 149) + + + _rotation + 0 + + + + parameter + + id + pad_tail + + + _enabled + True + + + label + + + + value + 100000 + + + type + intx + + + short_id + + + + _coordinate + (690, 143) + + + _rotation + 0 + + + + parameter + + id + rx_gain + + + _enabled + True + + + label + + + + value + 10 + + + type + intx + + + short_id + + + + _coordinate + (786, 152) + + + _rotation + 0 + + + + parameter + + id + encoding + + + _enabled + True + + + label + + + + value + 0 + + + type + intx + + + short_id + + + + _coordinate + (868, 54) + + + _rotation + 0 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + pad_front + + + pad_tail + pad_tail + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (72, 447) + + + _rotation + 0 + + + + ofdm_phy_hier_1 + ieee802_11_ofdm_parse_mac_0 + 1 + 0 + + + ofdm_phy_hier_1 + ieee802_11_ofdm_mac_0 + 1 + 1 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_1 + 1 + 1 + + + ieee802_11_ofdm_mac_0 + ieee802_11_ether_encap_0 + 0 + 1 + + + ieee802_11_ether_encap_0 + ieee802_11_ofdm_mac_0 + 1 + 0 + + + foo_packet_pad_0 + uhd_usrp_sink_0 + 0 + 0 + + + ofdm_phy_hier_1 + foo_packet_pad_0 + 0 + 0 + + + blocks_tuntap_pdu_0 + ieee802_11_ether_encap_0 + 0 + 0 + + + ieee802_11_ether_encap_0 + blocks_tuntap_pdu_0 + 0 + 0 + + + uhd_usrp_source_0 + ofdm_phy_hier_1 + 0 + 0 + + diff --git a/examples/ofdm_tx.grc b/examples/ofdm_tx.grc new file mode 100644 index 0000000..511a754 --- /dev/null +++ b/examples/ofdm_tx.grc @@ -0,0 +1,1285 @@ + + + Mon Aug 26 11:59:20 2013 + + options + + id + ofdm_tx + + + _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 + 1 + + + _coordinate + (103, 27) + + + _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 + + + + _coordinate + (419, 11) + + + _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 + + + + _coordinate + (629, 14) + + + _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 + + + + _coordinate + (291, 12) + + + _rotation + 0 + + + + variable_slider + + id + mult + + + _enabled + True + + + label + + + + value + 1 + + + min + 0 + + + max + 2 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (979, 10) + + + _rotation + 0 + + + + blocks_ctrlport_monitor_performance + + id + blocks_ctrlport_monitor_performance_0 + + + _enabled + False + + + en + True + + + _coordinate + (982, 299) + + + _rotation + 0 + + + + blocks_ctrlport_monitor + + id + blocks_ctrlport_monitor_0 + + + _enabled + False + + + en + True + + + _coordinate + (1027, 451) + + + _rotation + 0 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (464, 192) + + + _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 + + + + _coordinate + (780, 17) + + + _rotation + 0 + + + + blocks_message_strobe + + id + blocks_message_strobe_0 + + + _enabled + True + + + msg + pmt.intern("Hello World") + + + period + 100 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (176, 180) + + + _rotation + 0 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + 500000 + + + pad_tail + 500000 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (72, 428) + + + _rotation + 0 + + + + uhd_usrp_sink + + id + uhd_usrp_sink_0 + + + _enabled + True + + + type + fc32 + + + otw + sc16 + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + gain + + + ant0 + TX/RX + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + _coordinate + (321, 412) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_1 + + + _enabled + True + + + type + complex + + + const + mult + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (225, 330) + + + _rotation + 180 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_0 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (460, 300) + + + _rotation + 180 + + + + blocks_null_source + + id + blocks_null_source_0 + + + _enabled + True + + + type + complex + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (692, 334) + + + _rotation + 180 + + + + blocks_message_strobe_0 + ieee802_11_ofdm_mac_0 + 0 + 0 + + + blocks_multiply_const_vxx_1 + foo_packet_pad_0 + 0 + 0 + + + ofdm_phy_hier_0 + blocks_multiply_const_vxx_1 + 0 + 0 + + + foo_packet_pad_0 + uhd_usrp_sink_0 + 0 + 0 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_0 + 1 + 1 + + + blocks_null_source_0 + ofdm_phy_hier_0 + 0 + 0 + + diff --git a/examples/ofdm_tx_nogui.grc b/examples/ofdm_tx_nogui.grc new file mode 100644 index 0000000..3ca6316 --- /dev/null +++ b/examples/ofdm_tx_nogui.grc @@ -0,0 +1,1355 @@ + + + Wed Aug 28 13:22:13 2013 + + options + + id + ofdm_tx_nogui + + + _enabled + True + + + title + + + + author + + + + description + + + + window_size + 1280, 1024 + + + generate_options + no_gui + + + category + Custom + + + run_options + run + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + _coordinate + (103, 27) + + + _rotation + 0 + + + + parameter + + id + encoding + + + _enabled + True + + + label + + + + value + 0 + + + type + intx + + + short_id + + + + _coordinate + (614, 123) + + + _rotation + 0 + + + + ieee802_11_ofdm_mac + + id + ieee802_11_ofdm_mac_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (406, 314) + + + _rotation + 0 + + + + parameter + + id + mult + + + _enabled + True + + + label + + + + value + 0.4 + + + type + eng_float + + + short_id + + + + _coordinate + (389, 121) + + + _rotation + 0 + + + + parameter + + id + gain + + + _enabled + True + + + label + + + + value + 40 + + + type + intx + + + short_id + + + + _coordinate + (829, 122) + + + _rotation + 0 + + + + parameter + + id + interval + + + _enabled + True + + + label + + + + value + 100 + + + type + intx + + + short_id + + + + _coordinate + (945, 125) + + + _rotation + 0 + + + + parameter + + id + nmessages + + + _enabled + True + + + label + + + + value + 100 + + + type + intx + + + short_id + + + + _coordinate + (1048, 129) + + + _rotation + 0 + + + + uhd_usrp_sink + + id + uhd_usrp_sink_0_0 + + + _enabled + True + + + type + fc32 + + + otw + sc16 + + + stream_args + + + + stream_chans + [] + + + dev_addr + + + + 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 + freq + + + gain0 + gain + + + ant0 + TX/RX + + + bw0 + 0 + + + center_freq1 + 0 + + + gain1 + 0 + + + ant1 + + + + bw1 + 0 + + + center_freq2 + 0 + + + gain2 + 0 + + + ant2 + + + + bw2 + 0 + + + center_freq3 + 0 + + + gain3 + 0 + + + ant3 + + + + bw3 + 0 + + + center_freq4 + 0 + + + gain4 + 0 + + + ant4 + + + + bw4 + 0 + + + center_freq5 + 0 + + + gain5 + 0 + + + ant5 + + + + bw5 + 0 + + + center_freq6 + 0 + + + gain6 + 0 + + + ant6 + + + + bw6 + 0 + + + center_freq7 + 0 + + + gain7 + 0 + + + ant7 + + + + bw7 + 0 + + + center_freq8 + 0 + + + gain8 + 0 + + + ant8 + + + + bw8 + 0 + + + center_freq9 + 0 + + + gain9 + 0 + + + ant9 + + + + bw9 + 0 + + + center_freq10 + 0 + + + gain10 + 0 + + + ant10 + + + + bw10 + 0 + + + center_freq11 + 0 + + + gain11 + 0 + + + ant11 + + + + bw11 + 0 + + + center_freq12 + 0 + + + gain12 + 0 + + + ant12 + + + + bw12 + 0 + + + center_freq13 + 0 + + + gain13 + 0 + + + ant13 + + + + bw13 + 0 + + + center_freq14 + 0 + + + gain14 + 0 + + + ant14 + + + + bw14 + 0 + + + center_freq15 + 0 + + + gain15 + 0 + + + ant15 + + + + bw15 + 0 + + + center_freq16 + 0 + + + gain16 + 0 + + + ant16 + + + + bw16 + 0 + + + center_freq17 + 0 + + + gain17 + 0 + + + ant17 + + + + bw17 + 0 + + + center_freq18 + 0 + + + gain18 + 0 + + + ant18 + + + + bw18 + 0 + + + center_freq19 + 0 + + + gain19 + 0 + + + ant19 + + + + bw19 + 0 + + + center_freq20 + 0 + + + gain20 + 0 + + + ant20 + + + + bw20 + 0 + + + center_freq21 + 0 + + + gain21 + 0 + + + ant21 + + + + bw21 + 0 + + + center_freq22 + 0 + + + gain22 + 0 + + + ant22 + + + + bw22 + 0 + + + center_freq23 + 0 + + + gain23 + 0 + + + ant23 + + + + bw23 + 0 + + + center_freq24 + 0 + + + gain24 + 0 + + + ant24 + + + + bw24 + 0 + + + center_freq25 + 0 + + + gain25 + 0 + + + ant25 + + + + bw25 + 0 + + + center_freq26 + 0 + + + gain26 + 0 + + + ant26 + + + + bw26 + 0 + + + center_freq27 + 0 + + + gain27 + 0 + + + ant27 + + + + bw27 + 0 + + + center_freq28 + 0 + + + gain28 + 0 + + + ant28 + + + + bw28 + 0 + + + center_freq29 + 0 + + + gain29 + 0 + + + ant29 + + + + bw29 + 0 + + + center_freq30 + 0 + + + gain30 + 0 + + + ant30 + + + + bw30 + 0 + + + center_freq31 + 0 + + + gain31 + 0 + + + ant31 + + + + bw31 + 0 + + + affinity + + + + _coordinate + (356, 531) + + + _rotation + 0 + + + + ofdm_phy_hier + + id + ofdm_phy_hier_0 + + + _enabled + True + + + encoding + encoding + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (372, 438) + + + _rotation + 180 + + + + blocks_head + + id + blocks_head_0 + + + _enabled + True + + + type + complex + + + num_items + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (599, 468) + + + _rotation + 180 + + + + blocks_null_source + + id + blocks_null_source_0 + + + _enabled + True + + + type + complex + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (767, 472) + + + _rotation + 180 + + + + parameter + + id + freq + + + _enabled + True + + + label + + + + value + 5860000000 + + + type + intx + + + short_id + + + + _coordinate + (498, 121) + + + _rotation + 0 + + + + parameter + + id + samp_rate + + + _enabled + True + + + label + + + + value + 10000000 + + + type + intx + + + short_id + + + + _coordinate + (716, 125) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_1 + + + _enabled + True + + + type + complex + + + const + mult + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (145, 468) + + + _rotation + 180 + + + + foo_periodic_msg_source + + id + foo_periodic_msg_source_0 + + + _enabled + True + + + msg + pmt.intern(''.join(random.choice(string.ascii_letters + string.digits) for x in range(packet_length-24))) + + + interval + interval + + + debug + False + + + num + nmessages + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (113, 286) + + + _rotation + 0 + + + + import + + id + import_1 + + + _enabled + True + + + import + import string + + + _coordinate + (792, 28) + + + _rotation + 0 + + + + import + + id + import_0 + + + _enabled + True + + + import + import random + + + _coordinate + (686, 29) + + + _rotation + 0 + + + + parameter + + id + packet_length + + + _enabled + True + + + label + + + + value + 133 + + + type + intx + + + short_id + + + + _coordinate + (262, 122) + + + _rotation + 0 + + + + foo_packet_pad + + id + foo_packet_pad_0 + + + _enabled + True + + + debug + False + + + pad_front + 200000 + + + pad_tail + 500000 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (137, 547) + + + _rotation + 0 + + + + foo_periodic_msg_source_0 + ieee802_11_ofdm_mac_0 + 0 + 0 + + + blocks_multiply_const_vxx_1 + foo_packet_pad_0 + 0 + 0 + + + ofdm_phy_hier_0 + blocks_multiply_const_vxx_1 + 0 + 0 + + + foo_packet_pad_0 + uhd_usrp_sink_0_0 + 0 + 0 + + + ieee802_11_ofdm_mac_0 + ofdm_phy_hier_0 + 1 + 1 + + + blocks_null_source_0 + blocks_head_0 + 0 + 0 + + + blocks_head_0 + ofdm_phy_hier_0 + 0 + 0 + + diff --git a/examples/rx_demo.grc b/examples/rx_demo.grc index 0a385ed..343aedc 100644 --- a/examples/rx_demo.grc +++ b/examples/rx_demo.grc @@ -1,6 +1,6 @@ - Tue Jul 16 13:43:59 2013 + Fri Sep 27 18:11:49 2013 options @@ -53,7 +53,7 @@ _coordinate - (369, 32) + (434, 15) _rotation @@ -61,200 +61,92 @@ - ieee802_11_ofdm_sync_long + variable id - ieee802_11_ofdm_sync_long_0 + window_size _enabled True + + value + 48 + + + _coordinate + (704, 18) + + + _rotation + 0 + + + + variable + + id + sync_length + + + _enabled + True + + + value + 320 + + + _coordinate + (601, 15) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_short + + id + ieee802_11_ofdm_sync_short_0 + + + _enabled + True + + + log + False + debug False - sync_length - sync_length + threshold + 0.8 - freq_est - 100 + max_samples + 80 * 160 - _coordinate - (647, 526) - - - _rotation - 0 - - - - blocks_delay - - id - blocks_delay_0 - - - _enabled - True - - - type - complex - - - delay - sync_length - - - num_ports - 1 - - - vlen - 1 - - - _coordinate - (445, 559) - - - _rotation - 0 - - - - fir_filter_xxx - - id - fir_filter_xxx_0 - - - _enabled - True - - - type - fff - - - decim - 1 - - - taps - [1]*window_size - - - _coordinate - (655, 227) - - - _rotation - 0 - - - - blocks_conjugate_cc - - id - blocks_conjugate_cc_0 - - - _enabled - True - - - _coordinate - (374, 350) - - - _rotation - 0 - - - - fir_filter_xxx - - id - fir_filter_xxx_0_0 - - - _enabled - True - - - type - ccf - - - decim - 1 - - - taps - [1]*window_size - - - _coordinate - (768, 321) - - - _rotation - 0 - - - - blocks_divide_xx - - id - blocks_divide_xx_0 - - - _enabled - True - - - type - float - - - vlen - 1 - - - num_inputs + min_plateau 2 - _coordinate - (1134, 411) + affinity + - _rotation - 270 - - - - blocks_complex_to_mag - - id - blocks_complex_to_mag_0 - - - _enabled - True - - - vlen - 1 + minoutbuf + 0 _coordinate - (991, 333) + (212, 501) _rotation @@ -295,6 +187,14 @@ nthreads 1 + + affinity + + + + minoutbuf + 0 + _coordinate (138, 688) @@ -304,6 +204,119 @@ 0 + + ieee802_11_ofdm_equalize_symbols + + id + ieee802_11_ofdm_equalize_symbols_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (389, 720) + + + _rotation + 0 + + + + blocks_delay + + id + blocks_delay_0 + + + _enabled + True + + + type + complex + + + delay + sync_length + + + num_ports + 1 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (483, 567) + + + _rotation + 0 + + + + ieee802_11_ofdm_sync_long + + id + ieee802_11_ofdm_sync_long_0 + + + _enabled + True + + + log + False + + + debug + False + + + sync_length + sync_length + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (684, 534) + + + _rotation + 0 + + blocks_stream_to_vector @@ -326,9 +339,17 @@ vlen 1 + + affinity + + + + minoutbuf + 0 + _coordinate - (918, 542) + (913, 550) _rotation @@ -336,34 +357,34 @@ - ieee802_11_ofdm_sync_short + ieee802_11_ofdm_decode_signal id - ieee802_11_ofdm_sync_short_0 + ieee802_11_ofdm_decode_signal_0 _enabled True + + log + True + debug False - threshold - 0.8 + affinity + - max_samples - 80 * 80 - - - min_plateau - 2 + minoutbuf + 0 _coordinate - (179, 501) + (656, 712) _rotation @@ -371,22 +392,65 @@ - blocks_complex_to_mag_squared + blocks_divide_xx id - blocks_complex_to_mag_squared_0 + blocks_divide_xx_0 _enabled True + + type + float + vlen 1 + + num_inputs + 2 + + + affinity + + + + minoutbuf + 0 + _coordinate - (402, 239) + (1193, 412) + + + _rotation + 270 + + + + blocks_conjugate_cc + + id + blocks_conjugate_cc_0 + + + _enabled + True + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (421, 348) _rotation @@ -419,9 +483,489 @@ vlen 1 + + affinity + + + + minoutbuf + 0 + _coordinate - (212, 346) + (259, 344) + + + _rotation + 0 + + + + blocks_multiply_xx + + id + blocks_multiply_xx_0 + + + _enabled + True + + + type + complex + + + num_inputs + 2 + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (662, 314) + + + _rotation + 0 + + + + blocks_complex_to_mag + + id + blocks_complex_to_mag_0 + + + _enabled + True + + + vlen + 1 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (1038, 331) + + + _rotation + 0 + + + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_0 + + + _enabled + True + + + type + complex + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (819, 327) + + + _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 + + + + _coordinate + (1107, 20) + + + _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 + + + + _coordinate + (929, 21) + + + _rotation + 0 + + + + ieee802_11_ofdm_parse_mac + + id + ieee802_11_ofdm_parse_mac_0 + + + _enabled + True + + + log + False + + + debug + True + + + affinity + + + + _coordinate + (969, 820) + + + _rotation + 180 + + + + ieee802_11_ofdm_decode_mac + + id + ieee802_11_ofdm_decode_mac_0 + + + _enabled + True + + + log + False + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (930, 712) + + + _rotation + 0 + + + + blocks_tuntap_pdu + + id + blocks_tuntap_pdu_0 + + + _enabled + True + + + ifn + tap0 + + + mtu + 10000 + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (663, 942) + + + _rotation + 180 + + + + ieee802_11_ether_encap + + id + ieee802_11_ether_encap_0 + + + _enabled + True + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (904, 920) + + + _rotation + 180 + + + + blocks_file_sink + + id + blocks_file_sink_0 + + + _enabled + True + + + file + /tmp/ofdm.pcap + + + type + byte + + + vlen + 1 + + + unbuffered + True + + + append + True + + + affinity + + + + _coordinate + (721, 1043) + + + _rotation + 180 + + + + foo_wireshark_connector + + id + foo_wireshark_connector_0 + + + _enabled + True + + + tech + 127 + + + debug + False + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (947, 1051) + + + _rotation + 180 + + + + variable_slider + + id + gain + + + _enabled + True + + + label + + + + value + 20 + + + min + 0 + + + max + 100 + + + num_steps + 100 + + + style + wx.SL_HORIZONTAL + + + converver + float_converter + + + grid_pos + + + + notebook + + + + _coordinate + (808, 19) _rotation @@ -450,6 +994,10 @@ stream_args + + stream_chans + [] + dev_addr @@ -1083,331 +1631,16 @@ 0 - _coordinate - (148, 35) - - - _rotation - 180 - - - - blocks_multiply_xx - - id - blocks_multiply_xx_0 - - - _enabled - True - - - type - complex - - - num_inputs - 2 - - - vlen - 1 - - - _coordinate - (615, 316) - - - _rotation - 0 - - - - variable - - id - sync_length - - - _enabled - True - - - value - 320 - 64 - - - _coordinate - (536, 32) - - - _rotation - 0 - - - - variable - - id - window_size - - - _enabled - True - - - value - 48 - - - _coordinate - (639, 35) - - - _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 + affinity - notebook - + minoutbuf + 0 _coordinate - (882, 23) - - - _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 - - - - _coordinate - (1060, 22) - - - _rotation - 0 - - - - ieee802_11_ofdm_equalize_symbols - - id - ieee802_11_ofdm_equalize_symbols_0 - - - _enabled - True - - - debug - False - - - _coordinate - (450, 720) - - - _rotation - 0 - - - - ieee802_11_ofdm_decode_signal - - id - ieee802_11_ofdm_decode_signal_0 - - - _enabled - True - - - debug - False - - - _coordinate - (727, 720) - - - _rotation - 0 - - - - wxgui_scopesink2 - - id - wxgui_scopesink0 - - - _enabled - True - - - type - complex - - - title - Scope Plot - - - samp_rate - samp_rate - - - v_scale - 0 - - - v_offset - 0 - - - t_scale - 0 - - - ac_couple - False - - - xy_mode - False - - - num_inputs - 1 - - - win_size - - - - grid_pos - (0,0,1,1) - - - notebook - - - - trig_mode - wxgui.TRIG_MODE_AUTO - - - y_axis_label - Counts - - - _coordinate - (359, 120) - - - _rotation - 0 - - - - ieee802_11_ofdm_decode_mac - - id - ieee802_11_ofdm_decode_mac_0 - - - _enabled - True - - - debug - False - - - _coordinate - (989, 720) + (3, 207) _rotation @@ -1437,132 +1670,16 @@ 1 - _coordinate - (549, 791) - - - _rotation - 180 - - - - foo_wireshark_connector - - id - foo_wireshark_connector_0 - - - _enabled - True - - - tech - 127 - - - debug - False - - - _coordinate - (978, 1030) - - - _rotation - 180 - - - - blocks_file_sink - - id - blocks_file_sink_0 - - - _enabled - True - - - file - /tmp/ofdm.pcap - - - type - byte - - - vlen - 1 - - - unbuffered - True - - - append - True - - - _coordinate - (765, 1022) - - - _rotation - 180 - - - - blocks_socket_pdu - - id - blocks_socket_pdu_0 - - - _enabled - True - - - type - "UDP_SERVER" - - - host + affinity - port - 52001 - - - mtu - 10000 + minoutbuf + 0 _coordinate - (775, 837) - - - _rotation - 180 - - - - ieee802_11_ofdm_parse_mac - - id - ieee802_11_ofdm_parse_mac_0 - - - _enabled - True - - - debug - True - - - _coordinate - (1000, 861) + (571, 845) _rotation @@ -1589,7 +1706,7 @@ samp_rate - samp_rate/1000 + samp_rate/800 v_scale @@ -1609,7 +1726,7 @@ xy_mode - False + True num_inputs @@ -1636,90 +1753,12 @@ Counts - _coordinate - (432, 861) - - - _rotation - 270 - - - - 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 + affinity _coordinate - (757, 26) - - - _rotation - 0 - - - - blocks_tuntap_pdu - - id - blocks_tuntap_pdu_0 - - - _enabled - True - - - ifn - tap0 - - - mtu - 10000 - - - _coordinate - (743, 949) + (350, 806) _rotation @@ -1727,46 +1766,89 @@ - ieee802_11_ether_encap + blocks_complex_to_mag_squared id - ieee802_11_ether_encap_0 + blocks_complex_to_mag_squared_0 _enabled True - debug - False + vlen + 1 + + + affinity + + + + minoutbuf + 0 _coordinate - (963, 957) + (461, 227) _rotation - 180 + 0 + + ieee802_11_moving_average_xx + + id + ieee802_11_moving_average_xx_1 + + + _enabled + True + + + type + float + + + length + window_size + + + affinity + + + + minoutbuf + 0 + + + _coordinate + (782, 223) + + + _rotation + 0 + + + + blocks_stream_to_vector_0 + fft_vxx_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_delay_0_0 + 0 + 0 + ieee802_11_ofdm_sync_short_0 ieee802_11_ofdm_sync_long_0 0 0 - - ieee802_11_ofdm_sync_long_0 - blocks_stream_to_vector_0 - 0 - 0 - - - ieee802_11_ofdm_sync_short_0 - blocks_delay_0 - 0 - 0 - blocks_delay_0 ieee802_11_ofdm_sync_long_0 @@ -1774,8 +1856,14 @@ 1 - ieee802_11_ofdm_decode_mac_0 - ieee802_11_ofdm_parse_mac_0 + ieee802_11_ofdm_sync_short_0 + blocks_delay_0 + 0 + 0 + + + ieee802_11_ofdm_sync_long_0 + blocks_stream_to_vector_0 0 0 @@ -1785,66 +1873,6 @@ 0 1 - - fir_filter_xxx_0 - blocks_divide_xx_0 - 0 - 1 - - - blocks_complex_to_mag_squared_0 - fir_filter_xxx_0 - 0 - 0 - - - blocks_delay_0_0 - ieee802_11_ofdm_sync_short_0 - 0 - 0 - - - blocks_multiply_xx_0 - fir_filter_xxx_0_0 - 0 - 0 - - - blocks_delay_0_0 - blocks_conjugate_cc_0 - 0 - 0 - - - blocks_conjugate_cc_0 - blocks_multiply_xx_0 - 0 - 1 - - - fir_filter_xxx_0_0 - blocks_complex_to_mag_0 - 0 - 0 - - - blocks_complex_to_mag_0 - blocks_divide_xx_0 - 0 - 0 - - - fft_vxx_0 - ieee802_11_ofdm_equalize_symbols_0 - 0 - 0 - - - blocks_stream_to_vector_0 - fft_vxx_0 - 0 - 0 - ieee802_11_ofdm_equalize_symbols_0 ieee802_11_ofdm_decode_signal_0 @@ -1858,32 +1886,20 @@ 0 - blocks_delay_0_0 - wxgui_scopesink0 + fft_vxx_0 + ieee802_11_ofdm_equalize_symbols_0 0 0 - uhd_usrp_source_0 - blocks_complex_to_mag_squared_0 - 0 - 0 - - - uhd_usrp_source_0 - blocks_delay_0_0 - 0 - 0 - - - uhd_usrp_source_0 - blocks_multiply_xx_0 + ieee802_11_ofdm_decode_signal_0 + blocks_vector_to_stream_0 0 0 ieee802_11_ofdm_decode_mac_0 - ieee802_11_ether_encap_0 + ieee802_11_ofdm_parse_mac_0 0 0 @@ -1894,8 +1910,74 @@ 0 - ieee802_11_ofdm_decode_signal_0 - blocks_vector_to_stream_0 + blocks_complex_to_mag_0 + blocks_divide_xx_0 + 0 + 0 + + + ieee802_11_moving_average_xx_1 + blocks_divide_xx_0 + 0 + 1 + + + blocks_multiply_xx_0 + ieee802_11_moving_average_xx_0 + 0 + 0 + + + ieee802_11_moving_average_xx_0 + blocks_complex_to_mag_0 + 0 + 0 + + + blocks_complex_to_mag_squared_0 + ieee802_11_moving_average_xx_1 + 0 + 0 + + + blocks_delay_0_0 + ieee802_11_ofdm_sync_short_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_multiply_xx_0 + 0 + 0 + + + uhd_usrp_source_0 + blocks_complex_to_mag_squared_0 + 0 + 0 + + + blocks_conjugate_cc_0 + blocks_multiply_xx_0 + 0 + 1 + + + blocks_delay_0_0 + blocks_conjugate_cc_0 + 0 + 0 + + + ieee802_11_ofdm_decode_mac_0 + ieee802_11_ether_encap_0 + 0 + 1 + + + ieee802_11_ether_encap_0 + blocks_tuntap_pdu_0 0 0 @@ -1911,16 +1993,4 @@ 0 0 - - ieee802_11_ether_encap_0 - blocks_tuntap_pdu_0 - 0 - 0 - - - ieee802_11_ofdm_parse_mac_0 - blocks_socket_pdu_0 - 0 - 0 -