EG_GenPro25e_1055_UG_002_UK
Page 48 / 58
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCOGENER reserves the right to make any modification.
Dct_427_02
5.6 Verification of the PIN code
The PIN code is necessary 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 communication software like HyperTerminal, and enter
the command
AT+CPIN?
The table below shows the main responses given by the modem:
Table 43 : Verification of 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 the AT commands, see the document "u-blox_AT_Commands_Manual_xxx.pdf"
5.7 Verification of the modem registration on GSM network
1. Make sure that a valid SIM card is inserted in the SIM card reader of the modem.
2. Use communication software like HyperTerminal, and 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 44 : 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
ou
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.
If the modem is not registered check:
- the connection between the modem and the antenna
- the reception level of the signal (cf. § 5.5 Checking the quality of the GSM reception
For more information about the AT commands, see the document "u-blox_AT_Commands_Manual_xxx.pdf"