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.36k stars 1.1k forks source link

When I set srate to a value in ue.conf file in srsran 4g I faced with a strange errors #1306

Closed stackprogramer closed 3 months ago

stackprogramer commented 3 months ago

When I set srate to a value in ue.conf file in srsran 4g I faced strange errors why when I determined srate I faced these errors. How can we solve this problem ? which sample rate ue can work with it? Thanks in advance [rf] freq_offset = 0 tx_gain = 80

rx_gain = 40

srate = 11.52e6

20 srate = 30.72e6

15 srate = 23.04e6

10 srate = 15.36e6

5 srate = 7.68e6

3 srate = 3.84e6

WARNING: cpu0 scaling governor is not set to performance mode. Realtime processing could be compromised. Consider setting it to performance mode before running the application. 2024-02-24T16:36:52.544869 [UE ] [I] Using binary Failed to mlockall: 12 Built in Debug mode using commit 03e1cc6 on branch master.

2024-02-24T16:36:52.545090 [UE ] [I] Built in Debug mode using commit 03e1cc6 on branch master. Opening 1 channels in RF device=default with args=default [INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_3.15.0.0-0 -unknown [INFO] [LOGGING] Fastpath logging disabled at runtime. [INFO] [UHD RF] RF UHD Generic instance constructed [INFO] [X300] X300 initialization sequence... [INFO] [X300] Maximum frame size: 1472 bytes. [INFO] [X300] Radio 1x clock: 184.32 MHz [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000) [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1319 MB/s) [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1298 MB/s) [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001) [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001) [INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000) [INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000) [INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000) [INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000) Warning: Failed to create thread with real-time priority. Creating it with normal priority: Operation not permitted Supported RF device list: UHD file Trying to open RF device 'UHD' Opening USRP channels=1, args: type=x300,master_clock_rate=184.32e6 RF device 'UHD' successfully opened Waiting PHY to initialize ... Warning: Failed to create thread with real-time priority. Creating it with normal priority: Operation not permitted Warning: Failed to create thread with real-time priority. Creating it with normal priority: Operation not permitted Warning: Failed to create thread with real-time priority. Creating it with normal priority: Operation not permitted Warning: Failed to create thread with real-time priority. Creating it with normal priority: Operation not permitted done! Attaching UE... ./srsran/lib/src/phy/ue/ue_sync.c:772: Error receiving samples /srsran/lib/src/phy/ue/ue_cell_search.c:317: Error calling srsran_ue_sync_work() /srsran/lib/src/phy/ue/ue_cell_search.c:277: Error searching cell ./srsran/lib/src/phy/ue/ue_sync.c:772: Error receiving samples /srsran/lib/src/phy/ue/ue_cell_search.c:317: Error calling srsran_ue_sync_work() /srsran/lib/src/phy/ue/ue_cell_search.c:277: Error searching cell ./srsran/lib/src/phy/ue/ue_sync.c:772: Error receiving samples /srsran/lib/src/phy/ue/ue_cell_search.c:317: Error calling srsran_ue_sync_work() /srsran/lib/src/phy/ue/ue_cell_search.c:277: Error searching cell

744739005 commented 3 months ago

I set the srate to 96e6 in the /root/.config/srsran/ue.conf file, but when I start srsue, it still displays 23.04e6. Can you tell me why this is happening? How can I make my settings take effect?

stackprogramer commented 3 months ago

Finally I concluded that. In the SRSRAN 4G UE project, you’ve encountered a configuration parameter called srate. Let’s break down its significance in both 5G-SA (Standalone) and 5G-NSA (Non-standalone) contexts:

5G-SA (Standalone): srate: In a pure 5G-SA network, the srate parameter is mandatory. It represents the fixed sampling rate (in Hz) corresponding to the cell bandwidth. Purpose: The srate ensures synchronization and consistency across the entire 5G network. It directly relates to the radio resource management and modulation/demodulation processes. Example: If the cell operates at a bandwidth of 10 MHz, the srate would be set to 10,000,000 Hz (10 MHz). 5G-NSA (Non-standalone): srate: In 5G-NSA, the srate parameter is not applicable. Here’s why: Hybrid Network: 5G-NSA leverages existing 4G LTE infrastructure alongside 5G NR components. Legacy 4G Core: The core (base station) still relies on 4G LTE infrastructure (EPC). Radio Antennas: While the radio antennas follow 5G specifications, the overall network is not fully standalone. Sampling Rate: Since 5G-NSA operates within the context of 4G, the sampling rate is implicitly determined by the 4G LTE system. In summary, the srate parameter is essential for maintaining a consistent sampling rate in 5G-SA networks but is not relevant in the 5G-NSA context due to its hybrid nature. Always consider the network architecture when configuring such parameters!