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

srsUE stuck on attaching after finding cell #979

Open niloysh opened 2 years ago

niloysh commented 2 years ago

Issue Description

srsue unstable behaviour with usrp x310 in LTE mode.

Setup Details

[Specify details of the test setup. This would help us reproduce the problem reliably] We have 2 usrp x310s running UHD 3.15 and the latest release version of srsRAN. We specified the device arguments as the following.

device_args = type=x300,sampling_rate=11.52e6,lo_freq_offset_hz=11.52e6

The rest are set to their default values.

Expected Behavior

srsUE attaches to the network.

Actual Behaviour

srsue keeps getting stuck on attaching to UE after finding the cell. Sometimes it does successfully attach, but it is inconsistent. However, the srsenb works with COTS UE (Samsung S20 Ultra 5G) using a sysmocom SIM.

Steps to reproduce the problem

Here is the UE log file. ue.log

Since COTS UE works, I'm not sure what the issue is with srsUE.

andrepuschmann commented 1 year ago

The UE fails to send the RRC Setup Complete.

2022-09-01T19:58:24.293390 [RLC    ] [I] SRB1: Tx PDU SN=0 (40 B) (attempt 4/4)
    0000: a0 00 00 20 00 40 2f 7f 1b ff 66 26 0e 82 02 17
    0010: ed 33 f2 0e 00 02 34 04 d8 af 90 05 e0 e0 00 08
2022-09-01T19:58:24.293399 [MAC    ] [I] [ 9366] UL PHR: ph=31.0 LCID=1 len=42 LBSR: b=0 0 0 0 
2022-09-01T19:58:24.293400 [MAC    ] [I] [ 9366] UL 2:  New TX, RV=0, TBS=157
2022-09-01T19:58:24.293770 [PHY0   ] [I] [ 9366] PUSCH: cc=0, tti_tx=9370, rnti=0x5e, rb=(2,46), nof_re=6480, tbs=157, mod=2, rv=0
2022-09-01T19:58:24.301381 [PHY0   ] [I] [ 9374] PHICH: hi=0, corr=1.0, I_lowest=2, n_dmrs=0, I_phich=0
2022-09-01T19:58:24.301383 [MAC    ] [I] [ 9374] UL 2:  Non-Adaptive retx=1, RV=2, TBS=157, HI=NACK
2022-09-01T19:58:24.301509 [PHY0   ] [I] [ 9374] PUSCH: cc=0, tti_tx=9378, rnti=0x5e, rb=(2,46), nof_re=6480, tbs=157, mod=2, rv=2
2022-09-01T19:58:24.307061 [RRC    ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-44.53 dBm, cfo=-1238.9 Hz
2022-09-01T19:58:24.309092 [PHY0   ] [I] [ 9382] PHICH: hi=0, corr=1.0, I_lowest=2, n_dmrs=0, I_phich=0
2022-09-01T19:58:24.309094 [MAC    ] [I] [ 9382] UL 2:  Non-Adaptive retx=2, RV=3, TBS=157, HI=NACK
2022-09-01T19:58:24.309228 [PHY0   ] [I] [ 9382] PUSCH: cc=0, tti_tx=9386, rnti=0x5e, rb=(2,46), nof_re=6480, tbs=157, mod=2, rv=3
2022-09-01T19:58:24.317456 [PHY0   ] [I] [ 9390] PHICH: hi=0, corr=1.0, I_lowest=2, n_dmrs=0, I_phich=0
2022-09-01T19:58:24.317461 [MAC    ] [I] [ 9390] UL 2:  Non-Adaptive retx=3, RV=1, TBS=157, HI=NACK
2022-09-01T19:58:24.317830 [PHY0   ] [I] [ 9390] PUSCH: cc=0, tti_tx=9394, rnti=0x5e, rb=(2,46), nof_re=6480, tbs=157, mod=2, rv=1
2022-09-01T19:58:24.325267 [PHY0   ] [I] [ 9398] PHICH: hi=0, corr=1.0, I_lowest=2, n_dmrs=0, I_phich=0
2022-09-01T19:58:24.325271 [MAC    ] [I] [ 9398] UL 2:  Maximum number of ReTX reached (4). Discarding TB.
2022-09-01T19:58:24.326173 [PHY1   ] [I] [ 9399] PUCCH: cc=0, tti_tx=9403, rnti=0x5e, f=2, n_pucch=0, cqi=14 (cc=0)
2022-09-01T19:58:24.327258 [RRC    ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-44.43 dBm, cfo=-1241.6 Hz
2022-09-01T19:58:24.338056 [RLC    ] [W] SRB1: Signaling max number of reTx=4 for SN=0
2022-09-01T19:58:24.338057 [RRC    ] [W] Max RLC reTx attempted. Starting RLF
2022-09-01T19:58:24.338059 [RLC    ] [I] SRB1: Schedule SN=0 for retx
2022-09-01T19:58:24.338072 [RRC    ] [I] Detected Radio-Link Failure with AS security deactivated. Going to IDLE...
2022-09-01T19:58:24.338073 [RRC    ] [I] Proc "Go Idle" - Starting...

The downlink looks good. Check the UL on the eNB, I guess UL signal too weak or strong.