Rainbow Electronics MG260 User Manual

Page 13

Advertising
background image

FLYFOT-MG260-MODULE

Page: 13 / 246

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

3 General behaviors

3.1 SIM Insertion, SIM Removal

SIM card Insertion and Removal procedures are supported. There are software functions relying on
positive reading of the hardware SIM detect pin. This pin state (open/closed) is permanently
monitored.
When the SIM detect pin indicates that a card is present in the SIM connector, the product tries to set
up a logical SIM session. The logical SIM session will be set up or not depending on whether the
detected card is a SIM Card or not.
The AT+CPIN? command delivers the following responses:

z

If the SIM detect pin indicates “absent”, the response to AT+CPIN? is “+CME ERROR 10”
(SIM not inserted).

z

If the SIM detect pin indicates “present”, and the inserted card is a SIM card, the response to
AT+CPIN? is “+CPIN: xxx” depending on SIM PIN state.

z

If the SIM detect pin indicates “present”, and the inserted card is not a SIM card, the response
to AT+CPIN? is “+CME ERROR 10”.

z

These last two states are not provided immediately due to background initialization. Between
the hardware SIM detect pin indicating “present” and the final results, the AT+CPIN? sends
“+CME ERROR: 515” (Please wait, init in progress).


When the SIM detect pin indicates card absence, and if a SIM Card was previously inserted, an IMSI
detach procedure is performed, all user data is removed from the product (Phonebooks, SMS etc.).
The product then switches to emergency mode.

3.2 Background initialization

After entering the PIN (Personal Identification Number), some SIM user data files are loaded into
the product (phonebooks, SMS status, etc.). Please be aware that it might take some time to read a
large phonebook.
The AT+CPIN? command response occurs after the PIN checking. After this response user data is
loaded in background. This means that some data may not be available just when PIN entry is
confirmed by ’OK’. The reading of phonebooks will then be refused by “+CME ERROR: 515” or
“+CMS ERROR: 515” meaning, “Please wait, service is not available yet, init in progress”.
This type of answer may be sent by the product at several points:

z

when trying to execute another AT command before the previous one is completed (before
response),

z

when asking for +CPIN? status immediately after SIM insertion and before the product has
determined if the inserted card is a valid SIM card.

Advertising