Specifications
Chapter 4 – Serial Interface Control Commands
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371B) 70
Example 4: To specify a new “PS” lock password
To specify a new “PS” lock password, after the old password was disabled (e.g., after three failed attempts to
change the “PS” password): use the master phone code.
CAUTION: THIS TEST SHOULD BE PERFORMED ONLY IF THE CORRECT MASTER PHONE CODE FOR
THE INDIVIDUAL ME USED IS DEFINITELY AVAILABLE! Otherwise, the module used will be rendered useless
until the correct master phone code is entered:
AT+CPWD=”PS”,”12345678”,”1111” where 12345678 is the Master Phone Code and 1111 is the new
password. You may also use <new password> to restore the
former disabled password.
OK
Alternatively, without giving a new password:
AT+CPWD=”PS”,”12345678” (where 12345678 is the Master Phone Code). Deactivates the
present phone lock.
OK
5.7 AT^SPWD Change Password
Description: The AT^SPWD command is, in every respect, identical with AT+CPWD, except that the command
syntax and response prefix is “^SPWD” instead of “+CPWD”. For further description please refer to
AT+CPWD. See also AT commands AT+CLCK and AT^SLCK for more information on the various
lock features.
The write AT^SPWD command 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.
Use this command when you want to change the passwords defined for the “facility lock” functions
available from AT+CLCK. 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.
See also AT Commands AT+CLCK and AT^SLCK for more information on the vaious lock features.
Test Command Syntax: AT^SPWD=?
Response: ^SPWD : list of supported (<facility>, <password length>)
OK
Write Command Syntax: AT^SPWD=<facility>[,<old password>][, <new password>]
Response: 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 ...
When trying to set a “CM” password even though another type of factory set SIM lock is
already active: +CME ERROR: Operation not supported.
If error is related to ME functionality: +CME ERROR
Note: When changing the PIN2 (<facility>=”P2”), it is recommended to check the new state of
PIN2 using the AT+CPIN2 command.