From f73fcd94ee3cd131315e5fb27c3e2b0e06abc66d Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Tue, 27 Sep 2022 11:02:16 +0200 Subject: [PATCH] NR_UE: fix/add some debugging in nr_adjust_synch_ue.c and nr_dl_channel_estimation.c --- openair1/PHY/NR_UE_ESTIMATION/nr_adjust_synch_ue.c | 4 ++-- openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/NR_UE_ESTIMATION/nr_adjust_synch_ue.c b/openair1/PHY/NR_UE_ESTIMATION/nr_adjust_synch_ue.c index 045197adc1..20be091975 100644 --- a/openair1/PHY/NR_UE_ESTIMATION/nr_adjust_synch_ue.c +++ b/openair1/PHY/NR_UE_ESTIMATION/nr_adjust_synch_ue.c @@ -27,7 +27,7 @@ #include "executables/softmodem-common.h" #include "common/utils/LOG/vcd_signal_dumper.h" -#define DEBUG_PHY +//#define DEBUG_PHY // Adjust location synchronization point to account for drift // The adjustment is performed once per frame based on the @@ -118,7 +118,7 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms, } #ifdef DEBUG_PHY - LOG_D(PHY,"AbsSubframe %d: diff = %i, rx_offset (final) = %i : clear = %d, max_pos = %d, max_pos_fil = %d, max_val = %d, sync_pos %d\n", + LOG_I(PHY,"AbsSubframe %d: diff = %i, rx_offset (final) = %i : clear = %d, max_pos = %d, max_pos_fil = %d, max_val = %d, sync_pos %d\n", subframe, diff, ue->rx_offset, diff --git a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c index f15b99fb1c..d772be591c 100644 --- a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c +++ b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c @@ -1223,6 +1223,10 @@ void nr_pdcch_channel_estimation(PHY_VARS_NR_UE *ue, ch[0] = ch_sum[0] / 3; ch[1] = ch_sum[1] / 3; multadd_real_vector_complex_scalar(filt16a_1, ch, dl_ch, 16); +#ifdef DEBUG_PDCCH + for (int m =0; m<12; m++) + printf("data : dl_ch -> (%d,%d)\n",dl_ch[0+2*m],dl_ch[1+2*m]); +#endif dl_ch += 24; ch_sum[0] = 0; ch_sum[1] = 0;