Sim insertion and removal, Background initialization – Rainbow Electronics FARGO MAESTRO 100 (with TCP_IP) User Manual

Page 22

Advertising
background image


AT Commands Features

SIM Insertion and Removal

©Restricted

Page:

16 / 184

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

WM_DEV_OAT_UGD_049 - 001

VOLUME 1

August 23, 2007

2.5

SIM Insertion and 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:

• If the SIM detect pin indicates "absent", the response to AT+CPIN? is "+CME

ERROR: 10" (SIM not inserted).

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

• 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".

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

2.6

Background Initialization

After entering the PIN 1/CHV 1, 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 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:

• when trying to execute another AT command before the previous one is

completed (before response),

• when switching from ADN to FDN (or FDN to ADN) and trying to read the

relevant phonebook immediately,

• 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