OnCell G2150I AT Command Set

Security Commands

AT+CPIN2=5678

Note: Enter PIN2

+CME ERROR: 3

Note: Operation not allowed, PIN2 previously entered

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 this command:

AT+CPIN2=<puk2>,<NewPin2>

Command

Possible responses

AT+CPIN2=00000000,1234

+CME ERROR: 16

Note: Enter PUK2 and new PIN2

Note: Incorrect Password (PUK2)

AT+CPIN2=12345678,1234

OK

Note: Enter PUK2 and new PIN2, 2nd attempt

Note: PUK2 correct, new PIN2 stored

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

The possible responses are:

+CPIN2: READY

+CPIN2: SIM PIN2

+CPIN2: SIM PUK2

+CME ERROR: <err>

No PIN2 is needed PIN2 is required PUK2 is required Absent (10) etc

Defined values:

<pin2> Personal Identification Number 2.

<puk2> Personal Unblocking Key 2 needed to change the PIN2. <Newpin2>

Note: PIN2 length is between 4 and 8 digits; PUK2 length is 8 digits only.

PIN Remaining Attempt Number: +CPINC

Description: This specific command is used to get the number of valid attempts for PIN1 (CHV1), PIN2 (CHV2), PUK1 (UNBLOCK CHV1), and PUK2 (UNBLOCK CHV2) identifiers.

Command syntax: AT+CPINC

Response syntax: +CPINC: <n1>,<n2>,<k1>,<k2>

Command

Possible responses

AT+CPINC

+CPINC: 2,3,10,10

Note: Get the number of attempts left

OK

 

Note: First CHV1 attempt was a failure

AT+CPINC?

+CPINC: 2,3,10,10

Note: Get current values

OK

 

Note: First attempt was a failure

AT+CPINC=?

OK

Note: Get possible values

 

Defined values:

<n1>, <n2> are the attempts left for PIN1, PIN2 (0 = blocked, 3 max) <k1>, <k2> are the attempts left for PUK1, PUK2 (0 = blocked, 10 max)

If the card is not present at the time of initialization, +CME ERROR: 10 will be sent.

6-4

Page 50
Image 50
Moxa Technologies G2150I manual PIN Remaining Attempt Number +CPINC, Command syntax AT+CPINC