Specifications

Chapter 5 – Security Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 81
1-255 Default 7. Combination of some of the above classes. For example, the default setting 7 represents the
sum of the integers 1, 2 and 4 (voice, data).
The value 255 covers all classes.
If parameter “class” is omitted, the default value 7 is used.
Notes:
The AT+CLCK command offers the full range of <class> parameters according to the GSM specifications.
However, when you attempt to use a service option which is not provisioned or not yet subscribed to, the setting
will not take effect regardless of the response returned.
The responses in these cases vary with the network (for example “OK”, “Operation not allowed”, “Operation not
supported” etc.). To make sure check the extended error response with AT+CEER and the lock status with
<mode>=2.
The command has been implemented with the full set of <class> parameters according to GSM 07.07. For actual
applicability of a desired Call barring service to a specific service or service group (a specific <class> value)
please consult table A.1 of GSM 02.04.
If an outgoing Data Call is rejected due to an active “call barring” supplementary service, the call will be
terminated with result code NO CARRIER.
Under the same conditions, an outgoing Voice call will be terminated with result code NO DIALTONE.
If an invalid <password> is entered several times in succession, a delay incremented after each failed attempt
will increase the time to wait before the input of the <password> is accepted. To avoid blocking the serial
interface the running AT+CLCK command is aborted after a short timeout and returns CME ERROR 100
(“unknown”). If then the AT+CLCK command is issued once again execution is denied with CME ERROR 256
(“Operation temporary not allowed”). For details regarding the delay see Section 5.1.1, What to do if PIN or
password authentication fails?.
If the user tries to set a lock although it is already active or, the other way round, tries to unlock an inactive lock,
the response will be OK, but the <password> will not be checked or verified.
In the airplane mode the write command version for the network related <facility> (AO, OI, OX, AI, IR, AB, AG
and AC) is not supported. For remaining facilities the command is fully functional then.
This command is PIN protected. This command is available after PIN2 authentication. See +CPIN2
In airplane mode, not all described functions are available. For example, the test or read command is usable, the
write or execute command may not. Furthermore, only some of the listed parameters can be changed in airplane
mode. A typical example is AT^SCFG that controls different features.
Examples:
Example 1:
Lock SIM card (<facility>= “SC”)
AT+CLCK=”SC”,1,”9999” The “SC” parameter enables or disables the SIM PIN authentication (PIN 1)
when you power up the GSM engine
OK SIM card locked. As a result, SIM PIN 1 must be entered to enable ME to
register to the GSM network.
AT+CLCK=”SC”,0,”9999” Unlocks SIM card.
OK When powered up, ME registers to the GSM network without requesting SIM
PIN1.
Note: Depending on the services offered by the provider, this feature is not
supported by all SIM card types. If so, the command returns ERROR when
you attempt to unlock the card.
To query the status of the SIM card lock:
AT+CLCK=”SC”,2 Query the status of SIM card lock.
+CLCK: 1 SIM card is locked. SIM PIN1 must be entered to enable ME to register on the
GSM network.
OK
Example 2: Phone Lock (<facility>=”PS”)
AT+CPIN? Make sure that PIN1 authentication is valid.
OK
To lock the ME to the currently inserted SIM card, first specify a password for <facility> “PS”:
AT+CPWD=”PS”,,”1234” If “PS” lock has not been set before: enter new password.
OK
Optionally, if “PS” password was defined before, change existing password:
AT+CPWD=”PS”,”1234”,”3333” To replace existing “PS” password: Enter old and new password.
OK
Then, activate the Phone Lock:
AT+CLCK=”PS”,1,”3333” Locks the mobile to the current SIM card.
OK