From 711afedfe158e3760d7e45d8943193f705a01e20 Mon Sep 17 00:00:00 2001 From: Laurent THOMAS Date: Thu, 29 Aug 2024 20:48:49 +0200 Subject: [PATCH 1/2] warmup RF board in UE --- executables/nr-ue.c | 5 +++++ openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index a742ea2e9d..55a012106d 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -812,6 +812,11 @@ void *UE_thread(void *arg) if (get_softmodem_params()->sync_ref && UE->sl_mode == 2) { UE->is_synchronized = 1; + } else { + //warm up the RF board + int64_t tmp; + for (int i=0; i< 50; i++) + readFrame(UE, &tmp, true); } while (!oai_exit) { diff --git a/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c b/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c index d08a1ed5f3..f61cb715dd 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c +++ b/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c @@ -202,7 +202,7 @@ void nr_scan_ssb(void *arg) /* process pss search on received buffer */ ssbInfo->syncRes.frame_id = frame_id; int nid2; - int freq_offset_pss; + int freq_offset_pss=0; const int sync_pos = pss_synchro_nr((const c16_t **)rxdata, fp, pssTime, From 5811ab1dc84f56004747989a784947b9083ec76f Mon Sep 17 00:00:00 2001 From: Thomas Laurent Date: Wed, 2 Oct 2024 09:11:49 +0000 Subject: [PATCH 2/2] Apply 2 suggestion(s) to 2 file(s) Co-authored-by: Robert Schmidt --- executables/nr-ue.c | 2 +- openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index 55a012106d..ef1c6ab29f 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -815,7 +815,7 @@ void *UE_thread(void *arg) } else { //warm up the RF board int64_t tmp; - for (int i=0; i< 50; i++) + for (int i = 0; i < 50; i++) readFrame(UE, &tmp, true); } diff --git a/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c b/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c index f61cb715dd..85b612c1a8 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c +++ b/openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c @@ -202,7 +202,7 @@ void nr_scan_ssb(void *arg) /* process pss search on received buffer */ ssbInfo->syncRes.frame_id = frame_id; int nid2; - int freq_offset_pss=0; + int freq_offset_pss = 0; const int sync_pos = pss_synchro_nr((const c16_t **)rxdata, fp, pssTime,