srsRAN_4G icon indicating copy to clipboard operation
srsRAN_4G copied to clipboard

Error when configuring a band different from n3 in srsUE (5G SA)

Open olasierra opened this issue 2 years ago • 3 comments
trafficstars

Issue Description

Trying to connect srsUE to 5G-SA srsENB using a FDD band other than n3 but whatever band is selected within the ue.conf file, srsRAN automatically takes the values as if the band selected was n3. Thus, the only way to change UE band configuration was to hard-code the parameters of dl_central_frequency and SSB_frequency in the srsRAN (srsUE) code. In this setup, the band n7 has been selected with no other purpose than test if srsUE can support additional NR bands aside from n3.

Setup Details

Testing Band n7 using Hard-Coded values:

srsUE

The hard-coded values have been selected in order to match with the ones used by the srsENB: Setting frequency: DL=2655.0 Mhz, DL_SSB=2654.55 Mhz (SSB-ARFCN=530910), UL=2535.0 MHz for cc_idx=0 nof_prb=52

Hard-Coded srsUE parameters:

// Path: srsRAN > srsue > src > stack > rrc_nr > rrc_nr_procedures.cc
// Function: proc_outcome_t rrc_nr::cell_selection_proc::init()
cs_args.center_freq_hz                        = 2655000000.000000;     
cs_args.ssb_freq_hz                           = 2654550000.000000;    
UE Terminal
Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_blade.so libsrsran_rf_zmq.so
Inactive RF plugins:
Reading configuration file ue_SA.conf...

Built in Release mode using commit 254cc719a on branch master.

Opening 1 channels in RF device=zmq with args=tx_port=tcp://*:2001,rx_port=tcp://10.205.52.27:2000,id=ue,base_srate=11.52e6
Supported RF device list: UHD bladeRF zmq file
CHx base_srate=11.52e6
CHx id=ue
Current sample rate is 1.92 MHz with a base rate of 11.52 MHz (x6 decimation)
CH0 rx_port=tcp://10.205.52.27:2000
CH0 tx_port=tcp://*:2001

Warning: TX gain was not set. Using open-loop power control (not working properly)

Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Waiting PHY to initialize ... done!
Attaching UE...

UE Log file
[UE     ] [I] Using binary ./srsue with arguments: ue_SA.conf 
2023-02-10T13:41:41.598734 [UE     ] [I] Built in Release mode using commit 254cc719a on branch master.
2023-02-10T13:41:41.625062 [RF     ] [I] Configuring physical DL channel 0 with band-pass filter (0.0, 0.0)
2023-02-10T13:41:41.625063 [RF     ] [I] Configuring physical UL channel 0 with band-pass filter (0.0, 0.0)
2023-02-10T13:41:41.659736 [MAC    ] [I] [    0] Resetting MAC
2023-02-10T13:41:41.659740 [MAC    ] [I] [    0] Logical Channel Setup: LCID=0, LCG=0, priority=0, PBR=-1, BSD=50ms, bucket_size=0
2023-02-10T13:41:41.659742 [MAC    ] [I] [    0] Logical Channel Setup: LCID=1, LCG=0, priority=1, PBR=-1, BSD=50ms, bucket_size=0
2023-02-10T13:41:41.659751 [MAC    ] [I] [    0] Setting configuration
2023-02-10T13:41:41.659752 [MAC    ] [I] [    0] BSR:   Configured timer reTX 2560 ms
2023-02-10T13:41:41.659759 [RLC    ] [I] Added LTE radio bearer with LCID 0 in Transparent Mode
2023-02-10T13:41:41.659768 [USIM   ] [I] Read Home PLMN Id=90170
2023-02-10T13:41:41.662378 [RLC-NR ] [I] Added LTE radio bearer with LCID 0 in Transparent Mode
2023-02-10T13:41:41.662384 [MAC-NR ] [I] [    0] Logical Channel Setup: LCID=0, LCG=0, priority=0, PBR=0, BSD=0ms, bucket_size=0
2023-02-10T13:41:41.662389 [RRC    ] [I] using srand seed of 662389
2023-02-10T13:41:41.685258 [STCK   ] [I] Triggering NAS switch on
2023-02-10T13:41:41.685350 [NAS5G  ] [I] Switching on
2023-02-10T13:41:41.686299 [USIM   ] [I] Read Home PLMN Id=90170
2023-02-10T13:41:41.686300 [NAS5G  ] [I] Requesting IMSI attach (IMSI=901700123456780)
2023-02-10T13:41:41.686304 [NAS5G  ] [I] Sending Registration Request
2023-02-10T13:41:41.686305 [RRC-NR ] [I] Proc "Setup Request" - Initiation of Setup request procedure
2023-02-10T13:41:41.686306 [RRC-NR ] [I] Proc "Cell Selection" - Starting...
2023-02-10T13:41:41.686314 [PHY-SA ] [I] [    0] Cell Search: Going to IDLE
2023-02-10T13:41:41.686315 [PHY-SA ] [I] [    0] Tuning Rx channel 0 to 2655.00 MHz
2023-02-10T13:41:41.686635 [RF     ] [I] Mapping RF channel 0 (device=0, channel=0) to logical carrier 0 on f_rx=2655.0 MHz
2023-02-10T13:41:41.686642 [PHY-SA ] [I] [    0] Cell search: Setting SSB configuration srate=11.52 MHz; c-freq=2655.000 MHz; ss-freq=2654.550 MHz; scs=15kHz; pattern=A; duplex=fdd;
2023-02-10T13:41:41.686816 [PHY-SA ] [I] [    0] Cell Search: Running Cell search state
2023-02-10T13:41:41.690825 [RRC-NR ] [I] Proc "Cell Selection" - Cell search found ARFCN=0 PCI=501 epre=+140.0 snr=+230.0 cfo=+0.0 delay=-0.0  sfn=2 ssb_idx=0 hrf=n scs=15 ssb_offset=6 dmrs_typeA_pos=pos2 coreset0=6 ss0=0 barred=n intra_freq_reselection=y spare=0
2023-0
[PHY-SA ] [I] [    0] Cell Select: Going to IDLE
2023-02-10T13:41:41.690837 [PHY-SA ] [I] [    0] Tuning Rx channel 0 to 1842.50 MHz
2023-02-10T13:41:41.690838 [RF     ] [I] Mapping RF channel 0 (device=0, channel=0) to logical carrier 0 on f_rx=1842.5 MHz
2023-02-10T13:41:41.690838 [PHY-SA ] [I] [    0] Tuning Tx channel 0 to 1747.50 MHz
2023-02-10T13:41:41.690839 [RF     ] [I] Mapping RF channel 0 (device=0, channel=0) to logical carrier 0 on f_tx=1747.5 MHz
2023-02-10T13:41:41.690843 [PHY-SA ] [I] [    0] SYNC: Setting SSB configuration srate=11.52 MHz; c-freq=1842.500 MHz; ss-freq=1842.050 MHz; scs=15kHz; pattern=A; duplex=fdd; period=10 ms; Tracking N_id=501.
2023-02-10T13:41:41.691338 [PHY0-NR] [I] [    0] ### ue_dl DCI: dci_0_0_and_1_0_common_size=39, dci_0_0_and_1_0_ue_size=39
2023-02-10T13:41:41.691338 [PHY0-NR] [I] [    0] ### PDCCH DCI_coreset_bw: coreset0_bw=48, dl_initial_bw=52, dl_active_bw=52
2023-02-10T13:41:41.691339 [PHY0-NR] [I] [    0] ### PDCCH monitored_DCI_format: monitor_common_0_0=no, monitor_0_0_and_1_0=no
2023-02-10T13:41:41.691947 [PHY1-NR] [I] [    0] ### ue_dl DCI: dci_0_0_and_1_0_common_size=39, dci_0_0_and_1_0_ue_size=39
2023-02-10T13:41:41.691947 [PHY1-NR] [I] [    0] ### PDCCH DCI_coreset_bw: coreset0_bw=48, dl_initial_bw=52, dl_active_bw=52
2023-02-10T13:41:41.691948 [PHY1-NR] [I] [    0] ### PDCCH monitored_DCI_format: monitor_common_0_0=no, monitor_0_0_and_1_0=no
2023-02-10T13:41:41.692479 [PHY2-NR] [I] [    0] ### ue_dl DCI: dci_0_0_and_1_0_common_size=39, dci_0_0_and_1_0_ue_size=39
2023-02-10T13:41:41.692479 [PHY2-NR] [I] [    0] ### PDCCH DCI_coreset_bw: coreset0_bw=48, dl_initial_bw=52, dl_active_bw=52
2023-02-10T13:41:41.692479 [PHY2-NR] [I] [    0] ### PDCCH monitored_DCI_format: monitor_common_0_0=no, monitor_0_0_and_1_0=no
2023-02-10T13:41:41.692572 [PHY-SA ] [I] [    0] Setting new PHY configuration ARFCN=368500, PCI=501
2023-02-10T13:41:41.692573 [PHY-SA ] [I] [    0] PRACH: cell.id=501, configIdx=0, rootSequence=0, zeroCorrelationConfig=0, freqOffset=0
2023-02-10T13:41:41.692631 [PHY-SA ] [I] [    0] Finished setting new PRACH configuration.
2023-02-10T13:41:41.692631 [PHY-SA ] [I] [    0] PHY:   Set TA offset: n_ta_offset: 0, ta_usec: 0.0
2023-02-10T13:41:41.692679 [RRC-NR ] [I] PHY configuration with MIB parameters completed.
2023-02-10T13:41:41.700751 [PHY-SA ] [I] [    0] SYNC: SFN synchronised successfully (SFN=3). Transitioning to IDLE...
2023-02-10T13:41:41.700755 [PHY-SA ] [I] [   31] Cell Select: SFN synchronized. CAMPING...
2023-02-10T13:41:41.700777 [RRC-NR ] [I] Proc "Cell Selection" - Cell selection completed. Starting SIB1 acquisition
2023-02-10T13:41:41.714214 [PHY1-NR] [I] [   40] PDCCH: cc=0, si-rnti=0xffff dci=1_0 ss=common0 L=2 cce=0 f_alloc=0x150 t_alloc=0x0 vrb_to_prb_map=0 mcs=5 rv=0 sii=0 coreset0_bw=48 reserved=0x0 
2023-02-10T13:41:41.714464 [PHY1-NR] [I] [   40] PDSCH: cc=0 pid=0 si-rnti=0xffff prb=(1,8) symb=(2,13) CW0: mod=QPSK tbs=80 R=0.380 rv=0 CRC=KO iter=10.0 evm=0.58 t_us=171 epre=+154.0 snr=+14.2 cfo=+477.0 delay=-0.0  ack_tti_tx=41
2023-02-10T13:41:41.714465 [MAC-NR ] [I] [   40] DL 0:  newTX tbs=80, rv=0, ack=KO, ndi=0
2023-02-10T13:41:42.712268 [MAC    ] [I] [  986] BSR:   triggered_bsr_type=none, LCID QUEUE status: 0: 0 1: 0 
2023-02-10T13:41:42.737173 [STCK   ] [I] tti_tprof: {mean, max, min} = {0.00, 0, 0} msec
2023-02-10T13:41:42.852087 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.853209 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.854315 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.855418 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.856524 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.857627 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.858735 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.859847 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.860959 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.862075 [PHY-SA ] [E] [ 1120] SYNC: detected out-of-sync... skipping slot ...
2023-02-10T13:41:42.863255 [PHY0-NR] [E] [ 1120] PBCH-MIB: NR SFN (113) does not match current SFN (112)
2023-02-10T13:41:42.863372 [RF     ] [I] Detected RF gap of -10000.0 us. Sending end-of-burst.
2023-02-10T13:41:42.879421 [PHY0-NR] [E] [ 1130] PBCH-MIB: NR SFN (114) does not match current SFN (113)
2023-02-10T13:41:42.889798 [PHY0-NR] [E] [ 1140] PBCH-MIB: NR SFN (115) does not match current SFN (114)
2023-02-10T13:41:42.900478 [PHY0-NR] [E] [ 1150] PBCH-MIB: NR SFN (116) does not match current SFN (115)
2023-02-10T13:41:42.910626 [PHY0-NR] [E] [ 1160] PBCH-MIB: NR SFN (117) does not match current SFN (116)
2023-02-10T13:41:42.920925 [PHY0-NR] [E] [ 1170] PBCH-MIB: NR SFN (118) does not match current SFN (117)
2023-02-10T13:41:42.931057 [PHY0-NR] [E] [ 1180] PBCH-MIB: NR SFN (119) does not match current SFN (118)
2023-02-10T13:41:42.941215 [PHY0-NR] [E] [ 1190] PBCH-MIB: NR SFN (120) does not match current SFN (119)
2023-02-10T13:41:42.951367 [PHY0-NR] [E] [ 1200] PBCH-MIB: NR SFN (121) does not match current SFN (120)
2023-02-10T13:41:42.961643 [PHY0-NR] [E] [ 1210] PBCH-MIB: NR SFN (122) does not match current SFN (121)
2023-02-10T13:41:42.972155 [PHY0-NR] [E] [ 1220] PBCH-MIB: NR SFN (123) does not match current SFN (122)
2023-02-10T13:41:42.982332 [PHY0-NR] [E] [ 1230] PBCH-MIB: NR SFN (124) does not match current SFN (123)
2023-02-10T13:41:42.992824 [PHY0-NR] [E] [ 1240] PBCH-MIB: NR SFN (125) does not match current SFN (124)
2023-02-10T13:41:43.003582 [PHY0-NR] [E] [ 1250] PBCH-MIB: NR SFN (126) does not match current SFN (125)
2023-02-10T13:41:43.013729 [PHY0-NR] [E] [ 1260] PBCH-MIB: NR SFN (127) does not match current SFN (126)
2023-02-10T13:41:43.023872 [PHY0-NR] [E] [ 1270] PBCH-MIB: NR SFN (128) does not match current SFN (127)
2023-02-10T13:41:43.034009 [PHY0-NR] [E] [ 1280] PBCH-MIB: NR SFN (129) does not match current SFN (128)
2023-02-10T13:41:43.044190 [PHY0-NR] [E] [ 1290] PBCH-MIB: NR SFN (130) does not match current SFN (129)
2023-02-10T13:41:43.055367 [PHY0-NR] [E] [ 1300] PBCH-MIB: NR SFN (131) does not match current SFN (130)
2023-02-10T13:41:43.067487 [PHY0-NR] [E] [ 1310] PBCH-MIB: NR SFN (132) does not match current SFN (131)
2023-02-10T13:41:43.079671 [PHY0-NR] [E] [ 1320] PBCH-MIB: NR SFN (133) does not match current SFN (132)
2023-02-10T13:41:43.091785 [PHY0-NR] [E] [ 1330] PBCH-MIB: NR SFN (134) does not match current SFN (133)
2023-02-10T13:41:43.103998 [PHY0-NR] [E] [ 1340] PBCH-MIB: NR SFN (135) does not match current SFN (134)
2023-02-10T13:41:43.116132 [PHY0-NR] [E] [ 1350] PBCH-MIB: NR SFN (136) does not match current SFN (135)
2023-02-10T13:41:43.128275 [PHY0-NR] [E] [ 1360] PBCH-MIB: NR SFN (137) does not match current SFN (136)

srsENB

enb Terminal
Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_blade.so libsrsran_rf_zmq.so
Inactive RF plugins:
---  Software Radio Systems LTE eNodeB  ---

Reading configuration file enb_SA.conf...

Built in Release mode using commit 254cc719a on branch master.

Opening 1 channels in RF device=zmq with args=fail_on_disconnect=true,tx_port=tcp://*:2000,rx_port=tcp://10.205.52.168:2001,id=enb,base_srate=11.52e6
Supported RF device list: UHD bladeRF zmq file
CHx base_srate=11.52e6
CHx id=enb
Current sample rate is 1.92 MHz with a base rate of 11.52 MHz (x6 decimation)
CH0 rx_port=tcp://10.205.52.168:2001
CH0 tx_port=tcp://*:2000
CH0 fail_on_disconnect=true
NG connection successful

==== eNodeB started ===
Type <t> to view trace
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Setting frequency: DL=2655.0 Mhz, DL_SSB=2654.55 Mhz (SSB-ARFCN=530910), UL=2535.0 MHz for cc_idx=0 nof_prb=52

Question

Is it possible to connect a srsUE in any other band but n3?

Thanks in advance for your time!

olasierra avatar Feb 10 '23 15:02 olasierra

Any resolution to this? I am having the same issue.

hearmedrone avatar Nov 13 '23 12:11 hearmedrone

@hearmedrone this is one of the limitations of srsUE_4G... As far as I know now, this UE can only work in n3 band, subcarrier spacing 15 KHz and 10 MHz BW. Besides, the new srsRAN_Project (the one to develop and deploy 5G SA) does not seem to have plans to support 5G SA UE as for now.

olasierra avatar Nov 24 '23 08:11 olasierra

I have faced the same problem and in the end I managed to solve it. To do this, I cast both the dl_arfcn and the ssb_arfcn of the band corresponding to the gNB cell when executing the srsUE.

image

command: sudo srsue --rat.nr.dl_nr_arfcn=531000 --rat.nr.ssb_nr_arfcn=530910 ue_zmq.conf

In this way I can establish the connection between UE and gNB in ​​all FR1 bands.

jjose001 avatar Jul 04 '24 10:07 jjose001