nrf9160

Set command

The set command locks, unlocks, or interrogates a facility.

Syntax:

+CLCK=<fac>,<mode>[,<passwd>] 
+CME ERROR code
528 – Not allowed when power off warning is active.

The set command parameters and their defined values are the following:

<fac>
SC – SIM
PN – Network personalization v1.2.x v1.3.x
PU – Network subset personalization v1.2.x v1.3.x
PP – Service provider personalization v1.2.x v1.3.x
PC – Corporate personalization v1.2.x v1.3.x
PS – Universal Subscriber Identity Module (USIM) personalization v1.2.x v1.3.x
<mode>
0 – Unlock
1 – Lock
2 – Query status v1.2.x v1.3.x
<passwd>
String. Password for the facility.
Note: SC is supported in modes 0 and 1. PN, PU, PP, PC, and PS are supported in modes 0 and 2.

The following command example disables Personal Identification Number (PIN) query:

AT+CLCK="SC",0,"<passwd>"
OK

The following command example checks network personalization status when it is not active:

AT+CLCK=”PN”,2
+CLCK: 0
OK