|
|
@ -172,7 +172,7 @@ void proc_ra_nr::ra_preamble_transmission()
|
|
|
|
// instruct the physical layer to transmit the Random Access Preamble using the selected PRACH occasion, corresponding
|
|
|
|
// instruct the physical layer to transmit the Random Access Preamble using the selected PRACH occasion, corresponding
|
|
|
|
// RA-RNTI (if available), PREAMBLE_INDEX, and PREAMBLE_RECEIVED_TARGET_POWER.
|
|
|
|
// RA-RNTI (if available), PREAMBLE_INDEX, and PREAMBLE_RECEIVED_TARGET_POWER.
|
|
|
|
phy->send_prach(prach_occasion, preamble_index, preamble_received_target_power);
|
|
|
|
phy->send_prach(prach_occasion, preamble_index, preamble_received_target_power);
|
|
|
|
prach_send_timer.set(100, [this](uint32_t tid) { timer_expired(tid); }); // TODO find a suitable 100?
|
|
|
|
prach_send_timer.set(PRACH_SEND_CALLBACK_TIMEOUT, [this](uint32_t tid) { timer_expired(tid); });
|
|
|
|
prach_send_timer.run();
|
|
|
|
prach_send_timer.run();
|
|
|
|
state = WAITING_FOR_PRACH_SENT;
|
|
|
|
state = WAITING_FOR_PRACH_SENT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|