Skip to content

5g-ucl-idrbt/oai-5gsim-programing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

oai-5gsim-programing

Configuring the SIM Card

When using a 5G wireless modem module or a COTS handset, a SIM card will be required. If a USRP is being used as the UE, running the OAI UE softmodem, then a SIM card is not required.

The SIM card used in this reference architecture is provided by Open-Cells, and is shown below. Note that the ADM code is printed directly on the SIM card itself.

Insert the nano SIM card into the SIM card reder/writer, and plug it into the USB slot on the UE computer.

To read and program the SIM card, we use the program program_uicc from Open-Cells (https://open-cells.com/index.php/uiccsim-programing/)

We first read the existing data on the SIM by running the command below.

   sudo ./program_uicc --adm 1

quectel-ue-program uicc output for

We then write the key and the OPC in the UICC file in the SIM card. The ADM value enables this. Run the command below to perform this operation, where ADM_VALUE_FROM_SIM is the ADM value printed directly on the SIM card itself.

sudo ./program_uicc --adm 0c008521 --imsi 001010000000037 --isdn 00000037 --key 6874736969202073796d4b2079650a73 --opc 504f20634f6320504f50206363500a4f -spn "idrbt" --authenticate --noreadafter 

sudo ./program_uicc --adm 0c008520 --imsi 001010000000036 --isdn 00000036 --key 6874736969202073796d4b2079650a73 --opc 504f20634f6320504f50206363500a4f -spn "idrbt" --authenticate --noreadafter 


sim program

Basic format to write a sim

   sudo ./program_uicc --adm <ADM_VALUE_FROM_SIM> --key <KEY_VALUE> --opc <OPC_VALUE> --authenticate --noreadafter 

Ensure that the values being programmed into the SIM card match the corresponding values entered in the SQL database on the machine.

SQL file in the 5G core.

look for the sqldb file which is being used by the core. you will find the .sql db file in this path

OAI-5G-core/docker-compose/database

we can find which .sql file our deployment is using over here sqldb edit the .sql file according to the mnc and mcc values ,here we are using 001 and 01. Look at the refrence .sql file provided with this repo in the lines 160 and 160 we can see that we are having the entires for the current ueids we have to add corresponding entries at the lines 320 and 321

AMF LOGS (sims connected to the 5G core)

sim connected

Reference links

https://kb.ettus.com/OAI_Reference_Architecture_for_5G_and_6G_Research_with_USRP https://open-cells.com/index.php/uiccsim-programing/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published