beautypg.com

Multi-Tech Systems MMCModem GPRS (MTMMC-G) User Manual

Page 41

background image

Chapter 7 – Security Commands

Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)

41


Example:
Three failed PIN validations + one successful PUK validation

AT+CPIN?
+CPIN: SIM PIN

Read the PIN status
The product requires SIM PIN

AT+CPIN=1235
+CME ERROR: 16

First attempt to enter a SIM PIN
Wrong PIN

AT+CPIN=1236
+CME ERROR: 16

Second attempt
Wrong PIN

AT+CPIN=1237
+CME ERROR: 16

Third attempt
Wrong PIN

AT+CPIN?
+CPIN: SIM PUK

Read PIN state
The product 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
The product is ready

If the user tries to do something which requires PIN2 (CHV2), the product will refuse the action with a “+CME
ERROR: 17” (SIM PIN2 required). The product then waits for SIM PIN2 to be given.

Of course, if SIM PIN2 is blocked, SIM PUK2 is required instead of SIM PIN2.

For example, the product needs PIN2 to write in the fixed dialing phonebook (FDN) , so if SIM PIN2 authentication
has not been performed during the current session, SIM PIN2 is required

Command

Possible responses

AT+CPBS=”FD”
Note: Choose FDN

OK

AT+CPBW=5,”01290917”,129,”Jacky”
Note: Write in FDN at location 5

+CME ERROR: 17
Note: SIM PIN2 is required

AT+CPIN? SIM

PIN2

Note: SIM PIN2 is required

AT+CPIN=5678
Note: Enter SIM PIN2

OK

AT+CPBW=2,”01290917”,129,”Jacky”
Note: Write in FDN at location 5

OK
Note: Now writing in FDN is allowed

Please note that the product only requests PIN2 or PUK2 once. Therefore, if they are not entered properly, the next
+CPIN? command will return “+CPIN: READY”.

This manual is related to the following products: