Hapter, Perational, Ommands – Multi-Tech Systems CDMA Wireless Modem User Manual

Page 51: Enter pin +cpin

Advertising
background image

Chapter 7 - SIM Card Operational Commands

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

51

C

HAPTER

7

-

SIM

C

ARD

O

PERATIONAL

C

OMMANDS

This section details the commands that are available when a SIM card is present. These commands are
available only in RUIM software versions.
Note that the PIN codes used in this section are for example purposes only and do not reflect the actual PIN
codes programmed into the modem. Contact your service provider to obtain the actual PIN codes used by
your modem.

Enter PIN +CPIN

Description: This command is used to enter the ME (Mobile Equipment) passwords (CHV1 / CHV2 /

PUK1 / PUK2, etc.), that are required before any ME functionality can be used. CHV1/CHV2
must be 4 to 8 digits long, PUK1/PUK2 must be 8 digits long. The application is responsible
for checking the PIN after each reset or power on if the PIN was enabled.


Syntax:

Command syntax: AT+CPIN=<pin>

Command

Possible Responses

AT+CPIN=1234

OK
Note: PIN code is correct

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 validation
succeeds. CHV1 is then enabled if PUK1 is correct. The application therefore uses this
command:

Command

syntax:

AT+CPIN=<Puk>,<NewPin>

Command

Possible Responses

AT+CPIN=00000000,1234
Note: Enter PUK and new PIN

+CME ERROR: 16
Note: Incorrect PUK

AT+CPIN=12345678,1234
Note: Enter PUK and new PIN, 2nd attempt

OK
Note: PUK correct, new PIN stored

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

The possible responses are:

+CPIN: READY

ME is not pending for any password

+CPIN: UIM PIN

CHV1 is required

+CPIN: UIM PUK

PUK1 is required

+CPIN: UIM PIN2

CHV2 is required

+CPIN: UIM PUK2

PUK2 is required

+CPIN: PH-UIM PIN

UIM lock (phone-to-UIM) is required

+CPIN: PH-NET PIN

Network personalization is required

+CME ERROR: <err>

SIM failure (13) absent (10) etc.

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.

Advertising