From ab299dd2e289a1296f501a8dcc8aac415b85a68e Mon Sep 17 00:00:00 2001 From: Francesco Mani Date: Wed, 27 Mar 2019 09:43:09 +0100 Subject: [PATCH] modification to pbchsim without initial sync --- openair1/SIMULATION/NR_PHY/pbchsim.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openair1/SIMULATION/NR_PHY/pbchsim.c b/openair1/SIMULATION/NR_PHY/pbchsim.c index 548a4f3dc3..e4ff2f48d7 100644 --- a/openair1/SIMULATION/NR_PHY/pbchsim.c +++ b/openair1/SIMULATION/NR_PHY/pbchsim.c @@ -618,9 +618,18 @@ int main(int argc, char **argv) 0, 0, NR_PBCH_EST); + + nr_pbch_channel_estimation(UE,0,0,i,i-(UE->symbol_offset+1),ssb_index%8,n_hf); } - ret = nr_pbch_detection(UE,UE->symbol_offset+1,0); + ret = nr_rx_pbch(UE, + 0, + UE->pbch_vars[0], + frame_parms, + 0, + ssb_index%8, + SISO, + UE->high_speed_flag); if (ret==0) { //UE->rx_ind.rx_indication_body->mib_pdu.ssb_index; //not yet detected automatically