diff --git a/executables/nr-softmodem-common.h b/executables/nr-softmodem-common.h index 3f27a48168..d135ea998e 100644 --- a/executables/nr-softmodem-common.h +++ b/executables/nr-softmodem-common.h @@ -82,6 +82,7 @@ #define CONFIG_HLP_NOTWAIT "don't wait for tracer, start immediately\n" #define CONFIG_HLP_TNOFORK "to ease debugging with gdb\n" #define CONFIG_HLP_DISABLNBIOT "disable nb-iot, even if defined in config\n" +#define CONFIG_HLP_DISABLETIMECORR "disable UE timing correction\n" #define CONFIG_HLP_NUMEROLOGY "adding numerology for 5G\n" #define CONFIG_HLP_EMULATE_RF "Emulated RF enabled(disable by defult)\n" diff --git a/executables/nr-ue.c b/executables/nr-ue.c index f0ddaab944..1d61293a1d 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -496,7 +496,7 @@ void trashFrame(PHY_VARS_NR_UE *UE, openair0_timestamp *timestamp) { } void syncInFrame(PHY_VARS_NR_UE *UE, openair0_timestamp *timestamp) { - if (UE->no_timing_correction==0) { + LOG_I(PHY,"Resynchronizing RX by %d samples (mode = %d)\n",UE->rx_offset,UE->mode); void *dummy_tx[UE->frame_parms.nb_antennas_tx]; @@ -515,7 +515,7 @@ void syncInFrame(PHY_VARS_NR_UE *UE, openair0_timestamp *timestamp) { for (int i=0; iframe_parms.nb_antennas_tx; i++) free(dummy_tx[i]); - } + } int computeSamplesShift(PHY_VARS_NR_UE *UE) { diff --git a/executables/nr-uesoftmodem.c b/executables/nr-uesoftmodem.c index 98d8fc88e6..a3f3daa246 100644 --- a/executables/nr-uesoftmodem.c +++ b/executables/nr-uesoftmodem.c @@ -126,6 +126,7 @@ extern int16_t nr_dlsch_demod_shift; int UE_scan = 0; int UE_scan_carrier = 0; int UE_fo_compensation = 0; +int UE_no_timing_correction = 0; runmode_t mode = normal_txrx; openair0_config_t openair0_cfg[MAX_CARDS]; @@ -754,6 +755,7 @@ int main( int argc, char **argv ) { UE[CC_id]->UE_scan_carrier = UE_scan_carrier; UE[CC_id]->UE_fo_compensation = UE_fo_compensation; UE[CC_id]->mode = mode; + UE[CC_id]->no_timing_correction = UE_no_timing_correction; printf("UE[%d]->mode = %d\n",CC_id,mode); for (uint8_t i=0; i