Sunday, March 7, 2021

Re: ZMQ Message Debug

options:
parameters:
author: ''
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: msg_debug_test
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: msg_debug_test
window_size: (1000,1000)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled

blocks:
- name: EBW
id: variable
parameters:
comment: ''
value: '.05'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [680, 12.0]
rotation: 0
state: enabled
- name: RRC_filter_taps
id: variable_rrc_filter_taps
parameters:
alpha: EBW
comment: ''
gain: nfilts
ntaps: int(5*SPS*nfilts/RX_Decimation)
samp_rate: nfilts
sym_rate: '1.0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 92.0]
rotation: 0
state: enabled
- name: RX_Decimation
id: variable
parameters:
comment: ''
value: '49'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [560, 12.0]
rotation: 0
state: enabled
- name: SPS
id: variable
parameters:
comment: ''
value: '147'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [480, 12.0]
rotation: 0
state: enabled
- name: carrier_freq
id: variable
parameters:
comment: ''
value: 1.73E3
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [280, 12.0]
rotation: 0
state: enabled
- name: fsk_deviation_hz
id: variable
parameters:
comment: ''
value: '100'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [768, 12.0]
rotation: 0
state: enabled
- name: nfilts
id: variable
parameters:
comment: ''
value: '32'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [152, 100.0]
rotation: 0
state: enabled
- name: samp_rate
id: variable
parameters:
comment: ''
value: '44100'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [184, 12]
rotation: 0
state: enabled
- name: analog_feedforward_agc_cc_0
id: analog_feedforward_agc_cc
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_samples: '1024'
reference: '1.0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1184, 260.0]
rotation: 0
state: enabled
- name: analog_pwr_squelch_xx_1
id: analog_pwr_squelch_xx
parameters:
affinity: ''
alias: ''
alpha: '.01'
comment: ''
gate: 'True'
maxoutbuf: '0'
minoutbuf: '0'
ramp: '0'
threshold: '-60'
type: complex
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1000, 244.0]
rotation: 0
state: enabled
- name: analog_quadrature_demod_cf_0
id: analog_quadrature_demod_cf
parameters:
affinity: ''
alias: ''
comment: ''
gain: samp_rate/(2*math.pi*fsk_deviation_hz/8.0)/RX_Decimation
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1288, 412.0]
rotation: 180
state: enabled
- name: analog_sig_source_x_0_0
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: '1'
comment: ''
freq: -carrier_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: [288, 100.0]
rotation: 0
state: enabled
- name: blocks_float_to_complex_0
id: blocks_float_to_complex
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [248, 272.0]
rotation: 0
state: enabled
- name: blocks_message_debug_1
id: blocks_message_debug
parameters:
affinity: ''
alias: ''
comment: ''
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [136, 488.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: [464, 256.0]
rotation: 0
state: enabled
- name: blocks_repack_bits_bb_1_0
id: blocks_repack_bits_bb
parameters:
affinity: ''
alias: ''
align_output: 'False'
comment: ''
endianness: gr.GR_MSB_FIRST
k: '1'
l: '8'
len_tag_key: packet_len
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [320, 412.0]
rotation: 180
state: enabled
- name: blocks_tagged_stream_to_pdu_0
id: blocks_tagged_stream_to_pdu
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
tag: packet_len
type: byte
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [80, 420.0]
rotation: 180
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: [600, 268.0]
rotation: 0
state: enabled
- name: blocks_wavfile_source_0
id: blocks_wavfile_source
parameters:
affinity: ''
alias: ''
comment: ''
file: /opt/data/wave/ssbaudio.wav
maxoutbuf: '0'
minoutbuf: '0'
nchan: '1'
repeat: 'True'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [16, 260.0]
rotation: 0
state: enabled
- 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: [824, 424.0]
rotation: 180
state: enabled
- name: digital_correlate_access_code_xx_ts_0
id: digital_correlate_access_code_xx_ts
parameters:
access_code: digital.packet_utils.default_access_code
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
tagname: packet_len
threshold: '2'
type: byte
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [528, 404.0]
rotation: 180
state: enabled
- name: digital_pfb_clock_sync_xxx_0
id: digital_pfb_clock_sync_xxx
parameters:
affinity: ''
alias: ''
comment: ''
filter_size: '32'
init_phase: '16'
loop_bw: 6.28/400.0*2/70
max_dev: '1.5'
maxoutbuf: '0'
minoutbuf: '0'
osps: '1'
sps: SPS/RX_Decimation
taps: RRC_filter_taps
type: fff
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1008, 364.0]
rotation: 180
state: enabled
- name: import_0
id: import
parameters:
alias: ''
comment: ''
imports: import numpy
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [376, 12.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: '""'
plotconst: 'False'
plotfreq: 'True'
plottime: 'False'
plotwaterfall: 'False'
rate: '10'
showports: 'False'
showrf: 'True'
type: complex
wintype: firdes.WIN_BLACKMAN_hARRIS
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [784, 108.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: 'True'
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: 'True'
gui_hint: ''
label1: ''
label10: ''
label2: ''
label3: ''
label4: ''
label5: ''
label6: ''
label7: ''
label8: ''
label9: ''
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/RX_Decimation
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: '1'
ymin: '-1'
yunit: '""'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1088, 564.0]
rotation: 180
state: enabled
- name: rational_resampler_xxx_1
id: rational_resampler_xxx
parameters:
affinity: ''
alias: ''
comment: ''
decim: RX_Decimation
fbw: '0'
interp: '1'
maxoutbuf: '0'
minoutbuf: '0'
taps: ''
type: ccc
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [800, 244.0]
rotation: 0
state: true

connections:
- [analog_feedforward_agc_cc_0, '0', analog_quadrature_demod_cf_0, '0']
- [analog_pwr_squelch_xx_1, '0', analog_feedforward_agc_cc_0, '0']
- [analog_quadrature_demod_cf_0, '0', digital_pfb_clock_sync_xxx_0, '0']
- [analog_quadrature_demod_cf_0, '0', qtgui_time_sink_x_0, '0']
- [analog_sig_source_x_0_0, '0', blocks_multiply_xx_0, '0']
- [blocks_float_to_complex_0, '0', blocks_multiply_xx_0, '1']
- [blocks_multiply_xx_0, '0', blocks_throttle_0, '0']
- [blocks_repack_bits_bb_1_0, '0', blocks_tagged_stream_to_pdu_0, '0']
- [blocks_tagged_stream_to_pdu_0, pdus, blocks_message_debug_1, print]
- [blocks_throttle_0, '0', qtgui_sink_x_0, '0']
- [blocks_throttle_0, '0', rational_resampler_xxx_1, '0']
- [blocks_wavfile_source_0, '0', blocks_float_to_complex_0, '0']
- [digital_binary_slicer_fb_0, '0', digital_correlate_access_code_xx_ts_0, '0']
- [digital_correlate_access_code_xx_ts_0, '0', blocks_repack_bits_bb_1_0, '0']
- [digital_pfb_clock_sync_xxx_0, '0', digital_binary_slicer_fb_0, '0']
- [rational_resampler_xxx_1, '0', analog_pwr_squelch_xx_1, '0']

metadata:
file_format: 1
Hi Jay - enclosed is the second part of your flow chart - it was easy to cut it out and paste in a separate flowgraph.

I fed the flowgraph with a wave file instead of using the output from the first part.

The message debug works.

The only block with is blabbering is the Squelch. If you switch it between the "pass through"  and "enable" positions, you'll see the PDU debug messages in the time frequency plot.

The problem may be in the first part of the flow graph.

Otherwise, I have no idea what you're doing or why you're doing it.

-- Cinaed


On 3/7/21 12:06 PM, Jay Patel wrote:
Hi all,

I am sending messages from an external application via (ZMQ PUSH) and received those messages in the GNURadio via ZMQ Pull message source. 

From the ZMQ PULL side, I had correctly debugged the message coming from external applications.

I want to basically transmit those messages. But in the receiver side after the Tagged stream to PDU ->  message debug block don't print anything. I put a QT Freq sink to check if the data is coming properly or not.  

Did I miss something? How can I properly debug the messages. I had attached my flow graph.

Any suggestions are welcome.

With Regards,
Jay Patel


No comments:

Post a Comment