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 format
- gen_cmake: 'On'
- gen_linking: dynamic
- generate_options: no_gui
- hier_block_src_path: '.:'
- id: pkt_13
- 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_13
- 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: [288, 12.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: [472, 12.0]
- rotation: 0
- state: enabled
- - name: samp_rate
- id: variable
- parameters:
- comment: ''
- value: '32000'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [192, 12.0]
- rotation: 0
- state: enabled
- - name: blocks_message_debug_0
- id: blocks_message_debug
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- en_uvec: 'True'
- log_level: info
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [896, 24.0]
- rotation: 0
- state: disabled
- - name: blocks_message_debug_0_0
- id: blocks_message_debug
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- en_uvec: 'True'
- log_level: info
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1136, 512.0]
- rotation: 0
- state: enabled
- - 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: '2000'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [88, 184.0]
- rotation: 0
- state: enabled
- - name: blocks_repack_bits_bb_1
- id: blocks_repack_bits_bb
- parameters:
- affinity: ''
- alias: ''
- align_output: 'False'
- comment: ''
- endianness: gr.GR_MSB_FIRST
- k: '8'
- l: '1'
- len_tag_key: '"packet_len"'
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [360, 360.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: '1'
- l: '8'
- len_tag_key: '"packet_len"'
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [816, 360.0]
- rotation: 0
- state: true
- - 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: [1104, 184.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: byte
- vlen: '1'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [200, 360.0]
- rotation: 0
- state: enabled
- - name: digital_correlate_access_code_xx_ts_0
- id: digital_correlate_access_code_xx_ts
- parameters:
- access_code: ' ''11100001010110101110100010010011'''
- affinity: ''
- alias: ''
- comment: ''
- maxoutbuf: '0'
- minoutbuf: '0'
- tagname: packet_len
- threshold: '0'
- type: byte
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [552, 352.0]
- rotation: 0
- state: true
- - name: digital_crc_append_0
- id: digital_crc_append
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- final_xor: '0xFFFFFFFF'
- initial_value: '0xFFFFFFFF'
- input_reflected: 'True'
- maxoutbuf: '0'
- minoutbuf: '0'
- num_bits: '32'
- poly: '0x4C11DB7'
- result_reflected: 'True'
- skip_header_bytes: '0'
- swap_endianness: 'False'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [336, 192.0]
- rotation: 0
- state: true
- - name: digital_crc_check_0
- id: digital_crc_check
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- discard_crc: 'False'
- final_xor: '0xFFFFFFFF'
- initial_value: '0xFFFFFFFF'
- input_reflected: 'True'
- maxoutbuf: '0'
- minoutbuf: '0'
- num_bits: '32'
- poly: '0x4C11DB7'
- result_reflected: 'True'
- skip_header_bytes: '0'
- swap_endianness: 'False'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [840, 512.0]
- rotation: 0
- state: true
- - name: digital_protocol_formatter_async_0
- id: digital_protocol_formatter_async
- parameters:
- affinity: ''
- alias: ''
- comment: ''
- format: hdr_format
- maxoutbuf: '0'
- minoutbuf: '0'
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [560, 184.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: [872, 236.0]
- rotation: 0
- state: true
- - name: pdu_pdu_to_tagged_stream_0_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: [872, 176.0]
- rotation: 0
- state: true
- - name: pdu_tagged_stream_to_pdu_0
- id: pdu_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: [1008, 368.0]
- rotation: 0
- state: enabled
- - name: virtual_sink_1
- id: virtual_sink
- parameters:
- alias: ''
- comment: ''
- stream_id: pkt_out
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [1328, 192.0]
- rotation: 0
- state: true
- - name: virtual_source_1
- id: virtual_source
- parameters:
- alias: ''
- comment: ''
- stream_id: pkt_out
- states:
- bus_sink: false
- bus_source: false
- bus_structure: null
- coordinate: [32, 368.0]
- rotation: 0
- state: true
- connections:
- - [blocks_message_strobe_0, strobe, digital_crc_append_0, in]
- - [blocks_repack_bits_bb_1, '0', digital_correlate_access_code_xx_ts_0, '0']
- - [blocks_repack_bits_bb_1_0, '0', pdu_tagged_stream_to_pdu_0, '0']
- - [blocks_tagged_stream_mux_0, '0', virtual_sink_1, '0']
- - [blocks_throttle2_0, '0', blocks_repack_bits_bb_1, '0']
- - [digital_correlate_access_code_xx_ts_0, '0', blocks_repack_bits_bb_1_0, '0']
- - [digital_crc_append_0, out, digital_protocol_formatter_async_0, in]
- - [digital_crc_check_0, fail, blocks_message_debug_0_0, print]
- - [digital_crc_check_0, ok, blocks_message_debug_0_0, print]
- - [digital_protocol_formatter_async_0, header, blocks_message_debug_0, print]
- - [digital_protocol_formatter_async_0, header, pdu_pdu_to_tagged_stream_0_0, pdus]
- - [digital_protocol_formatter_async_0, payload, blocks_message_debug_0, print]
- - [digital_protocol_formatter_async_0, payload, pdu_pdu_to_tagged_stream_0, pdus]
- - [pdu_pdu_to_tagged_stream_0, '0', blocks_tagged_stream_mux_0, '1']
- - [pdu_pdu_to_tagged_stream_0_0, '0', blocks_tagged_stream_mux_0, '0']
- - [pdu_tagged_stream_to_pdu_0, pdus, digital_crc_check_0, in]
- - [virtual_source_1, '0', blocks_throttle2_0, '0']
- metadata:
- file_format: 1
- grc_version: 3.10.9.2
Advertisement
Add Comment
Please, Sign In to add comment