Rainbow Electronics MG260 User Manual

Page 53

Advertising
background image

FLYFOT-MG260-MODULE

Page: 53 / 246

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.


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 personnalisation 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
AT+CPIN?
+CPIN: SIM PIN

AT+CPIN=1235
+CME ERROR: 16

AT+CPIN=1236
+CME ERROR: 16

AT+CPIN=1237
+CME ERROR: 16

AT+CPIN?
+CPIN: SIM PUK

AT+CPIN=99999999,5678
OK

AT+CPIN?
+CPIN: READY

Read the PIN status
The product requires SIM PIN

First attempt to enter a SIM PIN
Wrong PIN

Second attempt
Wrong PIN

Third attempt
Wrong PIN

Read PIN state
The product requires PUK

The PUK is entered, the new PIN shall be 5678
PUK validation is OK. New Pin is 5678

Read PIN state
The product is ready

Defined values :

<pin> Personal Identification Number.

Advertising