The SIM cards used in our infrastructure are mostly programmable cards developed by Open-Cells.
SIM cards interface is a standard one: raw dialog over a serial interface. These readers are seen as a standard bidirectional serial link over USB in Linux and windows. Any other raw serial interface UICC to USB would be compatible.
The cards are encoded and programmed to use PLMN (MNC: 208 and MCC: 92) using UICC/SIM programing tool from Open Cells open-cells
Reading Existing value in the SIM card
astro@Precision-3640-Tower:/uicc-v2.4# ./program_uicc
Existing values in USIM
ICCID: 89860061100000000006
WARNING: iccid luhn encoding of last digit not done
USIM IMSI: 208920100001106
USIM MSISDN: 00000006
USIM Service Provider Name: OpenCells06
Example of writing into the SIM card the follwing Information:
SIM card parameter | Value |
---|---|
adm | 12345678 |
IMSI | 208920100001101 |
ISDN | 00000001 |
ACC | 0001 |
KEY | 6874736969202073796d4b2079650a73 |
OPC | 504f20634f6320504f50206363500a4f |
SPN | SnTLux |
Run the following command:
astro@Precision-3640-Tower:/uicc-v2.4# ./program_uicc --adm 12345678 --imsi 208920100001101 --isdn 00000001 --acc 0001 --key 6874736969202073796d4b2079650a73 --opc 504f20634f6320504f50206363500a4f -spn "SnTLux" --authenticate --noreadafter
This gives the following results:
Existing values in USIM
ICCID: 89860061100000000006
WARNING: iccid luhn encoding of last digit not done
USIM IMSI: 208920100001101
USIM MSISDN: 00000001
USIM Service Provider Name: OpenCells01
Setting new values
Succeeded to authentify with SQN: 9984
set HSS SQN value as: 10016
info
The parameters referenced here are referring to France's MCC. However, this should be designed carfully according to the PLMN code (MCC and MNC) of the Base-Station and to avoid IMSI collision. see the mobile country code section on Wikipidia.
Table below provides a partial information about the SNT SIM Cards.
SIM# | PLMN | ID | Ki | OP | SQN | SPN | vendor |
---|---|---|---|---|---|---|---|
0 | 27072 | 0100001101 | 6874736969202073796d4b2079650a73 | 504f20634f6320504f50206363500a4f | 000000000021 | SNT | OpenCells |
1 | 20892 | 0000000001 | 6874736969202073796d4b2079650a74 | 504f20634f6320504f50206363500a4f | 000000000021 | SNT | OpenCells |
2 | 20892 | 0000000002 | 6874736969202073796d4b2079650a73 | 504f20634f6320504f50206363500a44 | 000000000020 | SNT | OpenCells |
3 | 27001 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | POST | POST |
4 | 27001 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | POST | POST |
5 | 27077 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | Proximus | Proximus |
6 | 27077 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | Proximus | Proximus |
info
The PLMN and IMSIs will be updated to match Luxembourg'sMCC
.