Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ais file 2
options:
parameters:
author: Mictronics
category: Custom
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: no_gui
hier_block_src_path: '.:'
id: top_block
max_nouts: '0'
output_language: python
placement: (0,0)
qt_qss_theme: ''
realtime_scheduling: ''
run: 'True'
run_command: '{python} -u {filename}'
run_options: run
sizing_mode: fixed
thread_safe_setters: ''
title: Example AIS Transmitter
window_size: 1280, 1024
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 4]
rotation: 0
state: enabled
blocks:
- name: bit_rate
id: variable
parameters:
comment: ''
value: '9600'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [304, 4.0]
rotation: 0
state: enabled
- name: samp_rate
id: variable
parameters:
comment: HackRF requires a minimum of 8Msps!
value: 8e6
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [208, 4.0]
rotation: 0
state: enabled
- name: sentence
id: variable
parameters:
comment: ''
value: '''010010000011101011110111001110011000100000000000000000100000001011001000001011000101000110100010010100001101011001111011000011111111111011100101110011100000000000000110'''
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [392, 4.0]
rotation: 0
state: enabled
- name: ais_simulator_bitstring_to_frame_0
id: ais_simulator_bitstring_to_frame
parameters:
affinity: ''
alias: ''
comment: ''
enable_nrzi: 'True'
len_tag_key: packet_len
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [604, 286]
rotation: 0
state: true
- name: blocks_file_sink_0
id: blocks_file_sink
parameters:
affinity: ''
alias: ''
append: 'False'
comment: ''
file: sent_to_hackrf.bin
type: byte
unbuffered: 'False'
vlen: '2'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1630, 245]
rotation: 0
state: true
- name: blocks_file_sink_0_0
id: blocks_file_sink
parameters:
affinity: ''
alias: ''
append: 'True'
comment: ''
file: bitstring_to_frame.bin
type: byte
unbuffered: 'False'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [908, 405]
rotation: 0
state: true
- name: blocks_file_sink_0_1
id: blocks_file_sink
parameters:
affinity: ''
alias: ''
append: 'False'
comment: ''
file: sent_to_sink.bin
type: complex
unbuffered: 'False'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1381, 356]
rotation: 0
state: true
- name: blocks_file_source_0
id: blocks_file_source
parameters:
affinity: ''
alias: ''
begin_tag: pmt.PMT_NIL
comment: ''
file: /home/charlie/pdu_to_tagged.bin
length: '168'
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
repeat: 'False'
type: byte
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [81, 228]
rotation: 0
state: true
- name: blocks_float_to_char_0
id: blocks_float_to_char
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale: '127'
vlen: '2'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1399, 242]
rotation: 0
state: true
- name: blocks_multiply_const_xx_0
id: blocks_multiply_const_xx
parameters:
affinity: ''
alias: ''
comment: ''
const: '0.9'
maxoutbuf: '0'
minoutbuf: '0'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1142, 296]
rotation: 0
state: enabled
- name: blocks_stream_to_tagged_stream_0
id: blocks_stream_to_tagged_stream
parameters:
affinity: ''
alias: ''
comment: ''
len_tag_key: '"packet_len"'
maxoutbuf: '0'
minoutbuf: '0'
packet_len: '168'
type: byte
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [334, 256]
rotation: 0
state: true
- name: digital_gmsk_mod_0
id: digital_gmsk_mod
parameters:
affinity: ''
alias: ''
bt: '0.4'
comment: ''
log: 'True'
maxoutbuf: '0'
minoutbuf: '0'
samples_per_symbol: int(samp_rate/bit_rate)
verbose: 'True'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [911, 274]
rotation: 0
state: enabled
connections:
- [ais_simulator_bitstring_to_frame_0, '0', blocks_file_sink_0_0, '0']
- [ais_simulator_bitstring_to_frame_0, '0', digital_gmsk_mod_0, '0']
- [blocks_file_source_0, '0', blocks_stream_to_tagged_stream_0, '0']
- [blocks_float_to_char_0, '0', blocks_file_sink_0, '0']
- [blocks_multiply_const_xx_0, '0', blocks_file_sink_0_1, '0']
- [blocks_multiply_const_xx_0, '0', blocks_float_to_char_0, '0']
- [blocks_stream_to_tagged_stream_0, '0', ais_simulator_bitstring_to_frame_0, '0']
- [digital_gmsk_mod_0, '0', blocks_multiply_const_xx_0, '0']
metadata:
file_format: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment