OnCell G2150I AT Command Set

Security Commands

 

 

 

 

AT+CPIN?

Read the PIN status

 

+CPIN: SIM PIN

The product requires SIM PIN

 

AT+CPIN=1235

First attempt to enter a SIM PIN

 

+CME ERROR: 16

Wrong PIN

 

AT+CPIN=1236

Second attempt

 

+CME ERROR: 16

Wrong PIN

 

AT+CPIN=1237

Third attempt

 

+CME ERROR: 16

Wrong PIN

 

AT+CPIN?

Read PIN state

 

+CPIN: SIM PUK

The product requires PUK

 

AT+CPIN=99999999,5678

The PUK is entered, the new PIN shall be 5678 PUK

 

OK

validation is OK. New Pin is 5678

 

AT+CPIN?

Read PIN state

 

+CPIN: READY

The product is ready

 

 

 

If the user tries to do something that 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 dialing phonebook (FDN), so if SIM PIN2 authentication has not been performed during the current session, SIM PIN2 is required.

Command

Possible responses

AT+CPBS=“FD”

OK

Note: Choose FDN

 

AT+CPBW=5,”01290917”,129,”Jacky”

+CME ERROR: 17

Note: Write in FDN at location 5

Note: SIM PIN2 is required

AT+CPIN?

+CPIN: SIM PIN2

 

Note: SIM PIN2 is required

AT+CPIN=5678

OK

Note: Enter SIM PIN2

 

AT+CPBW=2,”01290917”,129,”Jacky”

OK

Note: Write in FDN at location 5

Note: 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”.

Defined values:

<pin> Personal Identification Number. 4-digit number.

<puk> Personal Unblocking Key needed to change the PIN. 8-digit number.

Enter PIN2: +CPIN2

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 PIN 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.

Command syntax:

AT+CPIN2=<pin2>

 

 

 

Command

 

Possible responses

AT+CPIN2=1234

 

OK

Note: Enter PIN2

 

Note: PIN2 code is correct

6-3

Page 49
Image 49
Moxa Technologies G2150I manual Enter PIN2 +CPIN2