Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- parameters:
- author: Barry Duggan
- catch_exceptions: 'True'
- category: '[GRC Hier Blocks]'
- cmake_opt: ''
- comment: ''
- copyright: ''
- description: packet FSK xmt
- gen_cmake: 'On'
- gen_linking: dynamic
- generate_options: qt_gui
- hier_block_src_path: '.:'
- id: pkt_fsk_xmt
- 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: pkt_fsk_xmt
- window_size: (1000,1000)
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [16, 12.0]
- rotation: 0
- state: enabled
- blocks:
- - name: baud
- id: variable
- parameters:
- comment: ''
- value: '48'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [192, 76.0]
- rotation: 0
- state: enabled
- - name: center
- id: variable
- parameters:
- comment: ''
- value: (mark+space)/2
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [288, 12.0]
- rotation: 0
- state: enabled
- - name: hdr_format
- id: variable_header_format_default
- parameters:
- access_code: '11100001010110101110100010010011'
- bps: sps
- comment: ''
- threshold: thresh
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [792, 12.0]
- rotation: 0
- state: enabled
- - name: inp_amp
- id: variable
- parameters:
- comment: ''
- value: (mark/vco_max)-vco_offset
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [704, 12.0]
- rotation: 0
- state: true
- - name: mark
- id: variable
- parameters:
- comment: ''
- value: '1200'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [456, 12.0]
- rotation: 0
- state: true
- - name: phase_bw
- id: variable
- parameters:
- comment: ''
- value: '0.0628'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [480, 76.0]
- rotation: 0
- state: true
- - name: repeat
- id: variable
- parameters:
- comment: ''
- value: (int)(samp_rate/baud)
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [264, 76.0]
- rotation: 0
- state: true
- - name: samp_rate
- id: variable
- parameters:
- comment: ''
- value: '48000'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [192, 12.0]
- rotation: 0
- state: enabled
- - name: space
- id: variable
- parameters:
- comment: ''
- value: '2200'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [536, 12.0]
- rotation: 0
- state: true
- - name: sps
- id: variable
- parameters:
- comment: ''
- value: '20'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [408, 76.0]
- rotation: 0
- state: enabled
- - name: thresh
- id: variable
- parameters:
- comment: ''
- value: '3'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [336, 76.0]
- rotation: 0
- state: enabled
- - name: vco_max
- id: variable
- parameters:
- comment: ''
- value: '2500'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [368, 12.0]
- rotation: 0
- state: true
- - name: vco_offset
- id: variable
- parameters:
- comment: ''
- value: space/vco_max
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [616, 12.0]
- rotation: 0
- state: true
- - name: analog_quadrature_demod_cf_0
- id: analog_quadrature_demod_cf
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- gain: '0.33'
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [192, 524.0]
- rotation: 0
- state: true
- - name: blocks_add_const_vxx_0
- id: blocks_add_const_vxx
- parameters:
- affinity: ''
- alias: ''
- comment: vco_offset
- const: vco_offset
- maxoutbuf: '0'
- minoutbuf: '0'
- type: float
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [600, 396.0]
- rotation: 0
- state: true
- - name: blocks_char_to_float_0
- id: blocks_char_to_float
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- scale: '1'
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [992, 580.0]
- rotation: 0
- state: true
- - name: blocks_message_strobe_0
- id: blocks_message_strobe
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- msg: pmt.cons(pmt.PMT_NIL,pmt.init_u8vector(9,(71,78,85,32,82,97,100,105,111)))
- period: '5000'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [64, 172.0]
- rotation: 0
- state: enabled
- - name: blocks_multiply_const_vxx_0
- id: blocks_multiply_const_vxx
- parameters:
- affinity: ''
- alias: ''
- comment: inp_amp
- const: inp_amp
- maxoutbuf: '0'
- minoutbuf: '0'
- type: float
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [432, 396.0]
- rotation: 0
- state: true
- - 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: '8'
- l: '1'
- len_tag_key: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [200, 252.0]
- rotation: 0
- state: true
- - name: blocks_repeat_0
- id: blocks_repeat
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- interp: repeat
- maxoutbuf: '0'
- minoutbuf: '0'
- type: byte
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [408, 260.0]
- rotation: 0
- 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: [896, 316.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: [576, 264.0]
- rotation: 0
- state: enabled
- - name: blocks_vco_c_0
- id: blocks_vco_c
- parameters:
- affinity: ''
- alias: ''
- amplitude: '0.75'
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- samp_rate: samp_rate
- sensitivity: '15708'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [760, 380.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: [824, 584.0]
- rotation: 0
- state: enabled
- - name: digital_crc32_async_bb_1
- id: digital_crc32_async_bb
- parameters:
- affinity: ''
- alias: ''
- check: 'False'
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [320, 180.0]
- rotation: 0
- state: enabled
- - name: digital_symbol_sync_xx_0
- id: digital_symbol_sync_xx
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- constellation: digital.constellation_bpsk().base()
- damping: '1.0'
- loop_bw: phase_bw
- 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_SIGNAL_TIMES_SLOPE_ML
- type: ff
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [408, 596.0]
- rotation: 0
- state: disabled
- - name: epy_block_0
- id: epy_block
- parameters:
- _source_code: "\"\"\"\nEmbedded Python Block\n\"\"\"\n\nimport numpy as np\nfrom\
- \ gnuradio import gr\nimport pmt\n\nclass blk(gr.sync_block):\n \"\"\"Packet\
- \ Format\"\"\"\n\n def __init__(self):\n gr.sync_block.__init__(self,\n\
- \ name = \"Packet Format\",\n in_sig = None,\n \
- \ out_sig = None)\n self.message_port_register_in(pmt.intern('PDU_in'))\n\
- \ self.message_port_register_out(pmt.intern('PDU_out'))\n self.set_msg_handler(pmt.intern('PDU_in'),\
- \ self.handle_msg)\n\n def handle_msg(self, msg):\n inMsg = pmt.to_python\
- \ (msg)\n pld = inMsg[1]\n # print (pld)\n mLen = len(pld)\n\
- \ # print (mLen)\n if (mLen > 0):\n char_list = [85,85,85,85,225,90,232,147]\n\
- \ char_list.append (mLen >> 8)\n char_list.append (mLen\
- \ & 255)\n char_list.append (mLen >> 8)\n char_list.append\
- \ (mLen & 255)\n char_list.extend (pld)\n # print (char_list)\n\
- \ out_len = len(char_list)\n # print (out_len)\n \
- \ self.message_port_pub(pmt.intern('PDU_out'), pmt.cons(pmt.PMT_NIL,pmt.init_u8vector(out_len,(char_list))))\n"
- affinity: ''
- alias: ''
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- _io_cache: ('Packet Format', 'blk', [], [('PDU_in', 'message', 1)], [('PDU_out',
- 'message', 1)], 'Packet Format', [])
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [536, 184.0]
- rotation: 0
- state: true
- - name: freq_xlating_fir_filter_xxx_0
- id: freq_xlating_fir_filter_xxx
- parameters:
- affinity: ''
- alias: ''
- center_freq: center
- comment: ''
- decim: '50'
- maxoutbuf: '0'
- minoutbuf: '0'
- samp_rate: samp_rate
- taps: firdes.low_pass(1.0,samp_rate,3000,400)
- type: ccf
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1080, 308.0]
- rotation: 0
- state: enabled
- - name: low_pass_filter_0
- id: low_pass_filter
- parameters:
- affinity: ''
- alias: ''
- beta: '6.76'
- comment: ''
- cutoff_freq: space+1000
- decim: '1'
- gain: '1'
- interp: '1'
- maxoutbuf: '0'
- minoutbuf: '0'
- samp_rate: samp_rate
- type: fir_filter_fff
- width: '1000'
- win: window.WIN_HAMMING
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [240, 348.0]
- rotation: 0
- state: true
- - name: note_0
- id: note
- parameters:
- alias: ''
- comment: ''
- note: sample rate 960
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [192, 580.0]
- rotation: 0
- state: enabled
- - name: pdu_pdu_to_tagged_stream_0
- id: pdu_pdu_to_tagged_stream
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- tag: packet_len
- type: byte
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [752, 180.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: 'True'
- 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: '2'
- size: '1024'
- srate: '960'
- 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.5'
- tr_mode: qtgui.TRIG_MODE_FREE
- tr_slope: qtgui.TRIG_SLOPE_NEG
- tr_tag: '"packet_len"'
- 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.5'
- ymin: '-1'
- yunit: '""'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1184, 524.0]
- rotation: 0
- state: enabled
- - name: virtual_sink_0
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: '"xmt_data"'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [744, 260.0]
- rotation: 0
- state: true
- - name: virtual_sink_1
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: t1
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1320, 332.0]
- rotation: 0
- state: true
- - name: virtual_sink_1_0
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: pkt_out
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [984, 180.0]
- rotation: 0
- state: true
- - name: virtual_source_0
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: '"xmt_data"'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [32, 396.0]
- rotation: 0
- state: true
- - name: virtual_source_1
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: t1
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [24, 524.0]
- rotation: 0
- state: true
- - name: virtual_source_1_0
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: pkt_out
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [24, 260.0]
- rotation: 0
- state: true
- connections:
- - [analog_quadrature_demod_cf_0, '0', digital_binary_slicer_fb_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']
- - [blocks_add_const_vxx_0, '0', blocks_vco_c_0, '0']
- - [blocks_char_to_float_0, '0', qtgui_time_sink_x_0, '1']
- - [blocks_message_strobe_0, strobe, digital_crc32_async_bb_1, in]
- - [blocks_multiply_const_vxx_0, '0', blocks_add_const_vxx_0, '0']
- - [blocks_repack_bits_bb_1_0, '0', blocks_repeat_0, '0']
- - [blocks_repeat_0, '0', blocks_uchar_to_float_0, '0']
- - [blocks_throttle_0, '0', freq_xlating_fir_filter_xxx_0, '0']
- - [blocks_uchar_to_float_0, '0', virtual_sink_0, '0']
- - [blocks_vco_c_0, '0', blocks_throttle_0, '0']
- - [digital_binary_slicer_fb_0, '0', blocks_char_to_float_0, '0']
- - [digital_crc32_async_bb_1, out, epy_block_0, PDU_in]
- - [digital_symbol_sync_xx_0, '0', digital_binary_slicer_fb_0, '0']
- - [epy_block_0, PDU_out, pdu_pdu_to_tagged_stream_0, pdus]
- - [freq_xlating_fir_filter_xxx_0, '0', virtual_sink_1, '0']
- - [low_pass_filter_0, '0', blocks_multiply_const_vxx_0, '0']
- - [pdu_pdu_to_tagged_stream_0, '0', virtual_sink_1_0, '0']
- - [virtual_source_0, '0', low_pass_filter_0, '0']
- - [virtual_source_1, '0', analog_quadrature_demod_cf_0, '0']
- - [virtual_source_1_0, '0', blocks_repack_bits_bb_1_0, '0']
- metadata:
- file_format: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement