From 39e00a8d3d11d9fa752a6325d15bfa0c9cc5f6f6 Mon Sep 17 00:00:00 2001 From: ismagom Date: Tue, 16 Jun 2015 11:29:25 +0100 Subject: [PATCH] Fixed start of burst in uhd_imp --- srsapps/radio/src/radio_uhd.cc | 2 +- srsapps/ue/mac/src/mac.cc | 2 +- srslte/lib/cuhd/src/cuhd_imp.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/srsapps/radio/src/radio_uhd.cc b/srsapps/radio/src/radio_uhd.cc index 9be56289a..399c84b0a 100644 --- a/srsapps/radio/src/radio_uhd.cc +++ b/srsapps/radio/src/radio_uhd.cc @@ -108,7 +108,7 @@ bool radio_uhd::tx(void* buffer, uint32_t nof_samples, srslte_timestamp_t tx_tim srslte_timestamp_add(&end_of_burst_time, 0, (double) nof_samples/cur_tx_srate); save_trace(0, &tx_time); - if (cuhd_send_timed2(uhd, buffer, nof_samples, tx_time.full_secs, tx_time.frac_secs, true, false) > 0) { + if (cuhd_send_timed2(uhd, buffer, nof_samples, tx_time.full_secs, tx_time.frac_secs, false, false) > 0) { return true; } else { return false; diff --git a/srsapps/ue/mac/src/mac.cc b/srsapps/ue/mac/src/mac.cc index acbcb2a10..1078cf841 100644 --- a/srsapps/ue/mac/src/mac.cc +++ b/srsapps/ue/mac/src/mac.cc @@ -58,7 +58,7 @@ bool mac::init(phy *phy_h_, tti_sync* ttisync_, log* log_h_) sr_procedure.init(log_h, ¶ms_db, phy_h); reset(); - if (threads_new_rt(&mac_thread, mac_thread_fnc, this)) { + if (threads_new_rt_prio(&mac_thread, mac_thread_fnc, this, 5)) { started = true; } diff --git a/srslte/lib/cuhd/src/cuhd_imp.cpp b/srslte/lib/cuhd/src/cuhd_imp.cpp index 00548bcc9..cb0f23765 100644 --- a/srslte/lib/cuhd/src/cuhd_imp.cpp +++ b/srslte/lib/cuhd/src/cuhd_imp.cpp @@ -162,7 +162,7 @@ int cuhd_open_(char *args, void **h, bool create_thread_gain, bool tx_gain_same_ { cuhd_handler *handler = new cuhd_handler(); std::string _args = std::string(args); - handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, num_recv_frames=64, num_send_frames=32"); + handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, num_recv_frames=16, num_send_frames=16"); // handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=50000000" + ", num_recv_frames=512"); handler->usrp->set_clock_source("internal");