bladeRF
bladeRF copied to clipboard
rf_blade_imp.c.456: RX failed: Operation timed out
I run the srsLTE UE on the BladeRF, and always meet this "time out" error.
Opening bladeRF... Set RX sampling rate 1.92 Mhz, filter BW: 1.92 Mhz Waiting PHY to initialize ... done! Attaching UE... Searching cell in DL EARFCN=3400, f_dl=2685.0 MHz, f_ul=2565.0 MHz set RX frequency to 2684999998 set TX frequency to 2564999998 Set RX sampling rate 1.92 Mhz, filter BW: 1.92 Mhz . Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CFO=-4.0 KHz Set RX sampling rate 15.36 Mhz, filter BW: 12.29 Mhz /srsLTE/lib/src/phy/rf/rf_blade_imp.c.456: RX failed: Operation timed out
SYNC: Receiving from radio while in IDLE_RX /srsLTE/lib/src/phy/rf/rf_blade_imp.c.456: RX failed: Operation timed out
/srsLTE/lib/src/phy/ue/ue_sync.c.727: Error receiving samples
/srsLTE/lib/src/phy/rf/rf_blade_imp.c.456: RX failed: Operation timed out
SYNC: Receiving from radio while in IDLE_RX Set RX sampling rate 1.92 Mhz, filter BW: 1.92 Mhz
This issue was introduce in srsLTE after a big refactor. It will be fix for the next release. You can use the following patch:
diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc
index 8d02950c8..a90b947cb 100644
--- a/lib/src/radio/radio.cc
+++ b/lib/src/radio/radio.cc
@@ -277,9 +277,9 @@ double radio::set_rx_gain_th(float gain)
void radio::set_master_clock_rate(double rate)
{
if (rate != master_clock_rate) {
- srslte_rf_stop_rx_stream(&rf_device);
+// srslte_rf_stop_rx_stream(&rf_device);
srslte_rf_set_master_clock_rate(&rf_device, rate);
- srslte_rf_start_rx_stream(&rf_device, false);
+// srslte_rf_start_rx_stream(&rf_device, false);
master_clock_rate = rate;
}
}
Thanks.
This issue still occurs with the current srsLTE and bladeRF builds.. I don't believe @xavierarteaga patch is still applicable. I get the same error for srsUE as @allanjinhui :
Opening bladeRF... Set RX sampling rate 1.92 Mhz, filter BW: 1.92 Mhz Waiting PHY to initialize ... done! Attaching UE... Searching cell in DL EARFCN=3400, f_dl=2685.0 MHz, f_ul=2565.0 MHz set RX frequency to 2684999998 set TX frequency to 2564999998 Set RX sampling rate 1.92 Mhz, filter BW: 1.92 Mhz /srsLTE/lib/src/phy/rf/rf_blade_imp.c.428: RX failed: Operation timed out; nsamples=9600;
/srsLTE/lib/src/phy/ue/ue_sync.c.728: Error receiving samples
/srsLTE/lib/src/phy/ue/ue_cell_search.c.309: Error calling srslte_ue_sync_work()
/srsLTE/lib/src/phy/ue/ue_cell_search.c.268: Error searching cell
/srsLTE/lib/src/phy/rf/rf_blade_imp.c.428: RX failed: Operation timed out; nsamples=1920;
SYNC: Receiving from radio while in IDLE_RX /srsLTE/lib/src/phy/rf/rf_blade_imp.c.428: RX failed: An unexpected error occurred; nsamples=1920;
SYNC: Receiving from radio while in IDLE_RX /srsLTE/lib/src/phy/rf/rf_blade_imp.c.428: RX failed: An unexpected error occurred; nsamples=1920;
SYNC: Receiving from radio while in IDLE_RX /srsLTE/lib/src/phy/rf/rf_blade_imp.c.428: RX failed: An unexpected error occurred; nsamples=1920;
same problem