Cpin2 – enter pin2 – Westermo GDW-11 User Manual

Page 52

Advertising
background image

52 Security commands

6615-2220

+CPIN2 – Enter PIN2

Description:

This specific command is used to validate the PIN2 code (CHV2), or to validate the
PUK2 code (UNBLOCK CHV2) and to define a new PIN2 code. Of course, the +CPIN
command allows PIN2 or PUK2 codes to be validated, but only when the last command
executed resulted in PIN2 authentication failure.

PIN2 length is between 4 and 8 digits, PUK2 length is 8 digits only.

Syntax:

AT+CPIN2=<pin2>

AT+CPIN2=<puk2>,<NewPin2>

After 3 unsuccessful attempts, PUK2 will then be required. PUK2 validation forces the
user to enter a new PIN2 code as a second parameter and this will be the new PIN2
code if PUK1 validation succeeds. The application therefore uses the “AT+CPIN2=<puk2
>,<NewPin2> “command syntax.

To find out which code must be entered (or not), the following query command can be
used:

AT+CPIN2?

Response Syntax:

+CPIN2: READY

No PIN2 is needed

+CPIN2: SIM PIN2

PIN2 is required

+CPIN2: SIM PUK2

PUK2 is required

+CME ERROR: <err>

Absent (10) etc...

Command example

Possible responses

Note

AT+CPIN2=1234

OK

Enter PIN2, code is correct

AT+CPIN2=5678 +CME

ERROR:

3

Enter PIN2, Operation not
allowed, PIN2 previously
entered

AT+CPIN2=00000000,1234 +CME

ERROR:

16

Enter PUK2 and new PIN2,
Incorrect code (PUK2)

AT+CPIN2=12345678,1234 OK

Enter PUK2 and new PIN2,
2nd attempt PUK2 correct,
new PIN2 stored

Advertising
This manual is related to the following products: