N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
24
2.17 Modifying the Password of the PIN: +CPWD
Description
To modify the password of the lock function of the module
Format
AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>
AT+CPWD=?<CR>
Parameter
<fac>: A pair of quotation marks is a must for the value.
"P2":SIM PIN2
"SC": SIM card
<oldpwd>: Old password or code, string type. A pair of quotation marks is a must
for the value.
<newpwd>: New password or code, string type. A pair of quotation marks is a must
for the value.
Return Value
<CR><LF>+CPWD: list of supported (<fac>,<pwdlength>)s
<CR><LF>+CME ERROR: <err><CR><LF>
Example
AT+CPWD=?
+CPWD: ("SC",8),("P2",8)
OK
Query the service range of the PIN
password allowed by the module.
AT+CPWD="SC","1234","0000"
OK
Modify the PIN code of the current SIM
card. "1234" is the old PIN code and
"0000" is the new PIN code.
AT+CPWD=SC,1234,0000
ERROR
The command format is incorrect. A pair of
quotation marks ("") is required for each
parameter.
Remark
To modify the PIN code and to lock the SIM card (running
AT+CLCK="SC",1,"1234").