EG_GenLoc54e_1040_UG_002_UK
Page 40 / 86
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.6 Verification of the PIN code
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of
ERCOGENER); in this case, the PIN code is essential in order to make a call or to accept a response
coming from the GSM network. This code is held in the SIM card and can be modified by the user.
To check that the PIN code has been entered, use a communication software like Hyperterminal, and enter
the command
AT+CPIN?
The table below shows the main responses given by the modem:
Table 16 : Verification of the PIN code
Command
Response
Interpretation
AT+CPIN?
+CPIN : ERROR
The SIM card is absent or not
recognized
+CPIN : READY
The PIN code is correct
+CPIN : SIM PIN
The PIN code is wrong or not entered
yet
+CPIN : SIM PUK
The PUK code is required
For more information about AT commands, see the document "EG_EGM_CL_xxx_yy" of ERCOGENER.
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. Make sure that a valid SIM card is 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 (code PUK) supplied by the operator, will allow you to choose
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.
Table 17 : Verification of modem registration on GSM network
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.