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_ma
- 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_ma
- window_size: (1000,1000)
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [16, 12.0]
- rotation: 0
- state: enabled
- blocks:
- - name: access_key
- id: variable
- parameters:
- comment: ''
- value: '''11100001010110101110100010010011'''
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [856, 12.0]
- rotation: 0
- state: enabled
- - name: baud
- id: variable
- parameters:
- comment: ''
- value: '1200'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [280, 12.0]
- rotation: 0
- state: true
- - name: center
- id: variable
- parameters:
- comment: ''
- value: (mark+space)/2
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [240, 108.0]
- rotation: 0
- state: enabled
- - name: fsk_deviation
- id: variable
- parameters:
- comment: ''
- value: (abs)(mark-space)
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [400, 108.0]
- rotation: 0
- state: enabled
- - name: hdr_format
- id: variable
- parameters:
- comment: header_format_default
- value: digital.header_format_default(access_key, 0)
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [856, 76.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, 108.0]
- rotation: 0
- state: true
- - name: mark
- id: variable
- parameters:
- comment: ''
- value: '59500'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [360, 12.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: [320, 108.0]
- rotation: 0
- state: true
- - name: samp_rate
- id: variable
- parameters:
- comment: '|----------------------------------------------------------------------------------------->
- User set values'
- value: '192000'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [184, 12.0]
- rotation: 0
- state: enabled
- - name: space
- id: variable
- parameters:
- comment: ''
- value: '60500'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [448, 12.0]
- rotation: 0
- state: true
- - name: thresh
- id: variable
- parameters:
- comment: ''
- value: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [536, 12.0]
- rotation: 0
- state: enabled
- - name: vco_max
- id: variable
- parameters:
- comment: ''
- value: center+fsk_deviation
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [504, 108.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: [592, 108.0]
- rotation: 0
- state: true
- - name: InFile
- id: parameter
- parameters:
- alias: ''
- comment: 'Filename is specified on the command line, e.g.:
- python3 pkt_fsk_xmt_ma.py --InFile="../gr-logo.png"'
- hide: none
- label: File Name
- short_id: ''
- type: str
- value: default
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1040, 12.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: [408, 628.0]
- rotation: 0
- state: true
- - 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: [224, 628.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, 452.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: [424, 460.0]
- rotation: 0
- state: enabled
- - name: blocks_tagged_stream_mux_0
- id: blocks_tagged_stream_mux
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- lengthtagname: packet_len
- maxoutbuf: '0'
- minoutbuf: '0'
- ninputs: '2'
- tag_preserve_head_pos: '0'
- type: byte
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1056, 312.0]
- rotation: 0
- state: true
- - name: blocks_throttle2_0
- id: blocks_throttle2
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- ignoretag: 'True'
- limit: auto
- maximum: '0.1'
- maxoutbuf: '0'
- minoutbuf: '0'
- samples_per_second: samp_rate
- type: complex
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [792, 620.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: [616, 464.0]
- rotation: 0
- state: enabled
- - name: blocks_vco_c_0
- id: blocks_vco_c
- parameters:
- affinity: ''
- alias: ''
- amplitude: '1.0'
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- samp_rate: samp_rate
- sensitivity: 2*math.pi*vco_max
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [600, 612.0]
- rotation: 0
- state: true
- - name: customEPB_FStTS_0
- id: customEPB_FStTS
- parameters:
- FileName: InFile
- Pkt_len: '384'
- Postamble_len: '8'
- Preamble_len: '16'
- affinity: ''
- alias: ''
- comment: 'Filename is specified on the command line, e.g.:
- python3 pkt_fsk_xmt_ma.py --InFile="../gr-logo.png"'
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [248, 316.0]
- rotation: 0
- state: true
- - name: digital_crc32_bb_0
- id: digital_crc32_bb
- parameters:
- affinity: ''
- alias: ''
- check: 'False'
- comment: ''
- lengthtagname: '"packet_len"'
- maxoutbuf: '0'
- minoutbuf: '0'
- packed: 'True'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [528, 324.0]
- rotation: 0
- state: true
- - name: digital_protocol_formatter_bb_0
- id: digital_protocol_formatter_bb
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- format: hdr_format
- len_tag_key: '"packet_len"'
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [792, 260.0]
- rotation: 0
- state: true
- - name: import_0
- id: import
- parameters:
- alias: ''
- comment: ''
- imports: import math
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [16, 124.0]
- rotation: 0
- state: enabled
- - name: note_0
- id: note
- parameters:
- alias: ''
- comment: '|----------------------------------------------------------------------------------------------------------------------------------------------------------|
- Calculated values:
- - center freq = (mark+space)/2
- - repeat = (int)(samp_rate/baud)
- - fsk_deviation = (abs)(mark-space)
- - vco_max = center+fsk_deviation
- - vco_offset = space/vco_max
- - inp_amp = (mark/vco_max)-vco_offset
- - vco sensitivity = 2*math.pi*vco_max'
- note: ''
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [184, 132.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: '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: 1,0,1,3
- ctrlpanel: 'False'
- entags: 'True'
- grid: 'False'
- gui_hint: 1,0,1,3
- 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: Transmit data
- nconnections: '1'
- size: '2048'
- 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.0'
- tr_level: '0.1'
- tr_mode: qtgui.TRIG_MODE_NORM
- tr_slope: qtgui.TRIG_SLOPE_POS
- 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.1'
- ymin: '-0.1'
- yunit: '""'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [960, 436.0]
- rotation: 0
- state: enabled
- - name: virtual_sink_0
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: t2
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [816, 508.0]
- rotation: 0
- state: true
- - name: virtual_sink_0_0
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: t1
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1296, 324.0]
- rotation: 0
- state: true
- - name: virtual_source_0
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: t2
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [64, 628.0]
- rotation: 0
- state: true
- - name: virtual_source_0_0
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: t1
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [32, 460.0]
- rotation: 0
- state: true
- - name: zeromq_pub_sink_0
- id: zeromq_pub_sink
- parameters:
- address: tcp://127.0.0.1:49600
- affinity: ''
- alias: ''
- bind: 'True'
- comment: ''
- drop_on_hwm: 'True'
- hwm: '-1'
- key: ''
- pass_tags: 'False'
- timeout: '100'
- type: complex
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [968, 596.0]
- rotation: 0
- state: true
- connections:
- - [blocks_add_const_vxx_0, '0', blocks_vco_c_0, '0']
- - [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_tagged_stream_mux_0, '0', virtual_sink_0_0, '0']
- - [blocks_throttle2_0, '0', zeromq_pub_sink_0, '0']
- - [blocks_uchar_to_float_0, '0', qtgui_time_sink_x_0, '0']
- - [blocks_uchar_to_float_0, '0', virtual_sink_0, '0']
- - [blocks_vco_c_0, '0', blocks_throttle2_0, '0']
- - [customEPB_FStTS_0, '0', digital_crc32_bb_0, '0']
- - [digital_crc32_bb_0, '0', blocks_tagged_stream_mux_0, '1']
- - [digital_crc32_bb_0, '0', digital_protocol_formatter_bb_0, '0']
- - [digital_protocol_formatter_bb_0, '0', blocks_tagged_stream_mux_0, '0']
- - [virtual_source_0, '0', blocks_multiply_const_vxx_0, '0']
- - [virtual_source_0_0, '0', blocks_repack_bits_bb_1_0, '0']
- metadata:
- file_format: 1
- grc_version: 3.10.8.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement