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

need some help with connecting phone to srsran 4G #1171

Closed nikitos1550 closed 1 year ago

nikitos1550 commented 1 year ago

Issue Description

I setuped srsran (release 23.04) on ubuntu 22.04 with b210. Everything build fine and I can start software withoyt any issue. I programmed custom sim card (chinese green card) and added it's info to db. My android phone (I used two different) can see the network and try connect to it, but phone cannot register the network for some reason. Here is log, for some reason it start attach procedure again and again from the beginning.

2023-05-21T13:33:34.733925 [S1AP   ] [D] Saved UE context corresponding to IMSI 901550000123456
2023-05-21T13:33:34.733925 [S1AP   ] [D] Saved UE context corresponding to MME UE S1AP Id 6
2023-05-21T13:33:34.733926 [S1AP   ] [D] Added UE with MME-UE S1AP Id 6 to eNB with association 212
2023-05-21T13:33:34.733927 [NAS    ] [I] Packing Authentication Request
2023-05-21T13:33:34.733928 [S1AP   ] [D] Sending message to eNB with SCTP association 212. MME UE S1AP ID 6, eNB UE S1AP ID 1
2023-05-21T13:33:34.733933 [S1AP   ] [D] Transmitting S1AP PDU. eNB SCTP association Id: 212
2023-05-21T13:33:34.733966 [NAS    ] [I] Downlink NAS: Sending Authentication Request
2023-05-21T13:33:34^[[6~.733970 [S1AP   ] [D] Waiting for S1-MME or S11 Message
2023-05-21T13:33:59.775983 [S1AP   ] [I] Received S1AP msg. Size: 116
2023-05-21T13:33:59.775998 [S1AP   ] [I] Received Initiating PDU
2023-05-21T13:33:59.775999 [S1AP   ] [I] Received Initial UE Message.
2023-05-21T13:33:59.776012 [S1AP   ] [I] Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
2023-05-21T13:33:59.776018 [S1AP   ] [I] Received Initial UE message -- Attach Request
2023-05-21T13:33:59.776026 [NAS    ] [I] Attach request -- IMSI: 901550000123456
2023-05-21T13:33:59.776029 [NAS    ] [I] Attach request -- eNB-UE S1AP Id: 2
2023-05-21T13:33:59.776031 [NAS    ] [I] Attach request -- Attach type: 2
2023-05-21T13:33:59.776034 [NAS    ] [I] Attach Request -- UE Network Capabilities EEA: 11110000
2023-05-21T13:33:59.776036 [NAS    ] [I] Attach Request -- UE Network Capabilities EIA: 01110000
2023-05-21T13:33:59.776039 [NAS    ] [I] Attach Request -- MS Network Capabilities Present: true
2023-05-21T13:33:59.776042 [NAS    ] [I] PDN Connectivity Request -- EPS Bearer Identity requested: 0
2023-05-21T13:33:59.776046 [NAS    ] [I] PDN Connectivity Request -- Procedure Transaction Id: 121
2023-05-21T13:33:59.776049 [NAS    ] [I] PDN Connectivity Request -- ESM Information Transfer requested: true
2023-05-21T13:33:59.776050 [NAS    ] [I] Attach Request -- Found previously attached UE.
2023-05-21T13:33:59.776053 [MME GTPC] [I] Sending GTP-C Delete Session Request request. IMSI 901550000123456
2023-05-21T13:33:59.776054 [MME GTPC] [E] Could not find GTP-C context to remove
2023-05-21T13:33:59.776055 [S1AP   ] [E] UE is not ECM connected. No send context release command. MME UE S1AP Id 6
2023-05-21T13:33:59.776058 [S1AP   ] [I] Released UE ECM Context.
2023-05-21T13:33:59.776059 [S1AP   ] [I] Deleted UE Context.
2023-05-21T13:33:59.776061 [NAS    ] [D] NAS Context Initialized. MCC: 0xf901, MNC 0xff55
2023-05-21T13:33:59.776062 [HSS    ] [D] Generating AUTH info answer
2023-05-21T13:33:59.776065 [HSS    ] [D] User Key : 
    0000: f4 7f 37 e4 71 9a 9c 37 9e 34 47 f0 89 b1 f1 0a
2023-05-21T13:33:59.776066 [HSS    ] [D] User OPc : 
    0000: f4 7f 37 e4 71 9a 9c 37 9e 34 47 f0 89 b1 f1 0b
2023-05-21T13:33:59.776066 [HSS    ] [D] User Rand : 
    0000: f7 d7 58 ae d8 e6 6a 0b ac ec 3c f0 b1 57 0c 0e
2023-05-21T13:33:59.776067 [HSS    ] [D] User XRES: 
    0000: ef 87 83 34 77 70 a7 bd
2023-05-21T13:33:59.776067 [HSS    ] [D] User CK: 
    0000: 94 fb 68 81 1f ee 59 d3 74 f3 3a ac e8 2c 75 fb
2023-05-21T13:33:59.776067 [HSS    ] [D] User IK: 
    0000: 12 7d 95 5d 0a bb 27 b4 a6 d4 8e f6 74 5a 1a 01
2023-05-21T13:33:59.776068 [HSS    ] [D] User AK: 
    0000: 9f 4b 68 49 09 48
2023-05-21T13:33:59.776068 [HSS    ] [D] User SQN : 
    0000: 00 00 00 00 21 0f
2023-05-21T13:33:59.776069 [HSS    ] [D] User MAC : 
    0000: 5d 5b 1f 78 5b 4a 23 6b
2023-05-21T13:33:59.776075 [HSS    ] [D] User MCC : f901  MNC : ff55 
2023-05-21T13:33:59.776075 [HSS    ] [D] User k_asme : 
    0000: fe 20 c8 a9 26 a0 2e 77 9d e3 e9 2c ee 0e 42 ed
    0010: 68 c2 f6 8f 72 99 32 3f b5 47 29 1a a7 12 83 1d
2023-05-21T13:33:59.776075 [HSS    ] [D] User AUTN: 
    0000: 9f 4b 68 49 28 47 70 00 5d 5b 1f 78 5b 4a 23 6b
2023-05-21T13:33:59.776075 [HSS    ] [D] Incremented SQN  -- IMSI: 901550000123456
2023-05-21T13:33:59.776076 [HSS    ] [D] SQN: 
    0000: 00 00 00 00 21 30
2023-05-21T13:33:59.776077 [S1AP   ] [D] Saved UE context corresponding to IMSI 901550000123456
2023-05-21T13:33:59.776077 [S1AP   ] [D] Saved UE context corresponding to MME UE S1AP Id 7
2023-05-21T13:33:59.776077 [S1AP   ] [D] Added UE with MME-UE S1AP Id 7 to eNB with association 212
2023-05-21T13:33:59.776078 [NAS    ] [I] Packing Authentication Request
2023-05-21T13:33:59.776079 [S1AP   ] [D] Sending message to eNB with SCTP association 212. MME UE S1AP ID 7, eNB UE S1AP ID 2
2023-05-21T13:33:59.776084 [S1AP   ] [D] Transmitting S1AP PDU. eNB SCTP association Id: 212
2023-05-21T13:33:59.776115 [NAS    ] [I] Downlink NAS: Sending Authentication Request
2023-05-21T13:33:59.776119 [S1AP   ] [D] Waiting for S1-MME or S11 Message
2023-05-21T13:34:04.733967 [S1AP   ] [I] Received S1AP msg. Size: 25
2023-05-21T13:34:04.733983 [S1AP   ] [I] Received Initiating PDU
2023-05-21T13:34:04.733985 [S1AP   ] [I] Received UE Context Release Request Message.
2023-05-21T13:34:04.733986 [S1AP   ] [I] Received UE Context Release Request. MME-UE S1AP Id: 6
2023-05-21T13:34:04.734007 [S1AP   ] [I] No UE context to release found. MME-UE S1AP Id: 6
2023-05-21T13:34:04.734015 [S1AP   ] [D] Waiting for S1-MME or S11 Message
2023-05-21T13:34:09.357448 [SPGW   ] [D] Message received at SPGW: SGi Message
2023-05-21T13:34:09.357452 [GTPU   ] [D] Received SGi PDU. Bytes 48
2023-05-21T13:34:09.357453 [GTPU   ] [I] IPv6 not supported yet.
2023-05-21T13:34:24.774153 [S1AP   ] [I] Received S1AP msg. Size: 116
2023-05-21T13:34:24.774169 [S1AP   ] [I] Received Initiating PDU
2023-05-21T13:34:24.774169 [S1AP   ] [I] Received Initial UE Message.
2023-05-21T13:34:24.774181 [S1AP   ] [I] Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
2023-05-21T13:34:24.774184 [S1AP   ] [I] Received Initial UE message -- Attach Request
2023-05-21T13:34:24.774195 [NAS    ] [I] Attach request -- IMSI: 901550000123456
2023-05-21T13:34:24.774199 [NAS    ] [I] Attach request -- eNB-UE S1AP Id: 3
2023-05-21T13:34:24.774202 [NAS    ] [I] Attach request -- Attach type: 2
2023-05-21T13:34:24.774210 [NAS    ] [I] Attach Request -- UE Network Capabilities EEA: 11110000
2023-05-21T13:34:24.774214 [NAS    ] [I] Attach Request -- UE Network Capabilities EIA: 01110000
2023-05-21T13:34:24.774217 [NAS    ] [I] Attach Request -- MS Network Capabilities Present: true
2023-05-21T13:34:24.774220 [NAS    ] [I] PDN Connectivity Request -- EPS Bearer Identity requested: 0
2023-05-21T13:34:24.774223 [NAS    ] [I] PDN Connectivity Request -- Procedure Transaction Id: 122
2023-05-21T13:34:24.774227 [NAS    ] [I] PDN Connectivity Request -- ESM Information Transfer requested: true
2023-05-21T13:34:24.774228 [NAS    ] [I] Attach Request -- Found previously attached UE.
2023-05-21T13:34:24.774233 [MME GTPC] [I] Sending GTP-C Delete Session Request request. IMSI 901550000123456
2023-05-21T13:34:24.774234 [MME GTPC] [E] Could not find GTP-C context to remove
2023-05-21T13:34:24.774236 [S1AP   ] [E] UE is not ECM connected. No send context release command. MME UE S1AP Id 7
2023-05-21T13:34:24.774239 [S1AP   ] [I] Released UE ECM Context.
2023-05-21T13:34:24.774239 [S1AP   ] [I] Deleted UE Context.
2023-05-21T13:34:24.774241 [NAS    ] [D] NAS Context Initialized. MCC: 0xf901, MNC 0xff55
2023-05-21T13:34:24.774242 [HSS    ] [D] Generating AUTH info answer
2023-05-21T13:34:24.774246 [HSS    ] [D] User Key : 
    0000: f4 7f 37 e4 71 9a 9c 37 9e 34 47 f0 89 b1 f1 0a
2023-05-21T13:34:24.774247 [HSS    ] [D] User OPc : 
    0000: f4 7f 37 e4 71 9a 9c 37 9e 34 47 f0 89 b1 f1 0b
2023-05-21T13:34:24.774247 [HSS    ] [D] User Rand : 
    0000: a5 6c d7 00 54 8e 8c ed 24 e0 d3 c9 2a 5f 20 21
2023-05-21T13:34:24.774248 [HSS    ] [D] User XRES: 
    0000: a2 27 07 6d 82 94 a5 ba
2023-05-21T13:34:24.774248 [HSS    ] [D] User CK: 
    0000: 95 dc 69 15 78 17 58 bc 51 ac 6f 45 0e f9 99 75
2023-05-21T13:34:24.774248 [HSS    ] [D] User IK: 
    0000: 6a 13 f9 c6 fa 74 12 bf b4 8f f5 71 6c 94 99 e3
2023-05-21T13:34:24.774249 [HSS    ] [D] User AK: 
    0000: 12 af 22 02 de 83
2023-05-21T13:34:24.774250 [HSS    ] [D] User SQN : 
    0000: 00 00 00 00 21 30
2023-05-21T13:34:24.774251 [HSS    ] [D] User MAC : 
    0000: ee 69 70 2e 65 3a b0 8d
2023-05-21T13:34:24.774259 [HSS    ] [D] User MCC : f901  MNC : ff55 
2023-05-21T13:34:24.774259 [HSS    ] [D] User k_asme : 
    0000: c6 4e 69 4c dc 26 05 ad 03 0b a9 98 65 a0 5a af
    0010: 3d 65 83 5e 5c 0e fd ba cc c7 d2 dc 59 09 0a 63
2023-05-21T13:34:24.774260 [HSS    ] [D] User AUTN: 
    0000: 12 af 22 02 ff b3 70 00 ee 69 70 2e 65 3a b0 8d
2023-05-21T13:34:24.774260 [HSS    ] [D] Incremented SQN  -- IMSI: 901550000123456
2023-05-21T13:34:24.774260 [HSS    ] [D] SQN: 
    0000: 00 00 00 00 21 51
2023-05-21T13:34:24.774261 [S1AP   ] [D] Saved UE context corresponding to IMSI 901550000123456

Setup Details

ubuntu 22.04 PC 32GB RAM core I7 srsran 23.04 release (last at this moment) usrp b210 all configs default for srsran (only freq is different)

Expected Behavior

phone can register 4g net.

Actual Behaviour

no registration

Additional Information

LOG

ctive RF plugins: libsrsran_rf_uhd.so
Inactive RF plugins: 
---  Software Radio Systems LTE eNodeB  ---

Couldn't open , trying /root/.config/srsran/enb.conf
Reading configuration file /root/.config/srsran/enb.conf...
Couldn't open sib.conf, trying /root/.config/srsran/sib.conf
Couldn't open rr.conf, trying /root/.config/srsran/rr.conf
Couldn't open rb.conf, trying /root/.config/srsran/rb.conf

Built in Release mode using 23.04.0.

Opening 1 channels in RF device=default with args=default
Supported RF device list: UHD file
Trying to open RF device '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.
tOpening USRP channels=1, args: 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 3.
[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.
RF device 'UHD' successfully opened

==== eNodeB started ===
Type <t> to view trace
Setting frequency: DL=1875.0 Mhz, UL=1780.0 MHz for cc_idx=0 nof_prb=50
t
Available commands: 
          t: starts console trace
          m: downlink signal measurements
          q: quit srsenb
  cell_gain: set relative cell gain
      sleep: pauses the commmand line operation for a given time in seconds
          p: starts MAC padding
      flush: flushes the buffers for the log file

t
Enter t to stop trace.
RACH:  tti=2341, cc=0, pci=1, preamble=43, offset=1, temp_crnti=0x46

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   46   15   0    3   6.1k    3    0   0% |  16.4   28.3   25    3    47k    3    0   0%    0.0
lte    1   46    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    1   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    1   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   46    4   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    7   0    0      0    0    0   0% |   n/a    0.7    0    0      0    0    0   0%    0.0
lte    1   46    1   0    0      0    0    3 100% |   n/a   -2.6    0    0      0    0    0   0%    0.0
lte    1   46    5   0    0      0    0    6 100% |   n/a   -0.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   46    6   0    0      0    0    3 100% |   n/a    0.4    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   46   11   0    0      0    0    3 100% |   n/a   -1.5    0    0      0    0    0   0%    0.0
lte    1   46   14   0    0      0    0    3 100% |   n/a    3.1    0    0      0    0    0   0%    0.0
RACH:  tti=6901, cc=0, pci=1, preamble=17, offset=1, temp_crnti=0x47
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47   12   0    3   9.2k    3    0   0% |  19.9   27.3   30    4    70k    3    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46   14   0    0      0    0    3 100% |   n/a   -0.5    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    4   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    2   0    0      0    0    3 100% |   n/a   -0.6    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46    7   0    0      0    0    3 100% |   n/a    2.6    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   46  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
Disconnecting rnti=0x46.
lte    1   47    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    7   0    0      0    0    3 100% |   n/a    0.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   47   10   0    0      0    0    3 100% |   n/a    0.3    0    0      0    0    0   0%    0.0
lte    1   47    7   0    0      0    0    3 100% |   n/a   -0.7    0    0      0    0    0   0%    0.0
lte    1   47    9   0    0      0    0    3 100% |   n/a   -1.2    0    0      0    0    0   0%    0.0
lte    1   47    1   0    0      0    0    3 100% |   n/a    5.1    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   47    6   0    0      0    0    3 100% |   n/a   -0.9    0    0      0    0    0   0%    0.0
RACH:  tti=1191, cc=0, pci=1, preamble=39, offset=0, temp_crnti=0x48
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48   12   0    3    11k    3    1  25% |  18.7   22.8   32    4    80k    3    0   0%    0.0
lte    1   47    9   0    0      0    0    0   0% |   n/a    0.2    0    0      0    0    0   0%    0.0
lte    1   48    5   0    0      0    0    0   0% |  25.8   23.6   35   15   4.3k    1    0   0%    0.0
lte    1   47    7   0    0      0    0    3 100% |   n/a   -2.5    0    0      0    0    0   0%    0.0
lte    1   48    4   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    4   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47    5   0    0      0    0    3 100% |   n/a    0.3    0    0      0    0    0   0%    0.0
lte    1   48    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47    9   0    0      0    0    3 100% |   n/a   -3.9    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47   11   0    0      0    0    3 100% |   n/a   -4.3    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47   11   0    0      0    0    3 100% |   n/a   -1.6    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   47  n/a   0    2      0    0    3 100% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
Disconnecting rnti=0x47.

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
RACH:  tti=5721, cc=0, pci=1, preamble=28, offset=1, temp_crnti=0x49
lte    1   48    9   0    0      0    0    0   0% |   n/a    1.4    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    6   4.4k    1    0   0% |  23.4   25.2    0    0    966    1    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    7   0    2    464    2    0   0% |  18.9   23.2   32    7   5.4k    2    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   48   15   0    0      0    0    3 100% |   n/a   -2.2    0    0      0    0    0   0%    0.0
lte    1   49    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    7   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48    9   0    0      0    0    3 100% |   n/a    1.0    0    0      0    0    0   0%    0.0
lte    1   49    9   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48    6   0    0      0    0    3 100% |   n/a    0.8    0    0      0    0    0   0%    0.0
lte    1   49    9   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    7   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48    9   0    0      0    0    3 100% |   n/a   -0.1    0    0      0    0    0   0%    0.0
lte    1   49    6   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48    8   0    0      0    0    3 100% |   n/a    0.7    0    0      0    0    0   0%    0.0
lte    1   49    7   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48    5   0    0      0    0    6 100% |   n/a    3.6    0    0      0    0    0   0%    0.0
lte    1   49    7   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48   11   0    0      0    0    3 100% |   n/a    0.9    0    0      0    0    0   0%    0.0
lte    1   49    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    2   0    0    224    4    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    6   0    0    448    8    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   48  n/a   0    2      0    0    3 100% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49    5   0    0    448    8    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
Disconnecting rnti=0x48.
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   49    6   0    0      0    0    3 100% |   n/a    0.5    0    0      0    0    0   0%    0.0
RACH:  tti=21, cc=0, pci=1, preamble=45, offset=0, temp_crnti=0x4a
lte    1   49   15   0    0      0    0    3 100% |   n/a    2.2    0    0      0    0    0   0%    0.0
lte    1   4a  n/a   0    6   6.7k    1    0   0% |  20.4   27.4    0    0   1.5k    1    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    5   0    5    512    2    0   0% |  12.4   25.8   29    3   5.6k    2    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    9   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    8   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    3   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49   13   0    0      0    0    3 100% |   n/a   -1.7    0    0      0    0    0   0%    0.0
lte    1   4a    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    1   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0

               -----------------DL----------------|-------------------------UL-------------------------
rat  pci rnti  cqi  ri  mcs  brate   ok  nok  (%) | pusch  pucch  phr  mcs  brate   ok  nok  (%)    bsr
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    2   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
lte    1   49  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a    0   0    0      0    0    0   0% |   n/a   99.9    0    0      0    0    0   0%    0.0
Disconnecting rnti=0x49.
lte    1   4a    5   0    0      0    0    0   0% |   n/a    3.7    0    0      0    0    0   0%    0.0
lte    1   4a  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
lte    1   4a  n/a   0    0      0    0    0   0% |   n/a    n/a    0    0      0    0    0   0%    0.0
nikitos1550 commented 1 year ago

Here is another log


Built in Release mode using 23.04.0.

---  Software Radio Systems EPC  ---

Couldn't open , trying /root/.config/srsran/epc.conf
Reading configuration file /root/.config/srsran/epc.conf...
Couldn't open user_db.csv, trying /root/.config/srsran/user_db.csv
HSS Initialized.
MME S11 Initialized
MME GTP-C Initialized
MME Initialized. MCC: 0xf901, MNC: 0xff55
SPGW GTP-U Initialized.
SPGW S11 Initialized.
SP-GW Initialized.
Received S1 Setup Request.
S1 Setup Request - eNB Name: srsenb01, eNB id: 0x19b
S1 Setup Request - MCC:901, MNC:55
S1 Setup Request - TAC 7, B-PLMN 0x9f155
S1 Setup Request - Paging DRX v128
Sending S1 Setup Response
Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
Received Initial UE message -- Attach Request
Attach request -- IMSI: 901550000123456
Attach request -- eNB-UE S1AP Id: 1
Attach request -- Attach type: 2
Attach Request -- UE Network Capabilities EEA: 11110000
Attach Request -- UE Network Capabilities EIA: 01110000
Attach Request -- MS Network Capabilities Present: true
PDN Connectivity Request -- EPS Bearer Identity requested: 0
PDN Connectivity Request -- Procedure Transaction Id: 115
PDN Connectivity Request -- ESM Information Transfer requested: true
Downlink NAS: Sending Authentication Request
Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
Received Initial UE message -- Attach Request
Attach request -- IMSI: 901550000123456
Attach request -- eNB-UE S1AP Id: 2
Attach request -- Attach type: 2
Attach Request -- UE Network Capabilities EEA: 11110000
Attach Request -- UE Network Capabilities EIA: 01110000
Attach Request -- MS Network Capabilities Present: true
PDN Connectivity Request -- EPS Bearer Identity requested: 0
PDN Connectivity Request -- Procedure Transaction Id: 116
PDN Connectivity Request -- ESM Information Transfer requested: true
Attach Request -- Found previously attach UE.
Downlink NAS: Sending Authentication Request
Received UE Context Release Request. MME-UE S1AP Id 1
No UE context to release found. MME-UE S1AP Id: 1
Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
Received Initial UE message -- Attach Request
Attach request -- IMSI: 901550000123456
Attach request -- eNB-UE S1AP Id: 3
Attach request -- Attach type: 2
Attach Request -- UE Network Capabilities EEA: 11110000
Attach Request -- UE Network Capabilities EIA: 01110000
Attach Request -- MS Network Capabilities Present: true
PDN Connectivity Request -- EPS Bearer Identity requested: 0
PDN Connectivity Request -- Procedure Transaction Id: 117
PDN Connectivity Request -- ESM Information Transfer requested: true
Attach Request -- Found previously attach UE.
Downlink NAS: Sending Authentication Request
Received UE Context Release Request. MME-UE S1AP Id 2
No UE context to release found. MME-UE S1AP Id: 2
Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
Received Initial UE message -- Attach Request
Attach request -- IMSI: 901550000123456
Attach request -- eNB-UE S1AP Id: 4
Attach request -- Attach type: 2
Attach Request -- UE Network Capabilities EEA: 11110000
Attach Request -- UE Network Capabilities EIA: 01110000
Attach Request -- MS Network Capabilities Present: true
PDN Connectivity Request -- EPS Bearer Identity requested: 0
PDN Connectivity Request -- Procedure Transaction Id: 118
PDN Connectivity Request -- ESM Information Transfer requested: true
Attach Request -- Found previously attach UE.
Downlink NAS: Sending Authentication Request
Received UE Context Release Request. MME-UE S1AP Id 3
No UE context to release found. MME-UE S1AP Id: 3
Initial UE message: LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST
Received Initial UE message -- Attach Request
Attach request -- IMSI: 901550000123456
Attach request -- eNB-UE S1AP Id: 5
Attach request -- Attach type: 2
Attach Request -- UE Network Capabilities EEA: 11110000
Attach Request -- UE Network Capabilities EIA: 01110000
Attach Request -- MS Network Capabilities Present: true
PDN Connectivity Request -- EPS Bearer Identity requested: 0
PDN Connectivity Request -- Procedure Transaction Id: 119
PDN Connectivity Request -- ESM Information Transfer requested: true
Attach Request -- Found previously attach UE.
Downlink NAS: Sending Authentication Request
Received UE Context Release Request. MME-UE S1AP Id 4
andrepuschmann commented 1 year ago

You have to check your RF settings. The CQI reported by the phone is very low and also the UL SNR isn't good.

nikitos1550 commented 1 year ago

Thanks, will try find and replace antennas with better. Also I recently got the connection with phone, with another sim card sample (mostly same settings except imsi). So maybe you can tell me some rules, what sim card settings are really important? Also are there any restrictions on Ki, OPC values (like it cannot be all 00 or all FF etc)? I will make more experiment and post results here later.

nikitos1550 commented 1 year ago

P.S. Here https://pasteboard.co/ZRlftMIqE6o0.jpg is screenshot of success smartphone connection, is CQI also low?

andrepuschmann commented 1 year ago

This time the cqi is good. Max value is 15. Seems those RF settings work better.

OmarHent commented 1 year ago

hello @nikitos1550 what is the complete setup to connect real device to srsenb ?what antenna are you using how to connect it to srsenb ?