... | ... | @@ -629,8 +629,48 @@ OPERATOR_key = "1006020f0a478bf6b699f15c062e42b3", OP key, Must be consistent wi |
|
|
You may other combinations as you like.
|
|
|
|
|
|
### 2.1 USIM Card Programming
|
|
|
Go to https://gitlab.eurecom.fr/oai/openairinterface5g/wikis/SimCardConfig to see several ways
|
|
|
to programm the SIM card.
|
|
|
We will programm USIM cards with Milenage support using open-cells.com reader/writer, however you are free to use the one you consider the best.
|
|
|
|
|
|
TBD (description USIM programming device + procedure + pics)
|
|
|
## 1. Writing usim
|
|
|
First time you need to compile the Open Cells program. You can download it from http://open-cells.com/d5138782a8739209ec5760865b1e53b0/uicc-v1.4.tgz.
|
|
|
|
|
|
```shell
|
|
|
make
|
|
|
```
|
|
|
|
|
|
Then, you need to insert the USIM into the reader/writer as shown in the next Figure.
|
|
|
![20180721_104539](/uploads/a4a44c15363f525d5256132749c68645/20180721_104539.jpg)
|
|
|
|
|
|
Use this line to program your SIM card.
|
|
|
|
|
|
```shell
|
|
|
sudo ./program_uicc --adm 12345678 --opc e734f8734007d6c5ce7a0508809e7e9c --key 8baf473f2f8fd09487cccbd7097c6862 --spn openairinterface --authenticate
|
|
|
```
|
|
|
|
|
|
Some program_uicc options are:
|
|
|
|
|
|
* --adm: The ADM code of the card (the master password)
|
|
|
* --opc: OPc field: OPerator code: must be also set in HSS (exlusive with OP)
|
|
|
* --key: The authentication key (called Ki in 3G/4G, Kc in GSM), must be the same in HSS
|
|
|
* --spn: Service provider name: the name that the UE will show as 'network'
|
|
|
* --authenticate: Test the milenage authentication and discover the current sequence number
|
|
|
|
|
|
Your output is:
|
|
|
|
|
|
```shell
|
|
|
Setting new values
|
|
|
Read new values in UICC
|
|
|
ICCID: 89860061100000000002
|
|
|
WARNING: iccid luhn encoding of last digit not done
|
|
|
USIM IMSI: 208930100001102
|
|
|
USIM MSISDN: 00000002
|
|
|
USIM Service Provider Name: openairinterface
|
|
|
Succeeded to authentify with SQN: 96
|
|
|
set HSS SQN value as: 128
|
|
|
```
|
|
|
Finally, do not forget to change the SQN number into the oai_db.
|
|
|
|
|
|
### 2.2 UE Configuration
|
|
|
|
... | ... | |