Added NR PHY SR test cases

master
Xavier Arteaga 3 years ago
parent cdfbe28b69
commit 182202bdb0

@ -93,9 +93,10 @@ if (RF_FOUND AND ENABLE_SRSUE AND ENABLE_SRSENB)
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS} --ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
) )
# Test PRACH transmission and detection
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_prach nr_phy_test add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_prach nr_phy_test
--reference=carrier=${NR_PHY_TEST_BW} --reference=carrier=${NR_PHY_TEST_BW}
--duration=1000 # 100 slots --duration=1000 # 1000 slots
--gnb.stack.pdsch.slots=none # No PDSCH --gnb.stack.pdsch.slots=none # No PDSCH
--gnb.stack.pusch.slots=none # No PUSCH --gnb.stack.pusch.slots=none # No PUSCH
--gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS} --gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS}
@ -103,5 +104,27 @@ if (RF_FOUND AND ENABLE_SRSUE AND ENABLE_SRSENB)
--ue.stack.prach.preamble=10 # Use preamble 10 --ue.stack.prach.preamble=10 # Use preamble 10
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS} --ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
) )
# Test scheduling request
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_sr nr_phy_test
--reference=carrier=${NR_PHY_TEST_BW}
--duration=1000 # 1000 slots
--gnb.stack.pdsch.slots=none # No PDSCH
--gnb.stack.pusch.slots=none # No PUSCH
--gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS}
--ue.stack.sr.period=4 # Transmit SR every 4 opportunities
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
)
# Test scheduling request multiplexed with HARQ ACK feedback
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_sr_harq nr_phy_test
--reference=carrier=${NR_PHY_TEST_BW}
--duration=1000 # 1000 slots
--gnb.stack.pdsch.slots=all # All PDSCH
--gnb.stack.pusch.slots=none # No PUSCH
--gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS}
--ue.stack.sr.period=4 # Transmit SR every 4 opportunities
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
)
endforeach () endforeach ()
endif () endif ()

@ -264,11 +264,14 @@ int main(int argc, char** argv)
// Print SR // Print SR
if (metrics.ue_stack.sr_count > 0) { if (metrics.ue_stack.sr_count > 0) {
srsran::console("SR:\n"); srsran::console("SR:\n");
srsran::console(" +------------+------------+\n"); srsran::console(" +------------+------------+------------+\n");
srsran::console(" | %10s | %10s |\n", "Transmit'd", "Received"); srsran::console(" | %10s | %10s | %10s |\n", "Transmit'd", "Received", "Detection");
srsran::console(" +------------+------------+\n"); srsran::console(" +------------+------------+------------+\n");
srsran::console(" | %10d | %10d |\n", metrics.ue_stack.sr_count, metrics.gnb_stack.sr_count); srsran::console(" | %10d | %10d | %10.5f |\n",
srsran::console(" +------------+------------+\n"); metrics.ue_stack.sr_count,
metrics.gnb_stack.sr_count,
(double)metrics.gnb_stack.sr_count / (double)metrics.ue_stack.sr_count);
srsran::console(" +------------+------------+------------+\n");
} }
// Assert metrics // Assert metrics

Loading…
Cancel
Save