From 9dc0dc5ffe756815fa4a8e0842cc061c8d1bb0ed Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Thu, 11 Jul 2024 14:43:13 +0200 Subject: [PATCH] NR UE: improve PSS detection by reducing the detection step size from 8 to 4 Until commit d74b2bd19fc7a34741822fdbcc537cd2c2b0d4ae, the PSS detection step size was 4, anyways. The PSS detection step size is a compromise between detection duration and accuracy. The most accurate detection step size would be 1, but this would lead to even longer initial sync time. --- openair1/PHY/NR_UE_TRANSPORT/pss_nr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair1/PHY/NR_UE_TRANSPORT/pss_nr.c b/openair1/PHY/NR_UE_TRANSPORT/pss_nr.c index 6d9aaf7f9a..54d9022e87 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/pss_nr.c +++ b/openair1/PHY/NR_UE_TRANSPORT/pss_nr.c @@ -560,7 +560,7 @@ static int pss_search_time_nr(const c16_t **rxdata, } for (int pss_index = pss_index_start; pss_index < pss_index_end; pss_index++) { - for (n = 0; n < length; n += 8) { // + for (n = 0; n < length; n += 4) { // int64_t pss_corr_ue=0; /* calculate dot product of primary_synchro_time_nr and rxdata[ar][n]