diff --git a/onbeat_sw_rx.grc b/onbeat_sw_rx.grc new file mode 100644 index 0000000..0970d06 --- /dev/null +++ b/onbeat_sw_rx.grc @@ -0,0 +1,702 @@ +options: + parameters: + author: HA5PLS + catch_exceptions: 'True' + category: '[GRC Hier Blocks]' + cmake_opt: '' + comment: '' + copyright: GPL 3.0 or later + description: Receiver flowgraph for onbeat + gen_cmake: 'On' + gen_linking: dynamic + generate_options: qt_gui + hier_block_src_path: '.:' + id: onbeat_rx + 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: ONBEAT receiver + window_size: (1000,1000) + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [8, 8] + rotation: 0 + state: enabled + +blocks: +- name: RRC_ALPHA + id: variable + parameters: + comment: '' + value: '0.35' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [288, 24.0] + rotation: 0 + state: enabled +- name: lpftaps + id: variable_low_pass_filter_taps + parameters: + beta: '6.76' + comment: '' + cutoff_freq: '1350' + gain: '1.0' + samp_rate: samp_rate + value: '' + width: '1000' + win: window.WIN_HAMMING + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [608, 408.0] + rotation: 0 + state: enabled +- name: symbol_map + id: variable + parameters: + comment: '' + value: '[0, 1, 3, 2]' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [184, 24.0] + rotation: 0 + state: enabled +- name: ONBEAT_Demod_1 + id: ONBEAT_Demod + parameters: + FULL_PACKET_LEN: 8*(4*255+2*16) + OVERSAMPLING: OVERSAMPLING + RRC_ALPHA: RRC_ALPHA + affinity: '' + alias: '' + comment: '' + maxoutbuf: '0' + minoutbuf: '0' + roc_tolerance: '0.8' + samp_rate: samp_rate + symbol_map: symbol_map + syncword: syncword + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1040, 244.0] + rotation: 0 + state: enabled +- name: OVERSAMPLING + id: parameter + parameters: + alias: '' + comment: '' + hide: none + label: '' + short_id: '' + type: intx + value: '24' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [16, 368.0] + rotation: 0 + state: enabled +- name: analog_sig_source_x_0 + id: analog_sig_source_x + parameters: + affinity: '' + alias: '' + amp: '1' + comment: '' + freq: offset + maxoutbuf: '0' + minoutbuf: '0' + offset: '0' + phase: '0' + samp_rate: samp_rate + showports: 'False' + type: complex + waveform: analog.GR_COS_WAVE + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [416, 272.0] + rotation: 0 + state: enabled +- name: audio_source_0 + id: audio_source + parameters: + affinity: '' + alias: '' + comment: '' + device_name: '' + maxoutbuf: '0' + minoutbuf: '0' + num_outputs: '2' + ok_to_block: 'True' + samp_rate: samp_rate + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [264, 224.0] + rotation: 0 + state: enabled +- name: blocks_multiply_xx_0 + id: blocks_multiply_xx + parameters: + affinity: '' + alias: '' + comment: '' + maxoutbuf: '0' + minoutbuf: '0' + num_inputs: '2' + type: complex + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [640, 288.0] + rotation: 0 + state: enabled +- name: blocks_null_sink_0 + id: blocks_null_sink + parameters: + affinity: '' + alias: '' + bus_structure_sink: '[[0,],]' + comment: '' + num_inputs: '1' + type: float + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [424, 432.0] + rotation: 0 + state: enabled +- name: freq_xlating_fir_filter_xxx_0 + id: freq_xlating_fir_filter_xxx + parameters: + affinity: '' + alias: '' + center_freq: '0' + comment: '' + decim: '1' + maxoutbuf: '0' + minoutbuf: '0' + samp_rate: samp_rate + taps: lpftaps + type: ccc + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [760, 288.0] + rotation: 0 + state: enabled +- name: hilbert_fc_0 + id: hilbert_fc + parameters: + affinity: '' + alias: '' + beta: '6.76' + comment: '' + maxoutbuf: '0' + minoutbuf: '0' + num_taps: '512' + win: window.WIN_BLACKMAN_hARRIS + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [464, 216.0] + rotation: 0 + state: enabled +- name: network_socket_pdu_1 + id: network_socket_pdu + parameters: + affinity: '' + alias: '' + comment: '' + host: 0.0.0.0 + maxoutbuf: '0' + minoutbuf: '0' + mtu: '10000' + port: rx_port + tcp_no_delay: 'False' + type: TCP_SERVER + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1416, 400.0] + rotation: 0 + state: enabled +- name: offset + id: parameter + parameters: + alias: '' + comment: '' + hide: none + label: '' + short_id: '' + type: intx + value: '-1500' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [104, 280.0] + rotation: 0 + state: enabled +- name: qtgui_const_sink_x_0 + id: qtgui_const_sink_x + parameters: + affinity: '' + alias: '' + alpha1: '1.0' + alpha10: '1.0' + alpha2: '1.0' + alpha3: '1.0' + alpha4: '1.0' + alpha5: '1.0' + alpha6: '1.0' + alpha7: '1.0' + alpha8: '1.0' + alpha9: '1.0' + autoscale: 'False' + axislabels: 'True' + color1: '"blue"' + color10: '"red"' + color2: '"red"' + color3: '"green"' + color4: '"black"' + color5: '"cyan"' + color6: '"magenta"' + color7: '"yellow"' + color8: '"dark red"' + color9: '"dark green"' + comment: '' + grid: 'False' + gui_hint: '' + label1: '' + label10: '' + label2: '' + label3: '' + label4: '' + label5: '' + label6: '' + label7: '' + label8: '' + label9: '' + legend: 'True' + marker1: '0' + marker10: '0' + marker2: '0' + marker3: '0' + marker4: '0' + marker5: '0' + marker6: '0' + marker7: '0' + marker8: '0' + marker9: '0' + name: '""' + nconnections: '1' + size: '128' + style1: '0' + style10: '0' + style2: '0' + style3: '0' + style4: '0' + style5: '0' + style6: '0' + style7: '0' + style8: '0' + style9: '0' + tr_chan: '0' + tr_level: '0.0' + tr_mode: qtgui.TRIG_MODE_FREE + tr_slope: qtgui.TRIG_SLOPE_POS + tr_tag: '""' + type: complex + update_time: '0.10' + width1: '1' + width10: '1' + width2: '1' + width3: '1' + width4: '1' + width5: '1' + width6: '1' + width7: '1' + width8: '1' + width9: '1' + xmax: '2' + xmin: '-2' + ymax: '2' + ymin: '-2' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1416, 144.0] + rotation: 0 + state: enabled +- name: qtgui_eye_sink_x_0 + id: qtgui_eye_sink_x + parameters: + affinity: '' + alias: '' + alpha1: '1.0' + alpha10: '1.0' + alpha2: '1.0' + alpha3: '1.0' + alpha4: '1.0' + alpha5: '1.0' + alpha6: '1.0' + alpha7: '1.0' + alpha8: '1.0' + alpha9: '1.0' + autoscale: 'False' + axislabels: 'True' + color1: blue + color10: blue + color2: blue + color3: blue + color4: blue + color5: blue + color6: blue + color7: blue + color8: blue + color9: blue + comment: '' + ctrlpanel: 'False' + entags: 'True' + grid: 'False' + gui_hint: '' + label1: Signal 1 + label10: Signal 10 + label2: Signal 2 + label3: Signal 3 + label4: Signal 4 + label5: Signal 5 + label6: Signal 6 + label7: Signal 7 + label8: Signal 8 + label9: Signal 9 + legend: 'True' + marker1: '-1' + marker10: '-1' + marker2: '-1' + marker3: '-1' + marker4: '-1' + marker5: '-1' + marker6: '-1' + marker7: '-1' + marker8: '-1' + marker9: '-1' + nconnections: '1' + samp_per_symbol: '1' + size: '128' + srate: samp_rate + style1: '1' + style10: '1' + style2: '1' + style3: '1' + style4: '1' + style5: '1' + style6: '1' + style7: '1' + style8: '1' + style9: '1' + tr_chan: '0' + tr_delay: '0' + tr_level: '0.0' + tr_mode: qtgui.TRIG_MODE_FREE + tr_slope: qtgui.TRIG_SLOPE_POS + tr_tag: '""' + type: complex + update_time: '0.10' + width1: '1' + width10: '1' + width2: '1' + width3: '1' + width4: '1' + width5: '1' + width6: '1' + width7: '1' + width8: '1' + width9: '1' + ylabel: Amplitude + ymax: '1' + ymin: '-1' + yunit: '""' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1416, 208.0] + rotation: 0 + state: enabled +- name: qtgui_freq_sink_x_0 + id: qtgui_freq_sink_x + parameters: + affinity: '' + alias: '' + alpha1: '1.0' + alpha10: '1.0' + alpha2: '1.0' + alpha3: '1.0' + alpha4: '1.0' + alpha5: '1.0' + alpha6: '1.0' + alpha7: '1.0' + alpha8: '1.0' + alpha9: '1.0' + autoscale: 'False' + average: '1.0' + axislabels: 'True' + bw: samp_rate + color1: '"blue"' + color10: '"dark blue"' + color2: '"red"' + color3: '"green"' + color4: '"black"' + color5: '"cyan"' + color6: '"magenta"' + color7: '"yellow"' + color8: '"dark red"' + color9: '"dark green"' + comment: '' + ctrlpanel: 'False' + fc: '0' + fftsize: '1024' + freqhalf: 'True' + grid: 'False' + gui_hint: '' + label: Relative Gain + label1: '' + label10: '''''' + label2: '''''' + label3: '''''' + label4: '''''' + label5: '''''' + label6: '''''' + label7: '''''' + label8: '''''' + label9: '''''' + legend: 'True' + maxoutbuf: '0' + minoutbuf: '0' + name: '""' + nconnections: '1' + norm_window: 'False' + showports: 'False' + tr_chan: '0' + tr_level: '0.0' + tr_mode: qtgui.TRIG_MODE_FREE + tr_tag: '""' + type: complex + units: dB + update_time: '0.10' + width1: '1' + width10: '1' + width2: '1' + width3: '1' + width4: '1' + width5: '1' + width6: '1' + width7: '1' + width8: '1' + width9: '1' + wintype: window.WIN_BLACKMAN_hARRIS + ymax: '10' + ymin: '-140' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1040, 144.0] + rotation: 0 + state: enabled +- name: qtgui_time_sink_x_0 + id: qtgui_time_sink_x + parameters: + affinity: '' + alias: '' + alpha1: '1.0' + alpha10: '1.0' + alpha2: '1.0' + alpha3: '1.0' + alpha4: '1.0' + alpha5: '1.0' + alpha6: '1.0' + alpha7: '1.0' + alpha8: '1.0' + alpha9: '1.0' + autoscale: 'False' + axislabels: 'True' + color1: blue + color10: dark blue + color2: red + color3: green + color4: black + color5: cyan + color6: magenta + color7: yellow + color8: dark red + color9: dark green + comment: '' + ctrlpanel: 'False' + entags: 'True' + grid: 'False' + gui_hint: '' + label1: Signal 1 + label10: Signal 10 + label2: Signal 2 + label3: Signal 3 + label4: Signal 4 + label5: Signal 5 + label6: Signal 6 + label7: Signal 7 + label8: Signal 8 + label9: Signal 9 + legend: 'True' + marker1: '-1' + marker10: '-1' + marker2: '-1' + marker3: '-1' + marker4: '-1' + marker5: '-1' + marker6: '-1' + marker7: '-1' + marker8: '-1' + marker9: '-1' + name: '""' + nconnections: '1' + size: '1024' + srate: samp_rate/5 + stemplot: 'False' + style1: '1' + style10: '1' + style2: '1' + style3: '1' + style4: '1' + style5: '1' + style6: '1' + style7: '1' + style8: '1' + style9: '1' + tr_chan: '0' + tr_delay: '0' + tr_level: '0.0' + tr_mode: qtgui.TRIG_MODE_FREE + tr_slope: qtgui.TRIG_SLOPE_POS + tr_tag: '""' + type: complex + update_time: '0.10' + width1: '1' + width10: '1' + width2: '1' + width3: '1' + width4: '1' + width5: '1' + width6: '1' + width7: '1' + width8: '1' + width9: '1' + ylabel: Amplitude + ymax: '1' + ymin: '-1' + yunit: '""' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1416, 312.0] + rotation: 0 + state: enabled +- name: rx_port + id: parameter + parameters: + alias: '' + comment: '' + hide: none + label: '' + short_id: '' + type: str + value: '50002' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [16, 456.0] + rotation: 0 + state: enabled +- name: samp_rate + id: parameter + parameters: + alias: '' + comment: '' + hide: none + label: '' + short_id: '' + type: intx + value: '48000' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [16, 280.0] + rotation: 0 + state: enabled +- name: syncword + id: parameter + parameters: + alias: '' + comment: '' + hide: none + label: '' + short_id: '' + type: '' + value: '"0000011100001001000110110010110101110111100110001010100111111010"' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [16, 192.0] + rotation: 0 + state: enabled + +connections: +- [ONBEAT_Demod_1, '0', qtgui_const_sink_x_0, '0'] +- [ONBEAT_Demod_1, '1', qtgui_eye_sink_x_0, '0'] +- [ONBEAT_Demod_1, '2', qtgui_time_sink_x_0, '0'] +- [ONBEAT_Demod_1, out, network_socket_pdu_1, pdus] +- [analog_sig_source_x_0, '0', blocks_multiply_xx_0, '1'] +- [audio_source_0, '0', hilbert_fc_0, '0'] +- [audio_source_0, '1', blocks_null_sink_0, '0'] +- [blocks_multiply_xx_0, '0', freq_xlating_fir_filter_xxx_0, '0'] +- [freq_xlating_fir_filter_xxx_0, '0', ONBEAT_Demod_1, '0'] +- [freq_xlating_fir_filter_xxx_0, '0', qtgui_freq_sink_x_0, '0'] +- [hilbert_fc_0, '0', blocks_multiply_xx_0, '0'] + +metadata: + file_format: 1 + grc_version: 3.10.12.0