Last active
January 2, 2021 18:11
-
-
Save charlie-x/44bf1762521f2addb3ec319877e517d3 to your computer and use it in GitHub Desktop.
ais to file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [396, 141] | |
rotation: 0 | |
state: true | |
- name: ais_simulator_websocket_pdu_0 | |
id: ais_simulator_websocket_pdu | |
parameters: | |
addr: 127.0.0.1 | |
affinity: '' | |
alias: '' | |
comment: '' | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
port: '52002' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [101, 293] | |
rotation: 180 | |
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: [1435, 119] | |
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: [703, 222] | |
rotation: 0 | |
state: true | |
- name: blocks_file_sink_0_0_0 | |
id: blocks_file_sink | |
parameters: | |
affinity: '' | |
alias: '' | |
append: 'True' | |
comment: '' | |
file: pdu_to_tagged.bin | |
type: byte | |
unbuffered: 'False' | |
vlen: '1' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [396, 205] | |
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: [1227, 513] | |
rotation: 0 | |
state: true | |
- name: blocks_file_sink_0_1_0 | |
id: blocks_file_sink | |
parameters: | |
affinity: '' | |
alias: '' | |
append: 'False' | |
comment: '' | |
file: mskmod.bin | |
type: complex | |
unbuffered: 'False' | |
vlen: '1' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [982, 500] | |
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: [1235, 143] | |
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: [934, 149] | |
rotation: 0 | |
state: enabled | |
- name: blocks_pdu_to_tagged_stream_0 | |
id: blocks_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: [117, 149] | |
rotation: 0 | |
state: enabled | |
- 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: [703, 127] | |
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'] | |
- [ais_simulator_websocket_pdu_0, out, blocks_pdu_to_tagged_stream_0, pdus] | |
- [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_pdu_to_tagged_stream_0, '0', ais_simulator_bitstring_to_frame_0, '0'] | |
- [blocks_pdu_to_tagged_stream_0, '0', blocks_file_sink_0_0_0, '0'] | |
- [digital_gmsk_mod_0, '0', blocks_file_sink_0_1_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