From aa0f5fc8fa12c39eb75d7b956564df5bb18f28c9 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 27 May 2024 15:56:24 +0200 Subject: [PATCH] parse fixed CQI for NR --- lib/include/srsran/interfaces/ue_phy_interfaces.h | 1 + srsue/src/main.cc | 3 +++ srsue/src/ue.cc | 1 + 3 files changed, 5 insertions(+) diff --git a/lib/include/srsran/interfaces/ue_phy_interfaces.h b/lib/include/srsran/interfaces/ue_phy_interfaces.h index 620ac442a..7eb60906b 100644 --- a/lib/include/srsran/interfaces/ue_phy_interfaces.h +++ b/lib/include/srsran/interfaces/ue_phy_interfaces.h @@ -106,6 +106,7 @@ struct phy_args_t { bool detect_cp = false; bool nr_store_pdsch_ko = false; + uint32_t nr_fix_wideband_cqi = 15; float in_sync_rsrp_dbm_th = -130.0f; float in_sync_snr_db_th = 1.0f; diff --git a/srsue/src/main.cc b/srsue/src/main.cc index c60584d90..0ec4f5aa0 100644 --- a/srsue/src/main.cc +++ b/srsue/src/main.cc @@ -445,6 +445,9 @@ static int parse_args(all_args_t* args, int argc, char* argv[]) ("phy.nr.store_pdsch_ko", bpo::value(&args->phy.nr_store_pdsch_ko)->default_value(false), "Dumps the PDSCH baseband samples into a file on KO reception.") + ("phy.nr.fix_wideband_cqi", + bpo::value(&args->phy.nr_fix_wideband_cqi)->default_value(15), + "Fixes the reported wideband CQI to a constant value. Default 15.") // UE simulation args ("sim.airplane_t_on_ms", diff --git a/srsue/src/ue.cc b/srsue/src/ue.cc index 038c2103c..956bc6bf9 100644 --- a/srsue/src/ue.cc +++ b/srsue/src/ue.cc @@ -91,6 +91,7 @@ int ue::init(const all_args_t& args_) phy_args_nr.worker_cpu_mask = args.phy.worker_cpu_mask; phy_args_nr.log = args.phy.log; phy_args_nr.store_pdsch_ko = args.phy.nr_store_pdsch_ko; + phy_args_nr.fix_wideband_cqi = args.phy.nr_fix_wideband_cqi; phy_args_nr.srate_hz = args.rf.srate_hz; // init layers