User Tools

Site Tools


project:srsranda

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
project:srsranda [2024/04/29 18:05] – [LTE sniffing + Wireshark decoder + fake base station] abyssalproject:srsranda [2024/05/07 23:07] (current) – [Running eNB (base station)] abyssal
Line 274: Line 274:
 </code> </code>
  
-==== Running ENB (base station) ====+==== Running eNB (base station) ====
  
-Use ''srsenb'' commandNeeds to have config correct, otherwise you'll get shitton of errorslike shown below (ENB not yet configured properlyone of missing parts are TX antenna names)+First, ''srsepc'' is needed which runs non-radio part of LTE Core NetworkThis includes [[https://docs.srsran.com/projects/4g/en/latest/usermanuals/source/srsepc/source/1_epc_intro.html | database of usersHHSMME and SP-GW internet gateway]].
  
-Example of **incorrect** output:+You need to run it as root because it create TUN/TAP interface. Seems to work in docker. 
 + 
 +Default DB contains only few entries, if you want different MCC, MNC, LAC, TAC, PCI, you'll have to add it to DB/config. 
 + 
 +<code> 
 +# srsepc 
 + 
 +Built in Release mode using commit fa56836b1 on branch master. 
 + 
 + 
 +---  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. MCC0xf001, MNC: 0xff01 
 +SPGW GTP-U Initialized. 
 +SPGW S11 Initialized. 
 +SP-GW Initialized. 
 +Received S1 Setup Request. 
 +S1 Setup Request - eNB Name: srsenb01, eNB id: 0xZZZ 
 +S1 Setup Request - MCC:ZZZ, MNC:ZZ 
 +S1 Setup Request - TAC ZZZZ, B-PLMN 0xf110 
 +S1 Setup Request - Paging DRX v128 
 +Sending S1 Setup Response 
 +SCTP Association Shutdown. Association: 82 
 +Deleting eNB context. eNB Id: 0xZZZ 
 +... 
 +</code> 
 + 
 +Then use ''srsenb'' on the same machine to run the SDR part of network
  
-TODO: get ENB working 
  
 <code> <code>
 % srsenb  % srsenb 
-Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_soapy.so libsrsran_rf_zmq.so+$ ./srsenb/src/srsenb  
 +Active RF plugins: libsrsran_rf_uhd.so libsrsran_rf_soapy.so
 Inactive RF plugins:  Inactive RF plugins: 
 ---  Software Radio Systems LTE eNodeB  --- ---  Software Radio Systems LTE eNodeB  ---
  
-Couldn't open , trying [...]/.config/srsran/enb.conf +Couldn't open , trying /home/gnuradio/.config/srsran/enb.conf 
-Reading configuration file [...]/.config/srsran/enb.conf... +Reading configuration file /home/gnuradio/.config/srsran/enb.conf... 
-Couldn't open sib.conf, trying [...]/.config/srsran/sib.conf +Couldn't open sib.conf, trying /home/gnuradio/.config/srsran/sib.conf 
-Couldn't open rr.conf, trying [...]/.config/srsran/rr.conf +Couldn't open rr.conf, trying /home/gnuradio/.config/srsran/rr.conf 
-Couldn't open rb.conf, trying [...]/.config/srsran/rb.conf+Couldn't open rb.conf, trying /home/gnuradio/.config/srsran/rb.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. 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`: {} Failed to `mlockall`: {}
-Built in Release mode using commit fa56836b1 on branch master.+Built in Release mode using commit ec29b0c1f on branch master.
  
 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
 Opening 1 channels in RF device=default with args=default Opening 1 channels in RF device=default with args=default
-connect(): Connection refused +Supported RF device list: UHD soapy file
-Supported RF device list: UHD soapy zmq file+
 Trying to open RF device 'UHD' Trying to open RF device 'UHD'
-Failed to initiate S1 connection. Attempting reconnection in 10 seconds +[INFO] [UHD] linux; GNU C++ version 11.2.0Boost_107400UHD_4.1.0.5-3
-[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304Boost_107100UHD_3.15.0.0-2build5+
 [INFO] [LOGGING] Fastpath logging disabled at runtime. [INFO] [LOGGING] Fastpath logging disabled at runtime.
- +[ERROR] avahi_client_new() failedDaemon not running 
-RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.+[ERROR] avahi_client_new(failed: Daemon not running 
 +[WARNING] Unable to scan ip: -19
  
 Opening USRP channels=1, args:  Opening USRP channels=1, args: 
 [INFO] [UHD RF] RF UHD Generic instance constructed [INFO] [UHD RF] RF UHD Generic instance constructed
 +[ERROR] avahi_client_new() failed: Daemon not running
 +[WARNING] Unable to scan ip: -19
  
-RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy+[INFO] [UHDSoapyDevice] Make connection'LimeSDR-USB [USB 3.0] 9060B00492D13' 
- +[INFO] [UHDSoapyDevice] Reference clock 30.72 MHz 
- +[INFO] [UHDSoapyDevice] Device name: LimeSDR-USB 
-RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy+[INFO] [UHDSoapyDevice] Reference30.72 MHz 
- +[INFO] [UHDSoapyDevice] LMS7002M register cache: Disabled 
- +[INFO] [UHDSoapyDevice] RX LPF configured 
-RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0)Device or resource busy+[INFO] [UHDSoapyDevice] RX LPF configured 
- +[INFO] [UHDSoapyDevice] Filter calibrated. Filter order-4thfilter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active 
-[INFO] [UHDSoapyDevice] Using format CF32+[INFO] [UHDSoapyDevice] TX LPF configured 
-[INFO] [UHDSoapyDevice] Using format CF32.+[INFO] [UHDSoapyDevice] Filter calibratedFilter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active 
 +[INFO] [UHDSoapyDevice] TX LPF configured
 RF device 'UHD' successfully opened RF device 'UHD' successfully opened
-[...]/prog/Pluto-SDR_projects/docker-persistent/srsRAN_4G.new_with_GUI/lib/src/phy/rf/rf_uhd_imp.cc:315UHD unhandled event code 64+Warning: Failed to create thread with real-time priorityCreating it with normal priority: Operation not permitted 
 +Warning: Failed to create thread with real-time priorityCreating it with normal priorityOperation not permitted 
 +Warning: Failed to create thread with real-time priority. Creating it with normal priorityOperation 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
  
 ==== eNodeB started === ==== eNodeB started ===
 Type <t> to view trace Type <t> to view trace
-[INFO] [UHDSoapyDevice] Using format CF32+[INFO] [UHDSoapyDevice] RX LPF configured 
-[INFO] [UHDSoapyDevice] Using format CF32+[INFO] [UHDSoapyDevice] RX LPF configured 
-Setting frequency: DL=2680.0 Mhz, UL=2560.0 MHz for cc_idx=0 nof_prb=50 +[INFO] [UHDSoapyDevice] Filter calibrated. Filter order-4th, filter bandwidth set to 11.52 MHz.Real pole 1st order filter set to 2.5 MHzPreemphasis filter not active 
-[ERROR] [UHD RF] UHDSoapyRxStream::issue_stream_cmd() -5+[INFO] [UHDSoapyDevice] TX LPF configured 
 +[INFO] [UHDSoapyDevice] Filter calibratedFilter order-4th, filter bandwidth set to 11.52 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active 
 +[INFO] [UHDSoapyDevice] TX LPF configured 
 +Setting frequency: ... 
 +[INFO] [UHDSoapyDevice] Tx calibration finished 
 +[INFO] [UHDSoapyDevice] Rx calibration finished 
 +[INFO] [UHD RF] Tx while waiting for EOB, timed out... 64.2848 >64.2843. Starting new burst...
 </code> </code>
 +
 +TODO: signal drifted
  
 ===== Waterfall examples for UE (cellphones) and ENB (base stations) ===== ===== Waterfall examples for UE (cellphones) and ENB (base stations) =====
project/srsranda.txt · Last modified: 2024/05/07 23:07 by abyssal