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.48k stars 1.14k forks source link

connect usrp with usb2 #1381

Open faratell opened 1 month ago

faratell commented 1 month ago

Hello. I have installed srsran_4G (with B210) on my office PC and Open5GS VoLTE in a VM on there. My SIM card is connected to the deployed network and has a good internet connection. I attempted to transfer the eNB to my home PC. I had to connect the B210 to a USB 2.0 port because it does not work well on the USB 3.0 port. To prevent overflow and underflow, I also had to decrease the nPRB to 15. To connect the eNB to the core, which is in my office, I used SoftEther VPN on my eNB PC at home. Now, the eNB is correctly connected to the core, but my phone's SIM card cannot find the ANP. Is this related to the decrease in nPRB? Can anyone help me identify the problem? this is My enb log: sudo ./srsenb /root/.config/srsran/enb.conf Active RF plugins: libsrsran_rf_uhd.so Inactive RF plugins: --- Software Radio Systems LTE eNodeB ---

Reading configuration file /root/.config/srsran/enb.conf...

Built in Release mode using commit ec29b0c1f on branch master.

Opening 1 channels in RF device=default with args=clock=gpsdo,otw_format=sc12,time=gpsdo Supported RF device list: UHD file Trying to open RF device 'UHD' [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.7.0.0-0ubuntu1~jammy1 [INFO] [LOGGING] Fastpath logging disabled at runtime. Opening USRP channels=1, args: otw_format=sc12,time=gpsdo,type=b200,master_clock_rate=23.04e6 [INFO] [UHD RF] RF UHD Generic instance constructed [INFO] [B200] Detected Device: B210 [INFO] [B200] Operating over USB 2. [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] Asking for clock rate 23.040000 MHz... [INFO] [B200] Actually got clock rate 23.040000 MHz. Setting USRP time to 1725793642.000000s [INFO] [MULTI_USRP] 1) catch time transition at pps edge [INFO] [MULTI_USRP] 2) set times next pps (synchronously) RF device 'UHD' successfully opened

==== eNodeB started === Type to view trace Setting frequency: DL=2685.0 Mhz, UL=2565.0 MHz for cc_idx=0 nof_prb=15 t Enter t to stop trace.

faratell commented 1 month ago

My problem is solved. I set: n_prb=25 base_srate=7.68e6, master_clock_rate=7.68e6 Conclusion: srsRAN_4G with usrp b210 can work over usb2 but need to set rates correctly.