Specifications

Chapter 5 – Security Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 83
5.6 AT+CPWD Define and Change Password
Description: AT+CPWD allows to define a new password for a password protected <facility> lock function.
Each password is a string of digits, the length of which varies with the associated <facility>.
The test command returns a list of pairs which represent the available facilities and the
maximum length of the associated password. See AT commands AT+CLCK and AT^SLCK for
more information on the various lock features.
Specifically the command can be used to
change PIN1 or PIN2,
change the password supplied from your provider for the “call barring” supplementary
service,
set individual phone security passwords,
enter the unblocking key (Master Phone Code) to restore a disabled “PS” password.
To delete a password use the following syntax: at+cpwd=<facility>,<old password>
Syntax: Test Command: AT+CPWD=?
Responses: +CPWD : (list of supported (<facility>, <password length>)
OK
Write Command: AT+CPWD=<facility>, <old password>[, <new password>]
Responses: New password has been registered for the facility lock function.
OK
If parameter <old password> was not correct: +CME ERROR 16 (+CME
ERROR: incorrect password)
If the password for the selected <facility> has been invalidated due to too
many failed attempts: +CME ERROR ...
If error is related to ME functionality:
+CME ERROR: <err>
Parameters:
<facility> Phone security locks set by client or factory:
Primarily intended for the client to take safety precautions. Passwords “SC” (SIM PIN) and “P2”
(SIM PIN2) are usually predefined, but can be configured individually. The lock facility
password “PS” may also be factory set.
“SC“ SIM PIN. SIM requests password upon ME power-up and when this lock command is
issued.
If incorrectly entered three times, the SIM PUK is required to perform authentication.
Input of the SIM PUK password is possible only with AT command AT+CPIN or ATD.
For further details please refer to Section 5.1.1, What to do if PIN or password
authentication fails?.
<password length>: 4 to 8 digits.
“PS“ Phone locked to SIM card. ME requests password when other than current SIM card
is inserted.
“PS” lock is frequently referred to as “phone lock”, or “device lock”. Accordingly, the
password may be called “phone code” or “device code”. The “PS” password is not
associated with the PUK of the SIM card. It must be defined before the first use of
<facility> “PS” with AT+CLCK.
<password length>: 4 digits.
If incorrectly entered three times, the Master Phone Code is required to lift the lock.
This Unblocking procedure is performed with AT+CPWD using the following
parameters: <facility>=”PS”, <old password>=Master Phone Code (obtained from the
module manufacturer) and <new password>= the new phone code (“PS” password
for lock facility), if desired.
Remember that a successful PIN authentication is a prerequisite for use of AT
command AT+CPWD. If Pin authentication has not been completed, input of the
Master Phone code password is possible only with AT command AT+CPIN or ATD.
For further detail please refer to Section 5.1.1, What to do if PIN or password
authentication fails?
Once the Master Phone Code has been accepted, the mobile is operational and the
“PS” lock is no longer active. If needed it must be set once again with AT+CLCK.
“P2“ SIM PIN 2 is required for authentication with facility lock “FD” (cf. AT+CLCK).
If incorrectly entered three times, the SIM PUK 2 is required to perform
authentication.
Input of the SIM PUK 2 password is possible only with AT command AT+CPIN2 or
ATD. For further detail please refer to Section 5.1.1, What to do if PIN or password
authentication fails?.
<password length>: 4 to 8 digits.