From 9d18349a084a406b74738ba9f3cbbc4950204961 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 26 Jun 2018 10:27:39 +0200 Subject: [PATCH] Reduced uhd timeout --- lib/src/phy/rf/rf_uhd_imp.c | 6 +++--- srsenb/src/phy/phch_worker.cc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/phy/rf/rf_uhd_imp.c b/lib/src/phy/rf/rf_uhd_imp.c index a0548347e..f287f5579 100644 --- a/lib/src/phy/rf/rf_uhd_imp.c +++ b/lib/src/phy/rf/rf_uhd_imp.c @@ -807,7 +807,7 @@ int rf_uhd_recv_with_time_multi(void *h, rxd_samples = 0; uhd_error error = uhd_rx_streamer_recv(handler->rx_stream, buffs_ptr, - num_rx_samples, md, 1.0, false, &rxd_samples); + num_rx_samples, md, 0.1, false, &rxd_samples); if (error) { fprintf(stderr, "Error receiving from UHD: %d\n", error); log_rx_error(handler); @@ -917,7 +917,7 @@ int rf_uhd_send_timed_multi(void *h, buffs_ptr[i] = buff; } uhd_error error = uhd_tx_streamer_send(handler->tx_stream, buffs_ptr, - tx_samples, &handler->tx_md, 3.0, &txd_samples); + tx_samples, &handler->tx_md, 0.1, &txd_samples); if (error) { fprintf(stderr, "Error sending to UHD: %d\n", error); goto unlock; @@ -939,7 +939,7 @@ int rf_uhd_send_timed_multi(void *h, uhd_tx_metadata_set_has_time_spec(&handler->tx_md, is_start_of_burst); uhd_tx_metadata_set_start(&handler->tx_md, is_start_of_burst); uhd_tx_metadata_set_end(&handler->tx_md, is_end_of_burst); - uhd_error error = uhd_tx_streamer_send(handler->tx_stream, buffs_ptr, nsamples, &handler->tx_md, 3.0, &txd_samples); + uhd_error error = uhd_tx_streamer_send(handler->tx_stream, buffs_ptr, nsamples, &handler->tx_md, 0.0, &txd_samples); if (error) { fprintf(stderr, "Error sending to UHD: %d\n", error); goto unlock; diff --git a/srsenb/src/phy/phch_worker.cc b/srsenb/src/phy/phch_worker.cc index e368c3b80..4a365f75f 100644 --- a/srsenb/src/phy/phch_worker.cc +++ b/srsenb/src/phy/phch_worker.cc @@ -39,10 +39,10 @@ using namespace std; // Enable this to log SI -//#define LOG_THIS(a) 1 +#define LOG_THIS(a) 1 // Enable this one to skip SI-RNTI -#define LOG_THIS(rnti) (rnti != 0xFFFF) +//#define LOG_THIS(rnti) (rnti != 0xFFFF) /* Define GUI-related things */