srsran / srsRAN_Project

Open source O-RAN 5G CU/DU solution from Software Radio Systems (SRS) https://docs.srsran.com/projects/project
https://www.srsran.com
GNU Affero General Public License v3.0
523 stars 178 forks source link

Underflow issues when using Rpi 4 #912

Open faratell opened 2 weeks ago

faratell commented 2 weeks ago

Hello. I have installed the srsRAN project on a Raspberry Pi 4 with a 32GB SD card , 8G RAM and Ubuntu 22 as the operating system. I am using a USRP B210 and a GPS antenna for synchronization. I have set the CPU governor to "performance," allowing the CPU to operate at the maximum frequency of the Raspberry Pi (1.8 GHz). I have attached my gNB configuration file: gnb.txt When I run the gNB, it shows an underflow error. I have tried it with both bandwidth settings: 20 MHz and 10 MHz. sudo ./gnb -c gnb1.yml

--== srsRAN gNB (commit ee1d86cd8) ==--

The PRACH detector will not meet the performance requirements with the configuration {Format B4, ZCZ 0, SCS 30kHz, Rx ports 1}. Lower PHY in dual executor mode. Available radio types: uhd. [INFO] [UHD] linux; GNU C++ version 11.2.0; Boost_107400; UHD_4.1.0.5-3 [INFO] [LOGGING] Fastpath logging disabled at runtime. Making USRP object with args 'type=b200,num_recv_frames=64,num_send_frames=64' [INFO] [B200] Detected Device: B210 [INFO] [B200] Operating over USB 3. [INFO] [B200] Detecting internal GPSDO.... [INFO] [GPS] Found an internal GPSDO: GPSTCXO, Firmware Rev 0.929b [INFO] [B200] Initialize CODEC control... [INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Setting master clock rate selection to 'automatic'. [INFO] [B200] Asking for clock rate 16.000000 MHz... [INFO] [B200] Actually got clock rate 16.000000 MHz. [INFO] [MULTI_USRP] Setting master clock rate selection to 'manual'. [INFO] [B200] Asking for clock rate 23.040000 MHz... [INFO] [B200] Actually got clock rate 23.040000 MHz. Cell pci=1, bw=10 MHz, 1T1R, dl_arfcn=632628 (n78), dl_freq=3489.42 MHz, dl_ssb_arfcn=632640, ul_freq=3489.42 MHz

N2: Connection to AMF on 192.168.75.181:38412 completed ==== gNB started === Type to view help Late: 13; Underflow: 69; Overflow: 0; tLate: 0; Underflow: 108; Overflow: 0;

Late: 21; Underflow: 75; Overflow: 0; Late: 9; Underflow: 66; Overflow: 0; Late: 4; Underflow: 129; Overflow: 0; Late: 13; Underflow: 73; Overflow: 0;

pgawlowicz commented 2 weeks ago

You can try with BW=5MHz, but I am not sure if it works. We run 5MHz cell with RPi5. Also see the comment here: https://github.com/srsran/srsRAN_Project/discussions/349#discussioncomment-7818355 and https://github.com/srsran/srsRAN_Project/discussions/339#discussioncomment-7690124

faratell commented 2 weeks ago

Thanks for your reply. I also set this config but also have underflow. cell_cfg: dl_arfcn: 361000 band: 3 channel_bandwidth_MHz: 5 common_scs: 15 plmn: "00101" tac: 1 pci: 1