Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for Network Services
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
79
8.3.2 Querying the Current Status of Network Registration
Read
command
AT+CREG?
Function
Queries the current status of network registration.
Response
z
In case of successful execution:
<CR><LF>+CREG:<n>,<stat>[,<lac>,<ci>]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<stat>: current status of network registration.
z
0: does not register. Currently, the ME does not search for a new operator to be
registered with.
z
1: registers with the local network.
z
2: does not register. The ME, however, is searching for a new operator to be
registered with.
z
3: Network registration is rejected.
z
4: unknown reason.
z
5: registers with the roaming network.
<lac>: location area code, which consists of two bytes in hexadecimal mode (for
example, “00C3” = 195 in decimal mode).
<ci>: cell information, which consists of two bytes in hexadecimal mode.
8.3.3 Setting the Status of Network Registration
Write
command
AT+CREG=[<n>]
Function
Queries the current status of network registration.
Response
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
In this section, AT+CREG= is equivalent to AT+CREG=0.