Skip to content

Instantly share code, notes, and snippets.

@marcinsztajn
Created February 1, 2022 12:33
Show Gist options
  • Save marcinsztajn/c713ec33fa3e3c5bdb9c467d8487d4fc to your computer and use it in GitHub Desktop.
Save marcinsztajn/c713ec33fa3e3c5bdb9c467d8487d4fc to your computer and use it in GitHub Desktop.
options:
parameters:
author: marcin
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: FSK2
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: Not titled yet
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled
blocks:
- name: bits_per_symbol
id: variable
parameters:
comment: ''
value: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [296, 12.0]
rotation: 0
state: true
- name: noise_amplitude
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: 0,1,1,1
label: Nosie amplitude
min_len: '200'
orient: QtCore.Qt.Horizontal
rangeType: float
start: '0'
step: '0.01'
stop: '1'
value: '0.1'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [664, 12.0]
rotation: 0
state: true
- name: outer_deviation
id: variable
parameters:
comment: ''
value: samp_rate/20
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [512, 12.0]
rotation: 0
state: true
- name: samp_rate
id: variable
parameters:
comment: ''
value: '32000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [184, 12]
rotation: 0
state: enabled
- name: sps
id: variable
parameters:
comment: ''
value: '80'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [432, 12.0]
rotation: 0
state: true
- name: analog_const_source_x_0
id: analog_const_source_x
parameters:
affinity: ''
alias: ''
comment: ''
const: (2**bits_per_symbol - 1)/2
maxoutbuf: '0'
minoutbuf: '0'
type: float
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [312, 212.0]
rotation: 0
state: true
- name: analog_noise_source_x_0
id: analog_noise_source_x
parameters:
affinity: ''
alias: ''
amp: noise_amplitude
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
noise_type: analog.GR_GAUSSIAN
seed: '0'
type: complex
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1024, 60.0]
rotation: 0
state: true
- name: analog_quadrature_demod_cf_0
id: analog_quadrature_demod_cf
parameters:
affinity: ''
alias: ''
comment: ''
gain: samp_rate/(2*math.pi*outer_deviation)
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [208, 372.0]
rotation: 0
state: true
- name: analog_random_source_x_0
id: analog_random_source_x
parameters:
affinity: ''
alias: ''
comment: ''
max: '2'
maxoutbuf: '0'
min: '0'
minoutbuf: '0'
num_samps: '1000'
repeat: 'True'
type: byte
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 132.0]
rotation: 0
state: true
- name: blocks_add_xx_0
id: blocks_add_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: [1248, 128.0]
rotation: 0
state: true
- name: blocks_multiply_const_vxx_0
id: blocks_multiply_const_vxx
parameters:
affinity: ''
alias: ''
comment: ''
const: 1/((2**bits_per_symbol - 1)/2)
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [856, 172.0]
rotation: 0
state: true
- name: blocks_repeat_0
id: blocks_repeat
parameters:
affinity: ''
alias: ''
comment: ''
interp: sps
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [688, 172.0]
rotation: 0
state: true
- name: blocks_sub_xx_0
id: blocks_sub_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [560, 160.0]
rotation: 0
state: true
- name: blocks_sub_xx_1
id: blocks_sub_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1120, 344.0]
rotation: 0
state: true
- name: blocks_throttle_0
id: blocks_throttle
parameters:
affinity: ''
alias: ''
comment: ''
ignoretag: 'True'
maxoutbuf: '0'
minoutbuf: '0'
samples_per_second: samp_rate
type: byte
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [200, 156.0]
rotation: 0
state: true
- name: blocks_uchar_to_float_0
id: blocks_uchar_to_float
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [376, 160.0]
rotation: 0
state: true
- name: blocks_uchar_to_float_1
id: blocks_uchar_to_float
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [928, 344.0]
rotation: 0
state: true
- name: blocks_vco_c_0
id: blocks_vco_c
parameters:
affinity: ''
alias: ''
amplitude: '1'
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
samp_rate: samp_rate
sensitivity: 2*math.pi*outer_deviation
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1024, 156.0]
rotation: 0
state: true
- name: digital_binary_slicer_fb_0
id: digital_binary_slicer_fb
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [776, 344.0]
rotation: 0
state: true
- name: digital_symbol_sync_xx_0
id: digital_symbol_sync_xx
parameters:
affinity: ''
alias: ''
comment: ''
constellation: digital.constellation_bpsk().base()
damping: '0.707'
loop_bw: '0.045'
max_dev: '1.5'
maxoutbuf: '0'
minoutbuf: '0'
nfilters: '128'
osps: '1'
pfb_mf_taps: '[]'
resamp_type: digital.IR_MMSE_8TAP
sps: sps
ted_gain: '1.0'
ted_type: digital.TED_EARLY_LATE
type: ff
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [424, 348.0]
rotation: 0
state: true
- name: qtgui_number_sink_0
id: qtgui_number_sink
parameters:
affinity: ''
alias: ''
autoscale: 'False'
avg: '0'
color1: ("black", "black")
color10: ("black", "black")
color2: ("black", "black")
color3: ("black", "black")
color4: ("black", "black")
color5: ("black", "black")
color6: ("black", "black")
color7: ("black", "black")
color8: ("black", "black")
color9: ("black", "black")
comment: ''
factor1: '1'
factor10: '1'
factor2: '1'
factor3: '1'
factor4: '1'
factor5: '1'
factor6: '1'
factor7: '1'
factor8: '1'
factor9: '1'
graph_type: qtgui.NUM_GRAPH_NONE
gui_hint: 0,0,1,1
label1: Sychronization error
label10: ''
label2: Estimated instantaneous sps
label3: Estimated average sps
label4: ''
label5: ''
label6: ''
label7: ''
label8: ''
label9: ''
max: '1'
min: '-1'
name: '"Sync error, Instantaneous sps, Average sps"'
nconnections: '3'
type: float
unit1: samples/symbol
unit10: ''
unit2: samples/symbol
unit3: samples/symbol
unit4: ''
unit5: ''
unit6: ''
unit7: ''
unit8: ''
unit9: ''
update_time: '0.10'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [744, 388.0]
rotation: 0
state: true
- name: qtgui_sink_x_0
id: qtgui_sink_x
parameters:
affinity: ''
alias: ''
bw: samp_rate
comment: ''
fc: '0'
fftsize: '1024'
gui_hint: 2,1,1,1
maxoutbuf: '0'
minoutbuf: '0'
name: '""'
plotconst: 'True'
plotfreq: 'True'
plottime: 'True'
plotwaterfall: 'True'
rate: '10'
showports: 'False'
showrf: 'False'
type: complex
wintype: window.WIN_BLACKMAN_hARRIS
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1384, 76.0]
rotation: 0
state: true
- 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: 2,0,1,1
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: '"Demodulated signal"'
nconnections: '1'
size: '1024'
srate: samp_rate
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: float
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: '2'
ymin: '-2'
yunit: '""'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [448, 244.0]
rotation: 0
state: true
- name: qtgui_time_sink_x_0_0_1
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: 1,0,1,2
label1: Difference
label10: Signal 10
label2: Received sequence
label3: Sent sequence
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: '"Difference"'
nconnections: '3'
size: '512'
srate: samp_rate
stemplot: 'True'
style1: '0'
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: float
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: [1240, 464.0]
rotation: 0
state: enabled
- name: virtual_sink_0
id: virtual_sink
parameters:
alias: ''
comment: ''
stream_id: fsk_sig
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1360, 228.0]
rotation: 0
state: true
- name: virtual_sink_0_0
id: virtual_sink
parameters:
alias: ''
comment: ''
stream_id: bytes
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [536, 92.0]
rotation: 0
state: true
- name: virtual_source_0
id: virtual_source
parameters:
alias: ''
comment: ''
stream_id: fsk_sig
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 372.0]
rotation: 0
state: true
- name: virtual_source_0_0
id: virtual_source
parameters:
alias: ''
comment: ''
stream_id: bytes
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [896, 532.0]
rotation: 0
state: true
connections:
- [analog_const_source_x_0, '0', blocks_sub_xx_0, '1']
- [analog_noise_source_x_0, '0', blocks_add_xx_0, '0']
- [analog_quadrature_demod_cf_0, '0', digital_symbol_sync_xx_0, '0']
- [analog_quadrature_demod_cf_0, '0', qtgui_time_sink_x_0, '0']
- [analog_random_source_x_0, '0', blocks_throttle_0, '0']
- [blocks_add_xx_0, '0', qtgui_sink_x_0, '0']
- [blocks_add_xx_0, '0', virtual_sink_0, '0']
- [blocks_multiply_const_vxx_0, '0', blocks_vco_c_0, '0']
- [blocks_repeat_0, '0', blocks_multiply_const_vxx_0, '0']
- [blocks_sub_xx_0, '0', blocks_repeat_0, '0']
- [blocks_sub_xx_1, '0', qtgui_time_sink_x_0_0_1, '0']
- [blocks_throttle_0, '0', blocks_uchar_to_float_0, '0']
- [blocks_uchar_to_float_0, '0', blocks_sub_xx_0, '0']
- [blocks_uchar_to_float_0, '0', virtual_sink_0_0, '0']
- [blocks_uchar_to_float_1, '0', blocks_sub_xx_1, '0']
- [blocks_uchar_to_float_1, '0', qtgui_time_sink_x_0_0_1, '1']
- [blocks_vco_c_0, '0', blocks_add_xx_0, '1']
- [digital_binary_slicer_fb_0, '0', blocks_uchar_to_float_1, '0']
- [digital_symbol_sync_xx_0, '0', digital_binary_slicer_fb_0, '0']
- [digital_symbol_sync_xx_0, '1', qtgui_number_sink_0, '0']
- [digital_symbol_sync_xx_0, '2', qtgui_number_sink_0, '1']
- [digital_symbol_sync_xx_0, '3', qtgui_number_sink_0, '2']
- [virtual_source_0, '0', analog_quadrature_demod_cf_0, '0']
- [virtual_source_0_0, '0', blocks_sub_xx_1, '1']
- [virtual_source_0_0, '0', qtgui_time_sink_x_0_0_1, '2']
metadata:
file_format: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment