Menu

Adding subscribers to the database

dchard

Previously we created our own USIM cards and we know the Ki key and the IMSI for these cards.

Now we need to add them to the subscriber registry.

Start LTE_fdd_enodeb and log in to the control interface:

telnet 127.0.0.1 30000

These are the commands for adding, deleting and listing subscribers:

add_user imsi=<imsi> imei=<imei> k=<k> - Adds a user to the HSS (<imsi> and <imei> are 15 decimal digits, and <k> is 32 hex digits)
del_user imsi=<imsi>                   - Deletes a user from the HSS
print_users                            - Prints all the users in the HSS

To add a subscriber use the following command [k is the Ki key!]:

add_user imsi=901550000123456 imei=864217022123456 k=D360C2591DE1BF61A11014C33D012246

The terminal will respond with an "ok" if there were no mistypes in the syntax.

You can list the already added subscribers with:

print_users

You can delete the previously added subscriber with:

 del_user imsi=901550000123456

Note that the first 3 digits of IMSI is the MCC (or Mobile Country Code) and the two digits after the MCC is the MNC (or Mobile Network Code). In the above example the MCC is 901 and the MNC is 55. It is not necessary but helps the Mobile Station a lot to set the MCC/MNC of your LTE network as your programmed SIM cards dictates. You can change the IMSI value during the SIM card programming stage also to match the specification of a test network: MCC=001 and MNC=01.

You should NEVER use the MCC/MNC configuration of a commercial provider!


Related

Wiki: Home
Wiki: Programming you own USIM card