50
8400 GPRS Cradle
Reference Manual
AT+CPIN
Read Command
Response
AT+CPIN?<CR> <CR><LF>+CPIN:READY<CR><LF>
<CR><LF>+CPIN:SIM PIN<CR><LF>
<CR><LF>+CPIN:SIM PUK<CR><LF>
Write Command
Response
AT+CPIN =[PIN]<CR>
AT+CPIN =[PUK],[New_PIN]<CR>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT+CPIN?
+CPIN: READY
AT+CPIN=0000
ERROR
AT+CPIN?
+CPIN: SIM PIN
AT+CPIN=0000
OK
AT+CPIN?
+CPIN: SIM PUK
AT+CPIN=12345678,1111
OK
PIN code has already been entered
successfully, or the PIN authentication is
disabled.
PIN code is required.
Enter PIN code “0000”.
PUK code is required.
Remarks
The Read command is to get the information about whether PIN or PUK code is required.
The Write command is to set the PIN code for authentication.
[PIN] is a string for the PIN code, [New_PIN] is a string for the new PIN code, and [PUK] is a
string for the PUK code.
PIN (Personal Identity Number) is a 4~8 digit access code which can be used to secure your
SIM card from use. If the wrong PIN is entered in more than three times, the SIM card will be
locked.
PUK (Personal Unblocking Key) is an 8-digit code used to unlock the PIN code if your SIM card
is blocked. Contact your service provider for PUK. If the wrong PUK is entered ten times in a
row, the device will become permanently blocked and unrecoverable, requiring a new SIM
card.
See Also
AT+CLCK=SC, AT+CPWD=SC