Multi-Tech Systems GPRS (MTMMC-G) Benutzerhandbuch

Seite von 203
Chapter 15 – GPRS Commands  
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 
161 
 
GPRS Network Registration Status   +CGREG 
Description: 
The set command controls the presentation of an unsolicited result code +CGREG: <stat> when <n>=1 
and there is a change in the modem's GPRS network registration status, or code +CGREG: 
<stat>[,<lac>,<ci>] when <n>=2 and there is a change of the network cell. 
 
The read command returns the status of result code presentation and an integer <stat> which shows 
whether the network has currently indicated the registration of the modem. Location information 
elements <lac> and <ci> are returned only when <n>=2 and modem is registered in the network. 
Values: <n> 
0 
Disable network registration unsolicited result code 
1 
Enable network registration unsolicited result code +CGREG: <stat> 
2   Enable network registration and location information unsolicited result code +CGREG: 
<stat>[,<lac>,<ci>] 
<stat> 
0 
Not registered; the modem is not currently searching a new operator to which to register 
1 
Registered, home network 
2 
Not registered, but modem is currently searching a new operator to which to register 
3 Registration 
denied 
4 Unknown 
5 Registered, 
roaming 
<lac> 
String type; two byte location area code in hexadecimal format 
<ci> 
String type; two byte cell ID in hexadecimal format 
Syntax: Command 
Syntax: 
AT+CGREG 
Command 
Possible response(s)
AT+CGREG=[<n>] 
 +CGREG: stat>[,<lac>,<ci>] 
OK 
AT+CGREG? +CGREG: 
<n>,<stat>[,<lac>,<ci>] 
OK 
Note: +CME ERROR: <err> 
AT+CGREG=? 
+CGREG: (list of supported <n>s) 
OK