More relaxed SSB measure assertions and reorder SSB test

master
Xavier Arteaga 3 years ago
parent 4b77127ed6
commit be870d66ad

@ -133,14 +133,14 @@ target_link_libraries(ssb_measure_test srsran_phy)
add_executable(ssb_decode_test ssb_decode_test.c) add_executable(ssb_decode_test ssb_decode_test.c)
target_link_libraries(ssb_decode_test srsran_phy) target_link_libraries(ssb_decode_test srsran_phy)
# For each supported SSB subcarrier spacing # For 1.0 GHz and 3.5 GHz Center frequencies
foreach (SSB_SCS 15 30) foreach (CELL_FREQ 1000000000 3500000000)
# For each supported Cell/Carrier subcarrier spacing # For each supported Cell/Carrier subcarrier spacing
foreach (CELL_SCS 15 30) foreach (CELL_SCS 15 30)
# For 1.0 GHz and 3.5 GHz Center frequencies
foreach (CELL_FREQ 1000000000 3500000000)
# For SSB centered at -960, 0 and 960 kHz from the center frequency # For SSB centered at -960, 0 and 960 kHz from the center frequency
foreach (SSB_OFFSET_FREQ -960000 +0 +960000) foreach (SSB_OFFSET_FREQ -960000 +0 +960000)
# For each supported SSB subcarrier spacing
foreach (SSB_SCS 15 30)
# For patterns A, B, C # For patterns A, B, C
foreach (SSB_PATTERN A B C) foreach (SSB_PATTERN A B C)
# Calculate Actual SSB center frequency # Calculate Actual SSB center frequency

@ -27,7 +27,7 @@ static double ssb_freq_hz = 3.5e9;
static srsran_ssb_patern_t ssb_pattern = SRSRAN_SSB_PATTERN_A; static srsran_ssb_patern_t ssb_pattern = SRSRAN_SSB_PATTERN_A;
// Channel parameters // Channel parameters
static int32_t delay_n = 1; static int32_t delay_n = 2;
static float cfo_hz = 100.0f; static float cfo_hz = 100.0f;
static float n0_dB = -30.0f; static float n0_dB = -30.0f;
@ -40,8 +40,8 @@ static cf_t* buffer = NULL; // Base-band buffer
#define RSRP_MAX_ERROR 1.0f #define RSRP_MAX_ERROR 1.0f
#define EPRE_MAX_ERROR 1.0f #define EPRE_MAX_ERROR 1.0f
#define N0_MAX_ERROR 2.5f #define N0_MAX_ERROR 3.0f
#define SNR_MAX_ERROR 2.5f #define SNR_MAX_ERROR 3.0f
#define CFO_MAX_ERROR (cfo_hz * 0.3f) #define CFO_MAX_ERROR (cfo_hz * 0.3f)
#define DELAY_MAX_ERROR (delay_us * 0.1f) #define DELAY_MAX_ERROR (delay_us * 0.1f)
@ -235,6 +235,7 @@ int main(int argc, char** argv)
if (test_case_1(&ssb) != SRSRAN_SUCCESS) { if (test_case_1(&ssb) != SRSRAN_SUCCESS) {
ERROR("test case failed"); ERROR("test case failed");
goto clean_exit;
} }
ret = SRSRAN_SUCCESS; ret = SRSRAN_SUCCESS;

Loading…
Cancel
Save