From 711afedfe158e3760d7e45d8943193f705a01e20 Mon Sep 17 00:00:00 2001 From: Laurent THOMAS Date: Thu, 29 Aug 2024 20:48:49 +0200 Subject: [PATCH] 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,