From 9c416aa97e22130821d0a6562129f965ded905e4 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Fri, 23 Feb 2018 13:15:01 +0100 Subject: [PATCH] Disable RSSI sensor by default and expose rx_gain for calibration --- srsue/src/main.cc | 4 ++-- srsue/src/upper/rrc.cc | 2 +- srsue/ue.conf.example | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srsue/src/main.cc b/srsue/src/main.cc index e76891796..1cac2092d 100644 --- a/srsue/src/main.cc +++ b/srsue/src/main.cc @@ -159,11 +159,11 @@ void parse_args(all_args_t *args, int argc, char *argv[]) { "Pregenerate uplink signals after attach. Improves CPU performance.") ("expert.rssi_sensor_enabled", - bpo::value(&args->expert.phy.rssi_sensor_enabled)->default_value(true), + bpo::value(&args->expert.phy.rssi_sensor_enabled)->default_value(false), "Enable or disable RF frontend RSSI sensor. In some USRP devices can cause segmentation fault") ("expert.rx_gain_offset", - bpo::value(&args->expert.phy.rx_gain_offset)->default_value(10), + bpo::value(&args->expert.phy.rx_gain_offset)->default_value(62), "RX Gain offset to add to rx_gain to correct RSRP value") ("expert.prach_gain", diff --git a/srsue/src/upper/rrc.cc b/srsue/src/upper/rrc.cc index 9e26436ae..6809eea4f 100644 --- a/srsue/src/upper/rrc.cc +++ b/srsue/src/upper/rrc.cc @@ -389,7 +389,7 @@ void rrc::run_si_acquisition_procedure() last_win_start = si_win_start; mac->bcch_start_rx(si_win_start, si_win_len); - rrc_log->info("Instructed MAC to search for system info, win_start=%d, win_len=%d\n", + rrc_log->debug("Instructed MAC to search for system info, win_start=%d, win_len=%d\n", si_win_start, si_win_len); } diff --git a/srsue/ue.conf.example b/srsue/ue.conf.example index 2b8da9643..5e6f01027 100644 --- a/srsue/ue.conf.example +++ b/srsue/ue.conf.example @@ -118,6 +118,7 @@ enable = false # ip_netmask: Netmask of the tun_srsue device. Default: 255.255.255.0 # rssi_sensor_enabled: Enable or disable RF frontend RSSI sensor. Required for RSRP metrics but # can cause UHD instability for long-duration testing. Default true. +# rx_gain_offset: RX Gain offset to add to rx_gain to calibrate RSRP readings # prach_gain: PRACH gain (dB). If defined, forces a gain for the tranmsission of PRACH only., # Default is to use tx_gain in [rf] section. # cqi_max: Upper bound on the maximum CQI to be reported. Default 15. @@ -176,6 +177,7 @@ enable = false [expert] #ip_netmask = 255.255.255.0 #rssi_sensor_enabled = false +#rx_gain_offset = 62 #prach_gain = 30 #cqi_max = 15 #cqi_fixed = 10