From 9325aaddf2cb90915b048c8a5af4c30cd2b1f815 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Fri, 27 Sep 2019 18:59:55 +0200 Subject: [PATCH] Do not change master clock rate if not necessary. Hint in ue/enb configs for low BW cells --- lib/src/phy/rf/rf_uhd_imp.c | 8 ++------ srsenb/enb.conf.example | 5 ++++- srsue/ue.conf.example | 5 ++++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/src/phy/rf/rf_uhd_imp.c b/lib/src/phy/rf/rf_uhd_imp.c index 3aece9ff8..c3473e28d 100644 --- a/lib/src/phy/rf/rf_uhd_imp.c +++ b/lib/src/phy/rf/rf_uhd_imp.c @@ -681,10 +681,8 @@ double rf_uhd_set_rx_srate(void* h, double freq) rf_uhd_handler_t* handler = (rf_uhd_handler_t*)h; // Set master clock rate - if (freq < 10e6) { + if (fmod(handler->current_master_clock, freq)) { rf_uhd_set_master_clock_rate(handler, 4 * freq); - } else { - rf_uhd_set_master_clock_rate(handler, freq); } if (handler->nof_rx_channels > 1) { @@ -716,10 +714,8 @@ double rf_uhd_set_tx_srate(void* h, double freq) rf_uhd_handler_t* handler = (rf_uhd_handler_t*)h; // Set master clock rate - if (freq < 10e6) { + if (fmod(handler->current_master_clock, freq)) { rf_uhd_set_master_clock_rate(handler, 4 * freq); - } else { - rf_uhd_set_master_clock_rate(handler, freq); } if (handler->nof_tx_channels > 1) { diff --git a/srsenb/enb.conf.example b/srsenb/enb.conf.example index 0bac9eced..7f68829e9 100644 --- a/srsenb/enb.conf.example +++ b/srsenb/enb.conf.example @@ -73,7 +73,10 @@ rx_gain = 40 #device_name = auto # For best performance in 2x2 MIMO and >= 15 MHz use the following device_args settings: -# USRP B210: pass num_recv_frames=64,num_send_frames=64 +# USRP B210: num_recv_frames=64,num_send_frames=64 + +# For best performance when BW<5 MHz (25 PRB), use the following device_args settings: +# USRP B210: send_frame_size=512,recv_frame_size=512 #device_args = auto #time_adv_nsamples = auto diff --git a/srsue/ue.conf.example b/srsue/ue.conf.example index 3310ab2da..5ae446691 100644 --- a/srsue/ue.conf.example +++ b/srsue/ue.conf.example @@ -40,7 +40,10 @@ tx_gain = 80 #nof_rx_ant = 1 # For best performance in 2x2 MIMO and >= 15 MHz use the following device_args settings: -# USRP B210: pass num_recv_frames=64,num_send_frames=64 +# USRP B210: num_recv_frames=64,num_send_frames=64 + +# For best performance when BW<5 MHz (25 PRB), use the following device_args settings: +# USRP B210: send_frame_size=512,recv_frame_size=512 #device_args = auto #time_adv_nsamples = auto