EG_GenPro2xe_1003_UG_005_UK
Page 29 / 63
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCO&GENER reserves the right to make any modifications.
Dct_427_00
5.6 Verification of the PIN code
The modem contains the EGM standard library (see the documents "EG_EGM_CL_xxx_yy" of ERCO &
GENER) 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:
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 ERCO & GENER.
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 ERCO &
GENER) 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 (code PUK) 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 hereunder.
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.