feat(phy): Modulator and demodulator hier blocks
This commit is contained in:
341
hier_blocks/ONBEAT_mod.grc
Normal file
341
hier_blocks/ONBEAT_mod.grc
Normal file
@@ -0,0 +1,341 @@
|
||||
options:
|
||||
parameters:
|
||||
author: HA5PLS
|
||||
catch_exceptions: 'True'
|
||||
category: '[ONBEAT]'
|
||||
cmake_opt: ''
|
||||
comment: ''
|
||||
copyright: GPL 3.0 or later
|
||||
description: Hier block for modulation of ONBEAT
|
||||
gen_cmake: 'On'
|
||||
gen_linking: dynamic
|
||||
generate_options: hb
|
||||
hier_block_src_path: '.:'
|
||||
id: ONBEAT_Mod
|
||||
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: ONBEAT Mod
|
||||
window_size: (1000,1000)
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [8, 8]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
|
||||
blocks:
|
||||
- name: QPSK_MAP
|
||||
id: variable_constellation_rect
|
||||
parameters:
|
||||
comment: ''
|
||||
const_points: '[-1-1j, -1+1j, 1+1j, 1-1j]'
|
||||
imag_sect: '2'
|
||||
precision: '8'
|
||||
real_sect: '2'
|
||||
rot_sym: '4'
|
||||
soft_dec_lut: None
|
||||
sym_map: '[0, 1, 3, 2]'
|
||||
w_imag_sect: '1'
|
||||
w_real_sect: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [1104, 20.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: preamble_len
|
||||
id: variable_tag_object
|
||||
parameters:
|
||||
comment: ''
|
||||
key: pmt.intern("packet_len")
|
||||
offset: '0'
|
||||
src: pmt.intern("src")
|
||||
value: pmt.from_long(len(preamble))
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [64, 184.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: syncword_len
|
||||
id: variable_tag_object
|
||||
parameters:
|
||||
comment: ''
|
||||
key: pmt.intern("packet_len")
|
||||
offset: '0'
|
||||
src: pmt.intern("src")
|
||||
value: pmt.from_long((len(syncword)+7)//8)
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [64, 304.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: OVERSAMPLING
|
||||
id: parameter
|
||||
parameters:
|
||||
alias: ''
|
||||
comment: ''
|
||||
hide: none
|
||||
label: ''
|
||||
short_id: ''
|
||||
type: intx
|
||||
value: '10'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [248, 8.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: RRC_ALPHA
|
||||
id: parameter
|
||||
parameters:
|
||||
alias: ''
|
||||
comment: ''
|
||||
hide: none
|
||||
label: ''
|
||||
short_id: ''
|
||||
type: eng_float
|
||||
value: '0.35'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [368, 8.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: '""'
|
||||
maxoutbuf: '0'
|
||||
minoutbuf: '0'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [352, 312.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: '3'
|
||||
tag_preserve_head_pos: '0'
|
||||
type: byte
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [848, 296.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: blocks_vector_source_x_0_0
|
||||
id: blocks_vector_source_x
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
maxoutbuf: '0'
|
||||
minoutbuf: '0'
|
||||
repeat: 'False'
|
||||
tags: '[preamble_len]'
|
||||
type: byte
|
||||
vector: preamble
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [168, 216.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: blocks_vector_source_x_0_0_0
|
||||
id: blocks_vector_source_x
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
maxoutbuf: '0'
|
||||
minoutbuf: '0'
|
||||
repeat: 'False'
|
||||
tags: '[syncword_len]'
|
||||
type: byte
|
||||
vector: '[int(i) for i in syncword]'
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [168, 304.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: data_len
|
||||
id: parameter
|
||||
parameters:
|
||||
alias: ''
|
||||
comment: ''
|
||||
hide: none
|
||||
label: ''
|
||||
short_id: ''
|
||||
type: ''
|
||||
value: '1024'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [976, 24.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: digital_constellation_modulator_0
|
||||
id: digital_constellation_modulator
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
constellation: QPSK_MAP
|
||||
differential: 'False'
|
||||
excess_bw: RRC_ALPHA
|
||||
log: 'False'
|
||||
maxoutbuf: '0'
|
||||
minoutbuf: '0'
|
||||
samples_per_symbol: OVERSAMPLING
|
||||
truncate: 'False'
|
||||
verbose: 'False'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [1088, 296.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: pad_sink_0
|
||||
id: pad_sink
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
label: out
|
||||
num_streams: '1'
|
||||
optional: 'False'
|
||||
type: complex
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [1352, 320.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: pad_sink_0_0
|
||||
id: pad_sink
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
label: dbg
|
||||
num_streams: '1'
|
||||
optional: 'True'
|
||||
type: byte
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [576, 136.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: pad_source_0
|
||||
id: pad_source
|
||||
parameters:
|
||||
affinity: ''
|
||||
alias: ''
|
||||
comment: ''
|
||||
label: in
|
||||
maxoutbuf: '0'
|
||||
minoutbuf: '0'
|
||||
num_streams: '1'
|
||||
optional: 'False'
|
||||
type: byte
|
||||
vlen: '1'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [656, 400.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: preamble
|
||||
id: parameter
|
||||
parameters:
|
||||
alias: ''
|
||||
comment: ''
|
||||
hide: none
|
||||
label: ''
|
||||
short_id: ''
|
||||
type: ''
|
||||
value: '[0x33 for i in range(0, 128*2, 8)]'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [808, 24.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
- name: syncword
|
||||
id: parameter
|
||||
parameters:
|
||||
alias: ''
|
||||
comment: ''
|
||||
hide: none
|
||||
label: ''
|
||||
short_id: ''
|
||||
type: ''
|
||||
value: '"0000011100001001000110110010110101110111100110001010100111111010"'
|
||||
states:
|
||||
bus_sink: false
|
||||
bus_source: false
|
||||
bus_structure: null
|
||||
coordinate: [608, 24.0]
|
||||
rotation: 0
|
||||
state: enabled
|
||||
|
||||
connections:
|
||||
- [blocks_repack_bits_bb_1_0, '0', blocks_tagged_stream_mux_0, '1']
|
||||
- [blocks_tagged_stream_mux_0, '0', digital_constellation_modulator_0, '0']
|
||||
- [blocks_vector_source_x_0_0, '0', blocks_tagged_stream_mux_0, '0']
|
||||
- [blocks_vector_source_x_0_0, '0', pad_sink_0_0, '0']
|
||||
- [blocks_vector_source_x_0_0_0, '0', blocks_repack_bits_bb_1_0, '0']
|
||||
- [digital_constellation_modulator_0, '0', pad_sink_0, '0']
|
||||
- [pad_source_0, '0', blocks_tagged_stream_mux_0, '2']
|
||||
|
||||
metadata:
|
||||
file_format: 1
|
||||
grc_version: 3.10.11.0
|
||||
Reference in New Issue
Block a user