Security commands, Cpin – enter pin – Westermo GDW-11 User Manual

Page 49

Advertising
background image

Security commands 49

6615-2220

Security commands

+CPIN – Enter PIN

Description:

This command is used to enter the ME passwords (CHV1 / CHV2 / PUK1 / PUK2, etc.),
that are required before any ME functionality can be used. CHV1/CHV2 is between 4
and 8 digits long, PUK1/PUK2 is only 8 digits long. If the user application tries to make an
outgoing call before the SIM PIN code (CHV1) has been confirmed, then the product will
refuse the “ATD” command with a “+CME ERROR: 11” (SIM PIN required). The applica-
tion is responsible for checking the PIN after each reset or power on – if the PIN was
enabled.

Syntax:

AT+CPIN=<pin>

AT+CPIN=<puk>,<new pin>

After 3 unsuccessful attempts to enter the PIN (Personal Identification Number), the
PUK (Personal Unblocking Key) will be required. PUK validation forces the user to enter
a new PIN code as a second parameter and this will be the new PIN code if PUK valida-
tion succeeds. CHV1 is then enabled if PUK1 is correct.

The application therefore uses this command:

AT+CPIN=<Puk>,<NewPin>

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

AT+CPIN?

Response Syntax:

+CPIN: READY

ME is not pending for any password

+CPIN: SIM PIN

CHV1 is required

+CPIN: SIM PUK

PUK1 is required

+CPIN: SIM PIN2 CHV2 is required

+CPIN: SIM PUK2 PUK2 is required

+CPIN: PH-SIM PIN SIM lock (phone-to-SIM) is required

+CPIN: PH-NET PIN

Network personnalisation is required

+CME ERROR: <err>

SIM failure (13) absent (10) etc.

NOTE:

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.

Advertising
This manual is related to the following products: