EG_GenLoc41e_1055_UG_003_UK
Page 29 / 71
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCOGENER reserves the right to make any modifications.
Dct_427_02
5.7 Verification of the modem registration on the GSM network
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of
ERCOGENER); in this case:
1. Ensure that a valid SIM card has been inserted in the SIM card reader of the modem.
2. Using a communications application like HyperTerminal, enter the following AT commands:
a.
AT+CPIN="xxxx"
to enter the PIN code. The user has only 3 attempts to enter the PIN code.
After the third attempt, only a second code (PUK code) supplied by the operator, will allow you
to chose a new PIN code.
b.
AT+CREG?
to check the registration status on the network. The response will be of the
following format:
+CREG : <mode>, <stat>
with:
<Mode>
= configuration of the registration message not solicited,
<Stat>
= registration status.
3. Check the registration status according to the value returned in the table below.
If the modem is not registered: check the connection between the modem and the antenna or the reception
level of the signal (cf. paragraph 5.5).
For more information about the AT commands, see the document "EG_EGM_CL_xxx_yy" of ERCOGENER.
5.8 Reading a current position given by the GPS
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of
ERCOGENER); in this case, the reading of a GPS position can be done with the command
AT+GPSPOS
.
This command allows to get the information received of the current position. After powering on the modem,
an acquisition time is necessary (around 45 seconds).
Send
AT+GPSPWR=1
starting of the GSM module
Wait for the flashing of the green led verte and
AT+GPSPOS
Command
Response
Interpretation
AT+CREG?
+CREG : 0,0
The modem is not recognized by the
network
+CREG : 0,2
or
0,3
The modem is searching for a network
operator.
+CREG : 0,1
The modem is attached in GSM to the
local operator.
+CREG : 0,5
The modem is attached in GSM to the
roaming operator.