Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Security Commands
6-2
Enter PIN: +CPIN
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 application is responsible for checking the PIN after each reset or power on if the
PIN was enabled.
Command syntax: AT+CPIN=<pin>
Command Possible responses
AT+CPIN=1234
Note: Enter PIN
OK
Note: PIN code is correct
AT+CPIN=5678
Note: Enter PIN
+CME ERROR: 3
Note: Operation not allowed, PIN previously entered
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:
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
+CPIN: SIM PIN
+CPIN: SIM PUK
+CPIN: SIM PIN2
+CPIN: SIM PUK2
+CPIN: PH-SIM PIN
+CPIN: PH-NET PIN
+CME ERROR: <err>
ME is not pending for any password
CHV1 is required
PUK1 is required
CHV2 is required
PUK2 is required
SIM lock (phone-to-SIM) is required
Network personalization is required
SIM failure (13) absent (10) etc
Please 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.
Example: 3 failed PIN validations + 1 successful PUK validation