WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC
Friday 21 May 1999
WAVECOM confidential ©
40
Example: 3 failed PIN valid 1 successful PUK validation
AT+CPIN?
+CPIN: SIM PIN
Read the PIN status
The GSM module requires SIM PIN
AT+CPIN=1235
+CME ERROR: 16
First attempt to enter a SIM PIN
Bad PIN
AT+CPIN=1236
+CME ERROR: 16
Second attempt
Bad PIN
AT+CPIN=1237
+CME ERROR: 16
Third attempt
Bad PIN
AT+CPIN?
+CPIN: SIM PUK
Read PIN state
The GSM module requires PUK
AT+CPIN=99999999,5678
OK
The PUK is entered, the new PIN shall be 5678 PUK validation is OK.
New Pin is 5678
AT+CPIN?
+CPIN: READY
Read PIN state
GSM module is ready
If the user try to do something which requires PIN2 (CHV2) the GSM
module will refuse his action with a “+CME ERROR: 17” (SIM PIN2
required). Then the GSM module is waiting SIM PIN2 to be given.
Of course if SIM PIN2 is blocked , SIM PUK2 is required instead of SIM
PIN2.
For instance, the GSM module needs PIN2 to write in the fixed dialling
phonebook (FDN) , so if SIM PIN2 authentication has not been done during
the current cession the SIM PIN2 is required:
Application to GSM
AT+CPBS=”FD”
Choose FDN
GSM to application
OK
Application to GSM
AT+CPBW=5,"01290917",129,"Jacky"
write in FDN at location 5
GSM to application
+CME ERROR:17
SIM PIN2 is required
Application to GSM
AT+CPIN?
GSM to application
SIM PIN2
SIM PIN2 is required
Application to GSM
AT+CPIN=5678
Enter SIM PIN2
GSM to application
OK
Application to GSM
AT+CPBW=5,"01290917",129,"Jacky"
write in FDN at location 5
GSM to application
OK
Now writing in FDN is allowed
Please note that the GSM module ask only once PIN2 or PUK2, so if they
aren’t entered right, the next +CPIN? command will return “+CPIN:
READY”.
Remark
In the way Application to GSM, an "h" character shall be added before the
PIN value if cyphering mode (with D.E.S algorithm ) is on. See +EXPKEY
command.
Same remark for +CLCK and +CPWD commands.