beautypg.com

Westermo GD-01 User Manual

Page 35

background image

35

6196-2220

Please note that in this case the mobile equipment does not end its response with the
OK string.The response +CME ERROR: 13 (SIM failure) is returned after 10 unsuccessful
PUK attempts.The SIM card is then out of order and must be replaced by a new one.

Example:

3 failed PIN validations + 1 successful PUK validation

Command Responses

Note

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 prod-
uct 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 dialling phonebook
(FDN), so if SIM PIN2 authentication has not been performed during the current session,
SIM PIN2 is required.

Command example

Possible responses

Note

AT+CPBS=”FD” OK

Choose

FDN

AT+CPBW=5,”01290917”,

Write in FDN at location

129,”Jacky”

+CME ERROR: 17

5, SIM PIN2 is required

AT+CPIN?

SIM PIN2

SIM PIN2 is required

AT+CPIN=5678

OK

Enter SIM PIN2

AT+CPBW=2,”01290917”,

Write in FDN at location

129,”Jacky”

OK

5, 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”.

B A C K