From 22863ef6e1b3290fb1e19b5580fcff1775b5c005 Mon Sep 17 00:00:00 2001
From: Carlos Antonio De Lima Filho <carlos.lima.106@ufrn.edu.br>
Date: Wed, 27 Nov 2024 18:03:07 +0000
Subject: [PATCH] Update README.md

---
 .../README.md                                 | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/openairinterface5g/openairinterface-install-scripts/README.md b/openairinterface5g/openairinterface-install-scripts/README.md
index e1cae588..c4a39ae8 100644
--- a/openairinterface5g/openairinterface-install-scripts/README.md
+++ b/openairinterface5g/openairinterface-install-scripts/README.md
@@ -362,6 +362,46 @@ The UE parameters (figure below) must be equal to the slice 1 configuration file
 
 > cp /home/$your user$/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf /home/$your user$/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue2.conf
 
+**Step 12:** Configure the IMSI, Permanent Key and OPC
+
+This part you will configure the UE parameters. The UE parameters file is /home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue2.conf. The first three lines of the file are composed by the IMSI, Permanent Key and OPC, as shown in figure below. You will configure these parameters. 
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/ue_parameters.png) 
+
+You need to check in the docker-compose file (/home/dco1020/oai-cn5g-fed/docker-compose/database/oai_db2.sql) which SQL file the core is using. See figure below. 
+
+Important: The IMSI must be different between the EUs !
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/db_file.png)  
+
+Verify/change the parameters in UE file (/home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf) according to the SQL file illustrated in figure below. The parameters are:
+ - "ueid" refers to "imsi"
+ - "encPermanentKey" refers to "key"
+ - "encOpcKey" refers to "opc
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/UE_config_03.png) 
+
+To open UE file, type:
+
+gedit /home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf
+
+To open Docker Composer file, type:
+
+gedit /home/dco1020/oai-cn5g-fed/docker-compose/docker-compose-slicing-basic-nrf.yaml
+
+To see sqlFile, type in a terninal.
+
+gedit /home/dco1020/oai-cn5g-fed/docker-compose/database/oai_db2.sql
+
+Or use a SQLLite database visualizer like DB Browser (to install: sudo apt install sqlitebrowser -y).
+
+The last three lines of the file are composed of DNN (Data Network Name), N-SSAI SST (Network Slice Selection Assistance Information Slice/Service Type), N-SSAI SD (Network Slice Selection Assistance Information Slice/Service Type). To configure these parameters you will explore the configuration files for each slice, in this case here, we are going to configure the UE for the slice 1 (/home/dco1020/oai-cn5g-fed/docker-compose/conf/slicing_slice1_config.yaml), shown in figure below.
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/slice1_configuration.png)  
+
+The UE parameters (figure below) must be equal to the slice 1 configuration file parameters in the template, as illustrated in the figure below.
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/ue_parameters_p2.png)  
 ## Scenario deployment
 
 ![ALT](/openairinterface5g/openairinterface-conf/fig/slice_deployment.png)  
-- 
GitLab