[srsran-users] How to run srsUE standalone to connect to commercial eNB: "Failed to initialize USIM"

Sabyrzhan Tasbolatov snovitoll at gmail.com
Tue Feb 7 12:56:02 UTC 2023


Hello,

I don't have experience with srsRAN, but I dont need srsenb and srsEPC,
as I need to capture Uplink LTE waveform IQ samples (i guess i will
figure out it later -- should be debug log level ?)

So my understanding is that I need to use "srsue" application.
I've built srsRAN from current master branch:

$ git log -1
commit 254cc719a9a31f64ce0262f4ca6ab72b1803477d (HEAD -> master,
origin/master, origin/HEAD)
Merge: e1d5f406e ba34570b7
Author: Codebot <codebot at softwareradiosystems.com>
Date:   Sun Nov 6 22:12:22 2022 +0000

    Merge branch 'next' into agpl_next

    # Conflicts:
    #       cmake/modules/FindPolarssl.cmake

I have bladeRF with 0.11.0 FPGA firmware.
Also have smart-card reader where I've inserted my USIM card.

Here ue.conf sections I've modified:

[rf]
device_name = soapy
device_args = driver=bladerf

[rat.eutra]
# this is EARFCN of the local eNB
dl_earfcn = 1652

[usim]
mode = pcsc
#algo = milenage
#opc  =
#k    =
#imsi =
#imei =
reader =
pin = 0000


pcsc_scan and pcsc_usim_test works fine. It can read USIM via PC/SC interface.

Here the output: (I've tried to run it with sudo copying user's
ue.conf to root directory.

$ ./srsue --usim.mode=pcsc
Active RF plugins: libsrsran_rf_soapy.so libsrsran_rf_blade.so
Inactive RF plugins:
Couldn't open , trying /home/novitoll/.config/srsran/ue.conf
Reading configuration file /home/novitoll/.config/srsran/ue.conf...
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.
Failed to `mlockall`: 12
Built in Release mode using commit 254cc719a on branch master.

Opening 1 channels in RF device=soapy with args=driver=bladerf
Supported RF device list: soapy bladeRF file
[ERROR] SoapySDR::loadModule(/usr/local/lib/SoapySDR/modules0.7/libbladeRFSupport.so)
  duplicate entry for bladerf
(/usr/lib/x86_64-linux-gnu/SoapySDR/modules0.7/libbladeRFSupport.so)
Soapy has found device #0: backend=libusb, device=0x02:0x02,
driver=bladerf, instance=0, label=BladeRF #0 [xxxxxxxxx],
serial=xxxxxxxxxx,
Selecting Soapy device: 0
[INFO] bladerf_open_with_devinfo()
[INFO] bladerf_get_serial() = xxxxxxxxxxxxxxx
[INFO] setSampleRate(Rx, 0, 4.000000 MHz), actual = 4.000000 MHz
[INFO] setSampleRate(Tx, 0, 4.000000 MHz), actual = 4.000000 MHz
Setting up Rx stream with 1 channel(s)
Setting up Tx stream with 1 channel(s)
[INFO] setSampleRate(Rx, 0, 1.920000 MHz), actual = 1.920000 MHz
[INFO] setSampleRate(Tx, 0, 1.920000 MHz), actual = 1.920000 MHz
Available device sensors:
 - RFIC_TEMP
Available sensors for Rx channel 0:
 - PRE_RSSI
 - SYM_RSSI
State of gain elements for Rx channel 0 (AGC supported):
State of gain elements for Tx channel 0 (AGC not supported):
Rx antenna set to RX
Tx antenna set to TX
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
0Failed to initialize USIM.
Error initializing stack.
Waiting PHY to initialize ... done!
[INFO] bladerf_close()

--
         Sabr


More information about the srsran-users mailing list