From e02ed62d02636a81457433f307bdbb087addb0a4 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 12 Nov 2018 17:07:35 +0100 Subject: [PATCH] update tx adv nsamples calibrated with UXM --- lib/src/radio/radio.cc | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc index ffae700ee..3c38f9594 100644 --- a/lib/src/radio/radio.cc +++ b/lib/src/radio/radio.cc @@ -363,17 +363,23 @@ void radio::set_tx_srate(double srate) double srate_khz = round(cur_tx_srate/1e3); if (srate_khz == 1.92e3) { - nsamples = 54; + // 6 PRB + nsamples = 94; } else if (srate_khz == 3.84e3) { - nsamples = 69; + // 15 PRB + nsamples = 94; } else if (srate_khz == 5.76e3) { - nsamples = 93; + // 25 PRB + nsamples = 92; } else if (srate_khz == 11.52e3) { - nsamples = 120; + // 50 PRB + nsamples = 171; } else if (srate_khz == 15.36e3) { - nsamples = 131; + // 75 PRB + nsamples = 171; } else if (srate_khz == 23.04e3) { - nsamples = 150; + // 100 PRB + nsamples = 171; } else { /* Interpolate from known values */ printf("\nWarning TX/RX time offset for sampling rate %.0f KHz not calibrated. Using interpolated value\n\n", cur_tx_srate); @@ -403,17 +409,17 @@ void radio::set_tx_srate(double srate) } else if(!strcmp(srslte_rf_name(&rf_device), "lime")) { double srate_khz = round(cur_tx_srate/1e3); if (srate_khz == 1.92e3) { - nsamples = 70;// estimated + nsamples = 76; } else if (srate_khz == 3.84e3) { - nsamples = 76;//estimated + nsamples = 76; } else if (srate_khz == 5.76e3) { nsamples = 76; } else if (srate_khz == 11.52e3) { nsamples = 76; } else if (srate_khz == 15.36e3) { - nsamples = 73; + nsamples = 76; } else if (srate_khz == 23.04e3) { - nsamples = 87; + nsamples = 76; } else { /* Interpolate from known values */ printf("\nWarning TX/RX time offset for sampling rate %.0f KHz not calibrated. Using interpolated value\n\n", cur_tx_srate);