srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.42k stars 1.13k forks source link

bladeRF can't leave BURST mode, so impact next time running #180

Closed aricwang88 closed 6 years ago

aricwang88 commented 6 years ago

Actually it's not calibration issue, it's a bug:

=== eNodeB started === Type to view trace [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/bladerf.c":356] Enable Module: RX - True [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/bladerf.c":356] Enable Module: TX - True [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/sync.c":326] sync_rx: Worker is idle. Going to reset buf mgmt. [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/sync.c":346] sync_rx: Reset buf_mgmt consumer index [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/sync.c":361] sync_rx: Worker is now running. [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/bladerf.c":356] Enable Module: TX - True [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/bladerf.c":356] Enable Module: TX - True [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/sync.c":849] sync_tx: Worker is now running. [DEBUG @ "/home/user/bladeRF/host/libraries/libbladeRF/src/sync.c":730] handle_tx_parameters: BURST_START provided while already in a burst.

TX failed: Invalid operation or parameter (This line printed in rf_blade_send_timed() function. )

Try to start srsenb many times, if no such error, the bladerf could run normally, if it's have the error even the UE can receive broadcast messages, can not handle uplink data.

aricwang88 commented 6 years ago

Because rf_blade_send_timed() call twice with is_start_of_burst = true .