From fda4c39590c9646a138eb463a39d9b57c2721dcd Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 16 Jul 2018 15:16:52 +0200 Subject: [PATCH] pdsch_ue RSRP in dBm. Fix default rx_gain_offset in ue.conf differs from code --- lib/examples/pdsch_ue.c | 2 +- srsue/ue.conf.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/examples/pdsch_ue.c b/lib/examples/pdsch_ue.c index 3b84afb71..b8b4ad1a7 100644 --- a/lib/examples/pdsch_ue.c +++ b/lib/examples/pdsch_ue.c @@ -821,7 +821,7 @@ int main(int argc, char **argv) { PRINT_LINE(" nof layers: %d", ue_dl.pdsch_cfg.nof_layers); PRINT_LINE("nof codewords: %d", SRSLTE_RA_DL_GRANT_NOF_TB(&ue_dl.pdsch_cfg.grant)); PRINT_LINE(" CFO: %+7.2f Hz", srslte_ue_sync_get_cfo(&ue_sync)); - PRINT_LINE(" RSRP: %+5.1f dBm | %+5.1f dBm", 10 * log10(rsrp0), 10 * log10(rsrp1)); + PRINT_LINE(" RSRP: %+5.1f dBm | %+5.1f dBm", 10 * log10(rsrp0)+30, 10 * log10(rsrp1)+30); PRINT_LINE(" SNR: %+5.1f dB | %+5.1f dB", 10 * log10(rsrp0 / noise), 10 * log10(rsrp1 / noise)); PRINT_LINE(" Rb: %6.2f / %6.2f / %6.2f Mbps (net/maximum/processing)", uerate, enodebrate, procrate); PRINT_LINE(" PDCCH-Miss: %5.2f%%", 100 * (1 - (float) ue_dl.nof_detected / nof_trials)); diff --git a/srsue/ue.conf.example b/srsue/ue.conf.example index 3d56d19fb..d1a81b0d9 100644 --- a/srsue/ue.conf.example +++ b/srsue/ue.conf.example @@ -209,7 +209,7 @@ enable = false #ip_netmask = 255.255.255.0 #mbms_service = -1 #rssi_sensor_enabled = false -#rx_gain_offset = 72 +#rx_gain_offset = 62 #prach_gain = 30 #cqi_max = 15 #cqi_fixed = 10