diff options
-rw-r--r-- | gr-digital/examples/packet/packet_rx.grc | 124 | ||||
-rw-r--r-- | gr-qtgui/apps/grc_qt_example.grc | 661 |
2 files changed, 330 insertions, 455 deletions
diff --git a/gr-digital/examples/packet/packet_rx.grc b/gr-digital/examples/packet/packet_rx.grc index 9e57e26f13..c231a01218 100644 --- a/gr-digital/examples/packet/packet_rx.grc +++ b/gr-digital/examples/packet/packet_rx.grc @@ -24,6 +24,9 @@ options: title: '' window_size: '' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [8, 11] rotation: 0 state: enabled @@ -35,6 +38,9 @@ blocks: comment: '' value: mark_delays[sps] states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [32, 436.0] rotation: 0 state: enabled @@ -44,6 +50,9 @@ blocks: comment: "Tag Marking Delay for \nCorr Est block, indexed\nby sps.\n\nFound empirically." value: '[0, 0, 34, 56, 87, 119]' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [32, 500.0] rotation: 0 state: enabled @@ -55,6 +64,9 @@ blocks: mod: rxmod taps: '[1]' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [744, 484.0] rotation: 0 state: enabled @@ -64,6 +76,9 @@ blocks: comment: '' value: '32' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [8, 91] rotation: 0 state: enabled @@ -73,6 +88,9 @@ blocks: comment: '' value: preamble_select[int(1.0/hdr_dec.rate())] states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [728, 692.0] rotation: 0 state: enabled @@ -84,6 +102,9 @@ blocks: FEC is Dummy' value: '[0xac, 0xdd, 0xa4, 0xe2, 0xf2, 0x8c, 0x20, 0xfc]' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [560, 580.0] rotation: 0 state: enabled @@ -96,6 +117,9 @@ blocks: value: '[0xe3, 0x8f, 0xc0, 0xfc, 0x7f, 0xc7, 0xe3, 0x81, 0xc0, 0xff, 0x80, 0x38, 0xff, 0xf0, 0x38, 0xe0, 0x0f, 0xc0, 0x03, 0x80, 0x00, 0xff, 0xff, 0xc0]' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [728, 580.0] rotation: 0 state: enabled @@ -105,6 +129,9 @@ blocks: comment: '' value: '{1: preamble_dummy, 3: preamble_rep}' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [560, 692.0] rotation: 0 state: enabled @@ -114,6 +141,9 @@ blocks: comment: '' value: digital.generic_mod(hdr_const, False, sps, True, eb, False, False) states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [560, 516.0] rotation: 0 state: enabled @@ -128,6 +158,9 @@ blocks: tagname: '"amp_est"' vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [376, 316.0] rotation: 0 state: enabled @@ -144,6 +177,9 @@ blocks: type: float vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1320, 496.0] rotation: 180 state: enabled @@ -158,6 +194,9 @@ blocks: tag: '"payload symbols"' type: float states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1200, 580.0] rotation: 0 state: enabled @@ -171,6 +210,9 @@ blocks: maxoutbuf: '0' minoutbuf: '0' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1440, 356.0] rotation: 0 state: enabled @@ -184,6 +226,9 @@ blocks: maxoutbuf: '0' minoutbuf: '0' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1424, 196.0] rotation: 0 state: enabled @@ -201,6 +246,9 @@ blocks: threshold: '0.999' threshold_method: digital.THRESHOLD_ABSOLUTE states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [144, 308.0] rotation: 0 state: enabled @@ -216,6 +264,9 @@ blocks: use_snr: 'False' w: 6.28/200.0 states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1232, 200.0] rotation: 0 state: enabled @@ -231,6 +282,9 @@ blocks: use_snr: 'False' w: 6.28/200.0 states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1232, 360.0] rotation: 0 state: enabled @@ -244,6 +298,9 @@ blocks: maxoutbuf: '0' minoutbuf: '0' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1680, 580.0] rotation: 0 state: enabled @@ -267,6 +324,9 @@ blocks: trigger_tag_key: '"time_est"' type: complex states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [856, 244.0] rotation: 0 state: enabled @@ -287,6 +347,9 @@ blocks: taps: psf_taps type: ccf states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [568, 276.0] rotation: 0 state: enabled @@ -300,6 +363,9 @@ blocks: maxoutbuf: '0' minoutbuf: '0' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [856, 140.0] rotation: 180 state: enabled @@ -314,6 +380,9 @@ blocks: type: eng_float value: '0.35' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1408, 11] rotation: 0 state: enabled @@ -330,6 +399,9 @@ blocks: packed: 'True' rev_pack: 'False' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1440, 572.0] rotation: 0 state: enabled @@ -345,6 +417,9 @@ blocks: minoutbuf: '0' otype: byte states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1424, 140.0] rotation: 180 state: enabled @@ -360,6 +435,9 @@ blocks: value: digital.constellation_calcdist((digital.psk_2()[0]), (digital.psk_2()[1]), 2, 1).base() states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [544, 11] rotation: 0 state: enabled @@ -374,6 +452,9 @@ blocks: type: '' value: ' fec.dummy_decoder.make(8000)' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [192, 11] rotation: 0 state: enabled @@ -389,6 +470,9 @@ blocks: value: digital.header_format_default(digital.packet_utils.default_access_code, 0) states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [904, 11] rotation: 0 state: enabled @@ -404,6 +488,9 @@ blocks: type: message vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1840, 580.0] rotation: 0 state: enabled @@ -419,6 +506,9 @@ blocks: type: message vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1680, 628.0] rotation: 0 state: enabled @@ -434,6 +524,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1024, 196.0] rotation: 180 state: enabled @@ -449,6 +542,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1024, 420.0] rotation: 180 state: enabled @@ -464,6 +560,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1456, 308.0] rotation: 0 state: enabled @@ -479,6 +578,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [664, 220.0] rotation: 180 state: enabled @@ -494,6 +596,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [232, 420.0] rotation: 180 state: enabled @@ -511,6 +616,9 @@ blocks: type: complex vlen: '1' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [8, 340.0] rotation: 0 state: enabled @@ -526,6 +634,9 @@ blocks: value: digital.constellation_calcdist((digital.psk_2()[0]), (digital.psk_2()[1]), 2, 1).base() states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [720, 11] rotation: 0 state: enabled @@ -540,6 +651,9 @@ blocks: type: '' value: ' fec.dummy_decoder.make(8000)' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [368, 11] rotation: 0 state: enabled @@ -554,6 +668,9 @@ blocks: type: '' value: '[0,]' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1256, 11] rotation: 0 state: enabled @@ -568,6 +685,9 @@ blocks: type: eng_float value: '2' states: + bus_sink: false + bus_source: false + bus_structure: null coordinate: [1096, 11] rotation: 0 state: enabled @@ -584,7 +704,7 @@ connections: - [digital_costas_loop_cc_0_0, '0', digital_constellation_soft_decoder_cf_0_0, '0'] - [digital_costas_loop_cc_0_0_0, '0', digital_constellation_soft_decoder_cf_0, '0'] - [digital_costas_loop_cc_0_0_0, '0', pad_sink_3_0, '0'] -- [digital_crc32_async_bb_0, out, pad_sink_0, in0] +- [digital_crc32_async_bb_0, out, pad_sink_0, in] - [digital_header_payload_demux_0, '0', digital_costas_loop_cc_0_0, '0'] - [digital_header_payload_demux_0, '0', pad_sink_2, '0'] - [digital_header_payload_demux_0, '1', digital_costas_loop_cc_0_0_0, '0'] @@ -593,7 +713,7 @@ connections: - [digital_pfb_clock_sync_xxx_0, '0', pad_sink_5, '0'] - [digital_protocol_parser_b_0, info, digital_header_payload_demux_0, header_data] - [fec_async_decoder_0, out, digital_crc32_async_bb_0, in] -- [fec_async_decoder_0, out, pad_sink_1, in0] +- [fec_async_decoder_0, out, pad_sink_1, in] - [fec_generic_decoder_0, '0', digital_protocol_parser_b_0, '0'] - [pad_source_0, '0', digital_corr_est_cc_0, '0'] diff --git a/gr-qtgui/apps/grc_qt_example.grc b/gr-qtgui/apps/grc_qt_example.grc index 320320edcc..0844a8c3e2 100644 --- a/gr-qtgui/apps/grc_qt_example.grc +++ b/gr-qtgui/apps/grc_qt_example.grc @@ -1,453 +1,208 @@ -<?xml version='1.0' encoding='ASCII'?> -<flow_graph> - <timestamp>Sat Nov 10 14:58:46 2012</timestamp> - <block> - <key>options</key> - <param> - <key>id</key> - <value>grc_qt_example</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>title</key> - <value></value> - </param> - <param> - <key>author</key> - <value></value> - </param> - <param> - <key>description</key> - <value></value> - </param> - <param> - <key>window_size</key> - <value>1280, 1024</value> - </param> - <param> - <key>generate_options</key> - <value>qt_gui</value> - </param> - <param> - <key>category</key> - <value>Custom</value> - </param> - <param> - <key>run_options</key> - <value>prompt</value> - </param> - <param> - <key>run</key> - <value>True</value> - </param> - <param> - <key>max_nouts</key> - <value>0</value> - </param> - <param> - <key>realtime_scheduling</key> - <value></value> - </param> - <param> - <key>_coordinate</key> - <value>(10, 10)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>variable</key> - <param> - <key>id</key> - <value>samp_rate</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>value</key> - <value>32000</value> - </param> - <param> - <key>_coordinate</key> - <value>(10, 170)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>variable_qtgui_range</key> - <param> - <key>id</key> - <value>freq</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>label</key> - <value>Signal Frequency</value> - </param> - <param> - <key>value</key> - <value>1000</value> - </param> - <param> - <key>start</key> - <value>0</value> - </param> - <param> - <key>stop</key> - <value>samp_rate/2.0</value> - </param> - <param> - <key>step</key> - <value>samp_rate/100.0</value> - </param> - <param> - <key>widget</key> - <value>counter_slider</value> - </param> - <param> - <key>orient</key> - <value>Qt.Horizontal</value> - </param> - <param> - <key>min_len</key> - <value>200</value> - </param> - <param> - <key>gui_hint</key> - <value></value> - </param> - <param> - <key>_coordinate</key> - <value>(169, 187)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>variable_qtgui_range</key> - <param> - <key>id</key> - <value>amp</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>label</key> - <value>Signal Amplitude</value> - </param> - <param> - <key>value</key> - <value>1</value> - </param> - <param> - <key>start</key> - <value>0</value> - </param> - <param> - <key>stop</key> - <value>1.0</value> - </param> - <param> - <key>step</key> - <value>0.01</value> - </param> - <param> - <key>widget</key> - <value>counter_slider</value> - </param> - <param> - <key>orient</key> - <value>Qt.Horizontal</value> - </param> - <param> - <key>min_len</key> - <value>200</value> - </param> - <param> - <key>gui_hint</key> - <value></value> - </param> - <param> - <key>_coordinate</key> - <value>(311, 187)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>variable_qtgui_range</key> - <param> - <key>id</key> - <value>noise</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>label</key> - <value>Noise Amplitude</value> - </param> - <param> - <key>value</key> - <value>0.01</value> - </param> - <param> - <key>start</key> - <value>0</value> - </param> - <param> - <key>stop</key> - <value>1.0</value> - </param> - <param> - <key>step</key> - <value>0.01</value> - </param> - <param> - <key>widget</key> - <value>counter_slider</value> - </param> - <param> - <key>orient</key> - <value>Qt.Horizontal</value> - </param> - <param> - <key>min_len</key> - <value>200</value> - </param> - <param> - <key>gui_hint</key> - <value></value> - </param> - <param> - <key>_coordinate</key> - <value>(723, 191)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>blocks_throttle</key> - <param> - <key>id</key> - <value>blocks_throttle_0</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>type</key> - <value>complex</value> - </param> - <param> - <key>samples_per_second</key> - <value>samp_rate</value> - </param> - <param> - <key>vlen</key> - <value>1</value> - </param> - <param> - <key>_coordinate</key> - <value>(511, 96)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>channels_channel_model</key> - <param> - <key>id</key> - <value>channels_channel_model_0</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>noise_voltage</key> - <value>noise</value> - </param> - <param> - <key>freq_offset</key> - <value>0.0</value> - </param> - <param> - <key>epsilon</key> - <value>1.0</value> - </param> - <param> - <key>taps</key> - <value>1.0 + 0.0j</value> - </param> - <param> - <key>seed</key> - <value>-42</value> - </param> - <param> - <key>_coordinate</key> - <value>(724, 64)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>qtgui_sink_x</key> - <param> - <key>id</key> - <value>qtgui_sink_x_0</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>type</key> - <value>complex</value> - </param> - <param> - <key>name</key> - <value>QT GUI Plot</value> - </param> - <param> - <key>fftsize</key> - <value>1024</value> - </param> - <param> - <key>wintype</key> - <value>firdes.WIN_BLACKMAN_hARRIS</value> - </param> - <param> - <key>fc</key> - <value>0</value> - </param> - <param> - <key>bw</key> - <value>samp_rate</value> - </param> - <param> - <key>rate</key> - <value>10</value> - </param> - <param> - <key>plotfreq</key> - <value>True</value> - </param> - <param> - <key>plotwaterfall</key> - <value>True</value> - </param> - <param> - <key>plottime</key> - <value>True</value> - </param> - <param> - <key>plotconst</key> - <value>False</value> - </param> - <param> - <key>gui_hint</key> - <value></value> - </param> - <param> - <key>freqchangevar</key> - <value>None</value> - </param> - <param> - <key>_coordinate</key> - <value>(958, 64)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <block> - <key>analog_sig_source_x</key> - <param> - <key>id</key> - <value>analog_sig_source_x_0</value> - </param> - <param> - <key>_enabled</key> - <value>True</value> - </param> - <param> - <key>type</key> - <value>complex</value> - </param> - <param> - <key>samp_rate</key> - <value>samp_rate</value> - </param> - <param> - <key>waveform</key> - <value>analog.GR_COS_WAVE</value> - </param> - <param> - <key>freq</key> - <value>freq</value> - </param> - <param> - <key>amp</key> - <value>amp</value> - </param> - <param> - <key>offset</key> - <value>0</value> - </param> - <param> - <key>_coordinate</key> - <value>(297, 64)</value> - </param> - <param> - <key>_rotation</key> - <value>0</value> - </param> - </block> - <connection> - <source_block_id>analog_sig_source_x_0</source_block_id> - <sink_block_id>blocks_throttle_0</sink_block_id> - <source_key>0</source_key> - <sink_key>0</sink_key> - </connection> - <connection> - <source_block_id>channels_channel_model_0</source_block_id> - <sink_block_id>qtgui_sink_x_0</sink_block_id> - <source_key>0</source_key> - <sink_key>0</sink_key> - </connection> - <connection> - <source_block_id>blocks_throttle_0</source_block_id> - <sink_block_id>channels_channel_model_0</sink_block_id> - <source_key>0</source_key> - <sink_key>0</sink_key> - </connection> -</flow_graph> +options: + parameters: + author: '' + category: Custom + cmake_opt: '' + comment: '' + copyright: '' + description: '' + gen_cmake: 'On' + gen_linking: dynamic + generate_options: qt_gui + hier_block_src_path: '.:' + id: grc_qt_example + max_nouts: '0' + output_language: python + placement: (0,0) + qt_qss_theme: '' + realtime_scheduling: '' + run: 'True' + run_command: '{python} -u {filename}' + run_options: prompt + sizing_mode: fixed + thread_safe_setters: '' + title: '' + window_size: 1280, 1024 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [10, 10] + rotation: 0 + state: enabled + +blocks: +- name: amp + id: variable_qtgui_range + parameters: + comment: '' + gui_hint: '' + label: Signal Amplitude + min_len: '200' + orient: Qt.Horizontal + rangeType: float + start: '0' + step: '0.01' + stop: '1.0' + value: '1' + widget: counter_slider + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [311, 187] + rotation: 0 + state: enabled +- name: freq + id: variable_qtgui_range + parameters: + comment: '' + gui_hint: '' + label: Signal Frequency + min_len: '200' + orient: Qt.Horizontal + rangeType: float + start: '0' + step: samp_rate/100.0 + stop: samp_rate/2.0 + value: '1000' + widget: counter_slider + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [169, 187] + rotation: 0 + state: enabled +- name: noise + id: variable_qtgui_range + parameters: + comment: '' + gui_hint: '' + label: Noise Amplitude + min_len: '200' + orient: Qt.Horizontal + rangeType: float + start: '0' + step: '0.01' + stop: '1.0' + value: '0.01' + widget: counter_slider + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [723, 191] + rotation: 0 + state: enabled +- name: samp_rate + id: variable + parameters: + comment: '' + value: '32000' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [10, 170] + rotation: 0 + state: enabled +- name: analog_sig_source_x_0 + id: analog_sig_source_x + parameters: + affinity: '' + alias: '' + amp: amp + comment: '' + freq: freq + maxoutbuf: '0' + minoutbuf: '0' + offset: '0' + phase: '0' + samp_rate: samp_rate + type: complex + waveform: analog.GR_COS_WAVE + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [256, 60.0] + rotation: 0 + state: enabled +- name: blocks_throttle_0 + id: blocks_throttle + parameters: + affinity: '' + alias: '' + comment: '' + ignoretag: 'True' + maxoutbuf: '0' + minoutbuf: '0' + samples_per_second: samp_rate + type: complex + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [512, 100.0] + rotation: 0 + state: enabled +- name: channels_channel_model_0 + id: channels_channel_model + parameters: + affinity: '' + alias: '' + block_tags: 'False' + comment: '' + epsilon: '1.0' + freq_offset: '0.0' + maxoutbuf: '0' + minoutbuf: '0' + noise_voltage: noise + seed: '-42' + taps: 1.0 + 0.0j + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [688, 60.0] + rotation: 0 + state: enabled +- name: qtgui_sink_x_0 + id: qtgui_sink_x + parameters: + affinity: '' + alias: '' + bw: samp_rate + comment: '' + fc: '0' + fftsize: '1024' + gui_hint: '' + maxoutbuf: '0' + minoutbuf: '0' + name: QT GUI Plot + plotconst: 'False' + plotfreq: 'True' + plottime: 'True' + plotwaterfall: 'True' + rate: '10' + showports: 'False' + showrf: 'False' + type: complex + wintype: firdes.WIN_BLACKMAN_hARRIS + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [928, 84.0] + rotation: 0 + state: enabled + +connections: +- [analog_sig_source_x_0, '0', blocks_throttle_0, '0'] +- [blocks_throttle_0, '0', channels_channel_model_0, '0'] +- [channels_channel_model_0, '0', qtgui_sink_x_0, '0'] + +metadata: + file_format: 1 |