From 413b05e6437214897c4e374650cb27ba6d2063af Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 20 Jan 2018 01:14:00 +0100 Subject: Add DPD port to Soapy configuration --- doc/example.ini | 14 ++++++++++---- src/ConfigParser.cpp | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/example.ini b/doc/example.ini index b0bf022..64cb7df 100644 --- a/doc/example.ini +++ b/doc/example.ini @@ -268,21 +268,27 @@ listen=tcp://*:54001 ; Please see man zmq_socket for documentation socket_type=pub -; section defining the SoapySDR output settings. All these -; options are given to the SoapySDR library. +; section defining the SoapySDR output settings. [soapyoutput] +; These options are given to the SoapySDR library: device= master_clock_rate=32768000 txgain=40 ;frequency=234208000 channel=13C +;lo_offset=2048000 + ; You can set what TX antenna to use. This will depend on the ; SDR device you are using. ;tx_antenna= -; Used for SFN with the UHD output -[delaymanagement] +; Enable the TCP server to communicate TX and RX feedback for +; digital predistortion. +; Set to 0 to disable +;dpd_port=50055 +; Used for running single-frequency networks +[delaymanagement] ; Enable handling of timestamps for SFN synchronous=0 diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 5f3f61e..7603c1e 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -315,6 +315,8 @@ static void parse_configfile( throw std::runtime_error("Configuration error"); } + outputsoapy_conf.dpdFeedbackServerPort = pt.get("soapyoutput.dpd_port", 0); + mod_settings.useSoapyOutput = true; } #endif -- cgit v1.2.3