Sat Feb 13 00:29:48 2021
options
author
Jay
window_size
category
Custom
comment
description
_enabled
True
_coordinate
(8, 8)
_rotation
0
generate_options
qt_gui
hier_block_src_path
.:
id
top_block
max_nouts
0
qt_qss_theme
realtime_scheduling
run_command
{python} -u {filename}
run_options
run
run
True
thread_safe_setters
title
ZQM Testing
variable
comment
_enabled
True
_coordinate
(208, 373)
_rotation
0
id
EBW
value
.05
variable_rrc_filter_taps
comment
_enabled
True
alpha
EBW
_coordinate
(24, 321)
_rotation
0
gain
nfilts
id
RRC_filter_taps
ntaps
int(5*SPS*nfilts/RX_Decimation)
samp_rate
nfilts
sym_rate
1.0
variable
comment
_enabled
True
_coordinate
(736, 5)
_rotation
0
id
RX_Decimation
value
49
variable
comment
_enabled
True
_coordinate
(544, 5)
_rotation
0
id
SPS
value
147
variable
comment
_enabled
True
_coordinate
(624, 5)
_rotation
0
id
carrier_freq
value
1.73E3
variable
comment
_enabled
True
_coordinate
(856, 5)
_rotation
0
id
fsk_deviation_hz
value
100
variable
comment
_enabled
True
_coordinate
(288, 373)
_rotation
0
id
nfilts
value
32
variable
comment
_enabled
True
_coordinate
(200, 13)
_rotation
0
id
samp_rate
value
44100
analog_const_source_x
alias
comment
const
0
affinity
_enabled
True
_coordinate
(40, 516)
_rotation
0
id
analog_const_source_x_0
maxoutbuf
0
minoutbuf
0
type
float
analog_feedforward_agc_cc
alias
comment
affinity
_enabled
True
_coordinate
(664, 581)
_rotation
180
id
analog_feedforward_agc_cc_0
maxoutbuf
0
minoutbuf
0
num_samples
1024
reference
1.0
analog_pwr_squelch_xx
alpha
.01
alias
comment
affinity
_enabled
True
_coordinate
(672, 479)
_rotation
0
gate
True
id
analog_pwr_squelch_xx_0
maxoutbuf
0
minoutbuf
0
ramp
0
threshold
-60
type
complex
analog_quadrature_demod_cf
alias
comment
affinity
_enabled
True
_coordinate
(496, 540)
_rotation
180
gain
samp_rate/(2*math.pi*fsk_deviation_hz/8.0)/RX_Decimation
id
analog_quadrature_demod_cf_0
maxoutbuf
0
minoutbuf
0
analog_sig_source_x
amp
1
alias
comment
affinity
_enabled
True
freq
-carrier_freq
_coordinate
(184, 544)
_rotation
0
id
analog_sig_source_x_0
maxoutbuf
0
minoutbuf
0
offset
0
type
complex
samp_rate
samp_rate
waveform
analog.GR_COS_WAVE
audio_sink
alias
comment
affinity
device_name
_enabled
True
_coordinate
(864, 68)
_rotation
0
id
audio_sink_0
num_inputs
1
ok_to_block
True
samp_rate
samp_rate
audio_source
alias
comment
affinity
device_name
_enabled
True
_coordinate
(0, 437)
_rotation
0
id
audio_source_0
maxoutbuf
0
minoutbuf
0
num_outputs
1
ok_to_block
True
samp_rate
samp_rate
blocks_float_to_complex
alias
comment
affinity
_enabled
True
_coordinate
(200, 441)
_rotation
0
id
blocks_float_to_complex_0
maxoutbuf
0
minoutbuf
0
vlen
1
blocks_message_debug
alias
comment
affinity
_enabled
0
_coordinate
(424, 9)
_rotation
0
id
blocks_message_debug_0
blocks_message_debug
alias
comment
affinity
_enabled
True
_coordinate
(752, 737)
_rotation
0
id
blocks_message_debug_1
blocks_multiply_xx
alias
comment
affinity
_enabled
True
_coordinate
(368, 481)
_rotation
0
id
blocks_multiply_xx_0
type
complex
maxoutbuf
0
minoutbuf
0
num_inputs
2
vlen
1
blocks_pdu_to_tagged_stream
alias
comment
affinity
_enabled
True
_coordinate
(272, 172)
_rotation
0
id
blocks_pdu_to_tagged_stream_0
type
byte
tag
packet_len
maxoutbuf
0
minoutbuf
0
blocks_repack_bits_bb
k
8
l
1
alias
comment
affinity
_enabled
True
endianness
gr.GR_MSB_FIRST
_coordinate
(280, 309)
_rotation
0
id
blocks_repack_bits_bb_0
len_tag_key
packet_len
maxoutbuf
0
minoutbuf
0
align_output
False
blocks_repack_bits_bb
k
1
l
8
alias
comment
affinity
_enabled
True
endianness
gr.GR_MSB_FIRST
_coordinate
(352, 829)
_rotation
0
id
blocks_repack_bits_bb_1
len_tag_key
packet_len
maxoutbuf
0
minoutbuf
0
align_output
False
blocks_repeat
alias
comment
affinity
_enabled
True
_coordinate
(664, 76)
_rotation
0
id
blocks_repeat_0
interp
SPS
maxoutbuf
0
minoutbuf
0
type
float
vlen
1
blocks_stream_to_tagged_stream
alias
comment
affinity
_enabled
True
_coordinate
(424, 109)
_rotation
0
id
blocks_stream_to_tagged_stream_0
len_tag_key
"packet_len"
maxoutbuf
0
minoutbuf
0
packet_len
200
type
byte
vlen
1
blocks_tagged_stream_mux
alias
comment
affinity
_enabled
True
_coordinate
(288, 244)
_rotation
0
id
blocks_tagged_stream_mux_0
type
byte
lengthtagname
packet_len
maxoutbuf
0
minoutbuf
0
ninputs
1
tag_preserve_head_pos
0
vlen
1
blocks_tagged_stream_mux
alias
comment
affinity
_enabled
True
_coordinate
(536, 265)
_rotation
0
id
blocks_tagged_stream_mux_1
type
byte
lengthtagname
packet_len
maxoutbuf
0
minoutbuf
0
ninputs
2
tag_preserve_head_pos
0
vlen
1
blocks_tagged_stream_to_pdu
alias
comment
affinity
_enabled
True
_coordinate
(480, 764)
_rotation
0
id
blocks_tagged_stream_to_pdu_0
type
byte
tag
packet_len
maxoutbuf
0
minoutbuf
0
blocks_vco_f
amplitude
1
alias
comment
affinity
_enabled
True
_coordinate
(792, 166)
_rotation
0
id
blocks_vco_f_0
maxoutbuf
0
minoutbuf
0
samp_rate
samp_rate
sensitivity
1
blocks_vector_source_x
alias
comment
affinity
_enabled
True
_coordinate
(232, 78)
_rotation
0
id
blocks_vector_source_x_0
maxoutbuf
0
minoutbuf
0
type
byte
repeat
True
tags
[]
vlen
1
vector
(1, 0)
digital_binary_slicer_fb
alias
comment
affinity
_enabled
True
_coordinate
(56, 745)
_rotation
180
id
digital_binary_slicer_fb_0
maxoutbuf
0
minoutbuf
0
digital_chunks_to_symbols_xx
alias
comment
affinity
dimension
1
_enabled
True
_coordinate
(552, 173)
_rotation
0
id
digital_chunks_to_symbols_xx_0
in_type
byte
maxoutbuf
0
minoutbuf
0
num_ports
1
out_type
float
symbol_table
(10362.0,11618.0)
digital_correlate_access_code_xx_ts
access_code
digital.packet_utils.default_access_code
alias
comment
affinity
_enabled
True
_coordinate
(56, 790)
_rotation
0
id
digital_correlate_access_code_xx_ts_0
type
byte
maxoutbuf
0
minoutbuf
0
tagname
packet_len
threshold
2
digital_pfb_clock_sync_xxx
alias
comment
affinity
_enabled
True
filter_size
32
_coordinate
(240, 649)
_rotation
180
id
digital_pfb_clock_sync_xxx_0
init_phase
16
loop_bw
6.28/400.0*2/70
maxoutbuf
0
max_dev
1.5
minoutbuf
0
osps
1
sps
SPS/RX_Decimation
taps
RRC_filter_taps
type
fff
epy_block
alias
_io_cache
('Embedded Python Block', 'msg_block', [], [('msg_in', 'message')], [('msg_out', 'message')], 'Convert strings to uint8 vectors')
_source_code
"""
Embedded Python Blocks:
Each time this file is saved, GRC will instantiate the first class it finds
to get ports and parameters of your block. The arguments to __init__ will
be the parameters. All of them are required to have default values!
"""
import numpy as np
import pylab
from gnuradio import gr
import pmt
class msg_block(gr.basic_block): # other base classes are basic_block, decim_block, interp_block
"""Convert strings to uint8 vectors"""
def __init__(self): # only default arguments here
"""arguments to this function show up as parameters in GRC"""
gr.basic_block.__init__(
self,
name='Embedded Python Block', # will show up in GRC
in_sig=None,
out_sig=None
)
self.message_port_register_out(pmt.intern('msg_out'))
self.message_port_register_in(pmt.intern('msg_in'))
self.set_msg_handler(pmt.intern('msg_in'), self.handle_msg)
def handle_msg(self, msg):
nvec = pmt.to_python(msg)
self.message_port_pub(pmt.intern('msg_out'), pmt.cons(pmt.make_dict(), pmt.pmt_to_python.numpy_to_uvector(np.array([ord(c) for c in nvec], np.uint8))))
def work(self, input_items, output_items):
pass
comment
_enabled
True
_coordinate
(56, 281)
_rotation
0
id
epy_block_0
import
alias
comment
_enabled
True
_coordinate
(312, 36)
_rotation
0
id
import_0
import
import numpy
qtgui_freq_sink_x
autoscale
False
average
1.0
bw
samp_rate/RX_Decimation
alias
fc
0
comment
ctrlpanel
False
affinity
_enabled
True
fftsize
1024
_coordinate
(832, 382)
gui_hint
_rotation
0
grid
False
id
qtgui_freq_sink_x_0
legend
True
alpha1
1.0
color1
"blue"
label1
width1
1
alpha10
1.0
color10
"dark blue"
label10
width10
1
alpha2
1.0
color2
"red"
label2
width2
1
alpha3
1.0
color3
"green"
label3
width3
1
alpha4
1.0
color4
"black"
label4
width4
1
alpha5
1.0
color5
"cyan"
label5
width5
1
alpha6
1.0
color6
"magenta"
label6
width6
1
alpha7
1.0
color7
"yellow"
label7
width7
1
alpha8
1.0
color8
"dark red"
label8
width8
1
alpha9
1.0
color9
"dark green"
label9
width9
1
maxoutbuf
0
minoutbuf
0
name
""
nconnections
1
showports
False
freqhalf
True
tr_chan
0
tr_level
0.0
tr_mode
qtgui.TRIG_MODE_FREE
tr_tag
""
type
complex
update_time
0.10
wintype
firdes.WIN_BLACKMAN_hARRIS
ymax
10
ymin
-140
qtgui_sink_x
bw
samp_rate
alias
fc
0
freqchangevar
None
comment
affinity
_enabled
0
fftsize
1024
_coordinate
(824, 263)
gui_hint
_rotation
0
id
qtgui_sink_x_0
maxoutbuf
0
minoutbuf
0
name
""
plotconst
True
plotfreq
True
plottime
True
plotwaterfall
True
showports
True
showrf
False
type
float
rate
10
wintype
firdes.WIN_BLACKMAN_hARRIS
qtgui_time_sink_x
autoscale
True
alias
comment
ctrlpanel
False
affinity
entags
True
_enabled
True
_coordinate
(568, 646)
gui_hint
_rotation
0
grid
True
id
qtgui_time_sink_x_0
legend
True
alpha1
1.0
color1
"blue"
label1
marker1
-1
style1
1
width1
1
alpha10
1.0
color10
"blue"
label10
marker10
-1
style10
1
width10
1
alpha2
1.0
color2
"red"
label2
marker2
-1
style2
1
width2
1
alpha3
1.0
color3
"green"
label3
marker3
-1
style3
1
width3
1
alpha4
1.0
color4
"black"
label4
marker4
-1
style4
1
width4
1
alpha5
1.0
color5
"cyan"
label5
marker5
-1
style5
1
width5
1
alpha6
1.0
color6
"magenta"
label6
marker6
-1
style6
1
width6
1
alpha7
1.0
color7
"yellow"
label7
marker7
-1
style7
1
width7
1
alpha8
1.0
color8
"dark red"
label8
marker8
-1
style8
1
width8
1
alpha9
1.0
color9
"dark green"
label9
marker9
-1
style9
1
width9
1
name
""
nconnections
1
size
1024
srate
samp_rate/RX_Decimation
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
ylabel
Amplitude
yunit
""
ymax
1
ymin
-1
rational_resampler_xxx
alias
comment
affinity
decim
RX_Decimation
_enabled
True
fbw
0
_coordinate
(496, 432)
_rotation
0
id
rational_resampler_xxx_0
interp
1
maxoutbuf
0
minoutbuf
0
taps
type
ccc
zeromq_pull_msg_source
address
tcp://127.0.0.1:5558
alias
comment
affinity
_enabled
True
_coordinate
(16, 133)
_rotation
0
id
zeromq_pull_msg_source_0
maxoutbuf
0
minoutbuf
0
timeout
100
analog_const_source_x_0
blocks_float_to_complex_0
0
1
analog_feedforward_agc_cc_0
analog_quadrature_demod_cf_0
0
0
analog_pwr_squelch_xx_0
analog_feedforward_agc_cc_0
0
0
analog_pwr_squelch_xx_0
qtgui_freq_sink_x_0
0
0
analog_quadrature_demod_cf_0
digital_pfb_clock_sync_xxx_0
0
0
analog_quadrature_demod_cf_0
qtgui_time_sink_x_0
0
0
analog_sig_source_x_0
blocks_multiply_xx_0
0
1
audio_source_0
blocks_float_to_complex_0
0
0
blocks_float_to_complex_0
blocks_multiply_xx_0
0
0
blocks_multiply_xx_0
rational_resampler_xxx_0
0
0
blocks_pdu_to_tagged_stream_0
blocks_tagged_stream_mux_0
0
0
blocks_repack_bits_bb_0
blocks_tagged_stream_mux_1
0
1
blocks_repack_bits_bb_1
blocks_tagged_stream_to_pdu_0
0
0
blocks_repeat_0
blocks_vco_f_0
0
0
blocks_stream_to_tagged_stream_0
blocks_tagged_stream_mux_1
0
0
blocks_tagged_stream_mux_0
blocks_repack_bits_bb_0
0
0
blocks_tagged_stream_mux_1
digital_chunks_to_symbols_xx_0
0
0
blocks_tagged_stream_to_pdu_0
blocks_message_debug_1
pdus
print
blocks_vco_f_0
audio_sink_0
0
0
blocks_vco_f_0
qtgui_sink_x_0
0
0
blocks_vector_source_x_0
blocks_stream_to_tagged_stream_0
0
0
digital_binary_slicer_fb_0
digital_correlate_access_code_xx_ts_0
0
0
digital_chunks_to_symbols_xx_0
blocks_repeat_0
0
0
digital_correlate_access_code_xx_ts_0
blocks_repack_bits_bb_1
0
0
digital_pfb_clock_sync_xxx_0
digital_binary_slicer_fb_0
0
0
epy_block_0
blocks_pdu_to_tagged_stream_0
msg_out
pdus
rational_resampler_xxx_0
analog_pwr_squelch_xx_0
0
0
zeromq_pull_msg_source_0
blocks_message_debug_0
out
print
zeromq_pull_msg_source_0
epy_block_0
out
msg_in