From 227aa922e92eac1ec9968672f0f6bd041fcb921f Mon Sep 17 00:00:00 2001 From: mir Date: Fri, 23 Sep 2022 15:04:43 +0200 Subject: [PATCH] Added the min_rxtxtime variable --- doc/TESTING_5GSA_setup.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/TESTING_5GSA_setup.md b/doc/TESTING_5GSA_setup.md index 1e27e1616d..4102197a12 100644 --- a/doc/TESTING_5GSA_setup.md +++ b/doc/TESTING_5GSA_setup.md @@ -214,4 +214,19 @@ sudo RFSIMULATOR=127.0.0.1 ./nr-uesoftmodem -r 106 --numerology 1 --band 78 -C 3 --rfsim --sa --nokrnmod -O ``` +If you get the following error: + +```bash +Assertion (k2 >= ((5))) failed! +In get_k2() /home/mir/workspace/openairinterface5g/openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c:147 +Slot offset K2 (2) cannot be less than DURATION_RX_TO_TX (5). K2 set according to min_rxtxtime in config file. +``` + +Add the following parameter (i.e., min_rxtxtime) in the gNB configuration file, just after nr_cellid. + +```bash +nr_cellid = 12345678L; +min_rxtxtime=6; +``` + The IP address at the execution command of the OAI UE corresponds to the target IP of the gNB host that the RFSIMULATOR at the UE will connect to. In the above example, we assume that the gNB and UE are running on the same host so the specified address (127.0.0.1) is the one of the loopback interface.