mirror of https://github.com/PentHertz/srsLTE.git
account for delays in RAR tx in scheduler CA tester
This commit is contained in:
parent
3b937348a2
commit
ab69c6fe43
|
@ -112,8 +112,8 @@ int test_scell_activation(test_scell_activation_params params)
|
|||
const uint16_t rnti1 = 70;
|
||||
|
||||
/* Setup Simulation */
|
||||
uint32_t prach_tti = 1, msg4_tot_delay = 10; // TODO: check correct value
|
||||
uint32_t msg4_size = 20; // TODO: Check
|
||||
uint32_t prach_tti = 1;
|
||||
uint32_t msg4_size = 40; // TODO: Check
|
||||
uint32_t duration = 1000;
|
||||
// Generate Cell order
|
||||
std::vector<uint32_t> cc_idxs(nof_ccs);
|
||||
|
@ -132,7 +132,12 @@ int test_scell_activation(test_scell_activation_params params)
|
|||
TESTASSERT(tester.ue_tester->user_exists(rnti1));
|
||||
|
||||
// Event (TTI=prach_tti+msg4_tot_delay): First Tx (Msg4). Goes in SRB0 and contains ConRes
|
||||
generator.step_tti(msg4_tot_delay);
|
||||
while (not tester.ue_tester->get_user_state(rnti1)->msg3_tic.is_valid() or
|
||||
tester.ue_tester->get_user_state(rnti1)->msg3_tic.tti_rx() > generator.tti_counter) {
|
||||
generator.step_tti();
|
||||
tester.test_next_ttis(generator.tti_events);
|
||||
}
|
||||
generator.step_tti();
|
||||
generator.add_dl_data(rnti1, msg4_size);
|
||||
tester.test_next_ttis(generator.tti_events);
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ public:
|
|||
srsenb::sched_interface::ue_cfg_t user_cfg;
|
||||
uint32_t preamble_idx = 0;
|
||||
uint32_t msg3_riv = 0;
|
||||
bool is_msg3_rx(const tti_counter& tti_rx) const { return msg3_tic.is_valid() and msg3_tic <= tti_rx; }
|
||||
};
|
||||
|
||||
explicit user_state_sched_tester(const std::vector<srsenb::sched::cell_cfg_t>& cell_params_) :
|
||||
|
|
Loading…
Reference in New Issue