Sun Sep 4 20:59:56 2016 options author Aaron Scher window_size 2000,2000 category [GRC Hier Blocks] comment description This example shows the basics of frame syncing. _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 prompt run True thread_safe_setters title Frame Sync Example variable comment _enabled True _coordinate (8, 92) _rotation 0 id samp_rate value 32000 blocks_message_debug alias comment Display the message that was sent. affinity _enabled 1 _coordinate (896, 208) _rotation 0 id blocks_message_debug_0 blocks_message_strobe alias comment Generate hello world message affinity _enabled 1 _coordinate (176, 12) _rotation 0 id blocks_message_strobe_0_0 maxoutbuf 0 msg pmt.cons(pmt.make_dict(), pmt.pmt_to_python.numpy_to_uvector(numpy.array([ord(c) for c in "Hello world!"], numpy.uint8))) minoutbuf 0 period 500 blocks_pdu_to_tagged_stream alias comment affinity _enabled True _coordinate (216, 124) _rotation 0 id blocks_pdu_to_tagged_stream_1 type byte tag len_key maxoutbuf 0 minoutbuf 0 blocks_repack_bits_bb k 8 l hdr_const.bits_per_symbol() alias comment Access code block up ahead needs 1 byte per bit affinity _enabled 1 endianness gr.GR_MSB_FIRST _coordinate (872, 84) _rotation 0 id blocks_repack_bits_bb_0_0 len_tag_key len_key maxoutbuf 0 minoutbuf 0 align_output False blocks_repack_bits_bb k 1 l 8 alias comment Tagged Stream to PDU block up ahead needs packed bytes affinity _enabled 1 endianness gr.GR_MSB_FIRST _coordinate (456, 260) _rotation 0 id blocks_repack_bits_bb_0_0_0 len_tag_key len_key2 maxoutbuf 0 minoutbuf 0 align_output False blocks_tag_gate alias comment Simulate the "channel'... removes tags affinity _enabled 1 _coordinate (216, 204) _rotation 0 id blocks_tag_gate_0_0 type byte maxoutbuf 0 minoutbuf 0 propagate_tags False vlen 1 blocks_tagged_stream_mux alias comment Append header to payload affinity _enabled True _coordinate (608, 80) _rotation 0 id blocks_tagged_stream_mux_0 type byte lengthtagname len_key maxoutbuf 0 minoutbuf 0 ninputs 2 tag_preserve_head_pos 0 vlen 1 blocks_tagged_stream_to_pdu alias comment affinity _enabled 1 _coordinate (680, 268) _rotation 0 id blocks_tagged_stream_to_pdu_0 type byte tag len_key2 maxoutbuf 0 minoutbuf 0 blocks_throttle alias comment Slow things down :) affinity _enabled True _coordinate (728, 4) _rotation 0 id blocks_throttle_0 ignoretag True maxoutbuf 0 minoutbuf 0 samples_per_second samp_rate type byte vlen 1 digital_chunks_to_symbols_xx alias comment To display in time domain we map individual bits to (complex) symbols affinity dimension 1 _enabled 1 _coordinate (504, 356) _rotation 0 id digital_chunks_to_symbols_xx_0_0_0 in_type byte maxoutbuf 0 minoutbuf 0 num_ports 1 out_type complex symbol_table hdr_const.points() digital_correlate_access_code_xx_ts access_code digital.packet_utils.default_access_code alias comment Correlates with access code to extract the payload. affinity _enabled 1 _coordinate (208, 320) _rotation 0 id digital_correlate_access_code_xx_ts_1 type byte maxoutbuf 0 minoutbuf 0 tagname len_key2 threshold 0 digital_protocol_formatter_bb alias comment Generate header affinity _enabled True format hdr_format _coordinate (464, 4) _rotation 0 id digital_protocol_formatter_bb_0 len_tag_key len_key maxoutbuf 0 minoutbuf 0 parameter alias comment _enabled 1 _coordinate (8, 184) _rotation 0 id hdr_const label Header constellation short_id type value digital.constellation_calcdist((digital.psk_2()[0]), (digital.psk_2()[1]), 2, 1).base() parameter alias comment _enabled 1 _coordinate (8, 248) _rotation 0 id hdr_format label Header Formatter short_id type value digital.header_format_default(digital.packet_utils.default_access_code, 0) import alias comment _enabled True _coordinate (8, 148) _rotation 0 id import_0 import import numpy qtgui_time_sink_x autoscale True axislabels True alias comment Display payloud in time domain ctrlpanel False affinity entags True _enabled 1 _coordinate (760, 352) gui_hint _rotation 0 grid False id qtgui_time_sink_x_0_1_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 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 ylabel Amplitude yunit "" ymax 1 ymin -1 blocks_message_strobe_0_0 blocks_pdu_to_tagged_stream_1 strobe pdus blocks_pdu_to_tagged_stream_1 blocks_tagged_stream_mux_0 0 1 blocks_pdu_to_tagged_stream_1 digital_protocol_formatter_bb_0 0 0 blocks_repack_bits_bb_0_0 blocks_tag_gate_0_0 0 0 blocks_repack_bits_bb_0_0_0 blocks_tagged_stream_to_pdu_0 0 0 blocks_tag_gate_0_0 digital_correlate_access_code_xx_ts_1 0 0 blocks_tagged_stream_mux_0 blocks_throttle_0 0 0 blocks_tagged_stream_to_pdu_0 blocks_message_debug_0 pdus print blocks_throttle_0 blocks_repack_bits_bb_0_0 0 0 digital_chunks_to_symbols_xx_0_0_0 qtgui_time_sink_x_0_1_0 0 0 digital_correlate_access_code_xx_ts_1 blocks_repack_bits_bb_0_0_0 0 0 digital_correlate_access_code_xx_ts_1 digital_chunks_to_symbols_xx_0_0_0 0 0 digital_protocol_formatter_bb_0 blocks_tagged_stream_mux_0 0 0