From 665ccd7f844f8ced0939120548f0e3604b071886 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Wed, 16 Oct 2019 22:55:26 +0200 Subject: [PATCH] Added TRX test over UDP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The idea is to simulate the RF channel by a UDP “connection” between two hosts. --- tmp/test_trx_over_udp.grc | 324 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 tmp/test_trx_over_udp.grc diff --git a/tmp/test_trx_over_udp.grc b/tmp/test_trx_over_udp.grc new file mode 100644 index 0000000..31747d8 --- /dev/null +++ b/tmp/test_trx_over_udp.grc @@ -0,0 +1,324 @@ +options: + parameters: + author: '' + category: '[GRC Hier Blocks]' + cmake_opt: '' + comment: '' + copyright: '' + description: '' + gen_cmake: 'On' + gen_linking: dynamic + generate_options: qt_gui + hier_block_src_path: '.:' + id: rf_trx_over_udp + 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: '' + window_size: (1500,800) + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [8, 8] + rotation: 0 + state: enabled + +blocks: +- name: MTU + id: variable + parameters: + comment: '' + value: '1000' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [375, 11] + rotation: 0 + state: enabled +- name: center_freq + id: variable + parameters: + comment: '' + value: 434.1e6 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [862, 11] + rotation: 0 + state: enabled +- name: device + id: variable + parameters: + comment: '' + value: '"soapy=0,driver=hackrf"' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [591, 11] + rotation: 0 + state: enabled +- name: io_rate + id: variable + parameters: + comment: '' + value: 2.4e6 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [758, 11] + rotation: 0 + state: enabled +- name: offset_freq + id: variable + parameters: + comment: '' + value: 200e3 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [960, 16] + rotation: 0 + state: enabled +- name: samp_rate + id: variable + parameters: + comment: '' + value: 300e3 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [7, 83] + rotation: 0 + state: enabled +- name: blocks_null_sink_0 + id: blocks_null_sink + parameters: + affinity: '' + alias: '' + bus_structure_sink: '[[0,],]' + comment: '' + num_inputs: '1' + type: complex + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [544, 136.0] + rotation: 0 + state: true +- name: blocks_tuntap_pdu_0 + id: blocks_tuntap_pdu + parameters: + affinity: '' + alias: '' + comment: '' + ifn: hamnet70 + istunflag: 'True' + maxoutbuf: '0' + minoutbuf: '0' + mtu: MTU + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [584, 324.0] + rotation: 0 + state: enabled +- name: blocks_udp_sink_0 + id: blocks_udp_sink + parameters: + affinity: '' + alias: '' + comment: '' + eof: 'False' + ipaddr: 192.168.23.110 + port: '1234' + psize: '1472' + type: complex + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1088, 316.0] + rotation: 0 + state: true +- name: blocks_udp_source_0 + id: blocks_udp_source + parameters: + affinity: '' + alias: '' + comment: '' + eof: 'False' + ipaddr: 0.0.0.0 + maxoutbuf: '0' + minoutbuf: '0' + port: '1234' + psize: '1472' + type: complex + vlen: '1' + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [88, 316.0] + rotation: 0 + state: true +- name: hamnet70_demod_sc16qam_0 + id: hamnet70_demod_sc16qam + parameters: + MTU: MTU + affinity: '' + alias: '' + comment: '' + maxoutbuf: '0' + minoutbuf: '0' + samp_rate: 300e3 + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [280, 280.0] + rotation: 0 + state: enabled +- name: hamnet70_mod_sc16qam_0 + id: hamnet70_mod_sc16qam + parameters: + MTU: MTU + affinity: '' + alias: '' + comment: '' + maxoutbuf: '0' + minoutbuf: '0' + samp_rate: samp_rate + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [824, 332.0] + rotation: 0 + state: enabled +- name: import_0 + id: import + parameters: + alias: '' + comment: '' + imports: from gnuradio.digital.utils import tagged_streams + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [167, 11] + rotation: 0 + state: enabled +- name: import_0_0 + id: import + parameters: + alias: '' + comment: '' + imports: import random + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [167, 59] + rotation: 0 + state: disabled +- name: import_0_0_0 + id: import + parameters: + alias: '' + comment: '' + imports: import numpy as np + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [271, 59] + rotation: 0 + state: disabled +- name: qtgui_sink_x_0 + id: qtgui_sink_x + parameters: + affinity: '' + alias: '' + bw: samp_rate + comment: '' + fc: '0' + fftsize: '1024' + gui_hint: '' + maxoutbuf: '0' + minoutbuf: '0' + name: '"TX Baseband"' + plotconst: 'True' + plotfreq: 'True' + plottime: 'True' + plotwaterfall: 'True' + rate: '10' + showports: 'True' + showrf: 'False' + type: complex + wintype: firdes.WIN_BLACKMAN_hARRIS + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [1088, 156.0] + rotation: 0 + state: enabled +- name: qtgui_sink_x_0_0 + id: qtgui_sink_x + parameters: + affinity: '' + alias: '' + bw: samp_rate + comment: '' + fc: '0' + fftsize: '1024' + gui_hint: '' + maxoutbuf: '0' + minoutbuf: '0' + name: '"RX Baseband"' + plotconst: 'True' + plotfreq: 'True' + plottime: 'True' + plotwaterfall: 'True' + rate: '10' + showports: 'True' + showrf: 'False' + type: complex + wintype: firdes.WIN_BLACKMAN_hARRIS + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [656, 156.0] + rotation: 0 + state: enabled + +connections: +- [blocks_tuntap_pdu_0, pdus, hamnet70_mod_sc16qam_0, packet_in] +- [blocks_udp_source_0, '0', hamnet70_demod_sc16qam_0, '0'] +- [hamnet70_demod_sc16qam_0, '0', blocks_null_sink_0, '0'] +- [hamnet70_demod_sc16qam_0, '1', qtgui_sink_x_0_0, '0'] +- [hamnet70_demod_sc16qam_0, pdu_out, blocks_tuntap_pdu_0, pdus] +- [hamnet70_mod_sc16qam_0, '0', blocks_udp_sink_0, '0'] +- [hamnet70_mod_sc16qam_0, '0', qtgui_sink_x_0, '0'] + +metadata: + file_format: 1