From e161545155a0fd23e0bff5e902d1597bbbb303dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Into=20P=C3=A4=C3=A4kk=C3=B6nen?= Date: Wed, 24 Aug 2022 18:25:06 +0300 Subject: [PATCH] add options for changing usrp device arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Into Pääkkönen --- .../signal_source/adapters/uhd_signal_source.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/algorithms/signal_source/adapters/uhd_signal_source.cc b/src/algorithms/signal_source/adapters/uhd_signal_source.cc index 9b222bdb5..efaae370b 100644 --- a/src/algorithms/signal_source/adapters/uhd_signal_source.cc +++ b/src/algorithms/signal_source/adapters/uhd_signal_source.cc @@ -65,6 +65,20 @@ UhdSignalSource::UhdSignalSource(const ConfigurationInterface* configuration, sample_rate_ = configuration->property(role + ".sampling_frequency", 4.0e6); item_type_ = configuration->property(role + ".item_type", default_item_type); + // UHD TRANSPORT PARAMETERS + // option to manually set device "num_recv_frames" + std::string device_num_recv_frames = configuration->property(role + ".device_num_recv_frames", empty); + if (empty != device_num_recv_frames) // if not empty + { + dev_addr["num_recv_frames"] = device_num_recv_frames; + } + // option to manually set device "recv_frame_size" + std::string device_recv_frame_size = configuration->property(role + ".device_recv_frame_size", empty); + if (empty != device_recv_frame_size) // if not empty + { + dev_addr["recv_frame_size"] = device_recv_frame_size; + } + if (RF_channels_ == 1) { // Single RF channel UHD operation (backward compatible config file format)