![Ublox SARA-R4 Series Command Manual Download Page 136](http://html2.mh-extra.com/html/ublox/sara-r4-series/sara-r4-series_command-manual_3309881136.webp)
SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
13 Packet switched data services
Page 136 of 307
The parameters <lac>, <ci>, <AcT>, <rac> are provided only if available.
The read command provides the same information issued by the URC together with the current value of the
<n> parameter. The location information elements <lac>, <ci> and <AcT>, if available, are returned only when
<n>=2 and the MT is registered with the network.
When <n>=2, in UMTS RAT, unsolicited location information can be received if the network sends the
UTRAN INFORMATION MOBILITY message during dedicated connections. In contrast, in GSM RAT no
unsolicited location information is received during a CS connection.
If the GPRS MT also supports circuit mode services in GERAN/UTRAN and/or EPS services in E-UTRAN,
the
commands return the registration status and location information for those
services.
13.10.2 Syntax
Type
Syntax
Response
Example
Set
AT+CGREG=[<n>]
OK
AT+CGREG=1
OK
If <n>=0 or 1:
+CGREG: <n>,<stat>
OK
+CGREG: 0,4
OK
Read
AT+CGREG?
If <n>=2:
+CGREG: <n>,<stat>[,<lac>,<ci>[,
<AcT>,<rac>]]
OK
+CGREG: 2,1,"61EF","7D58A3",2,"14"
OK
Test
AT+CGREG=?
+CGREG: (list of supported <n>s)
OK
+CGREG: (0-2)
OK
If <n>=1:
+CGREG: <stat>
+CGREG: 1
URC
If <n>=2:
+CGREG: <stat>[,<lac>,<ci>[,<AcT>,
<rac>]]
+CGREG: 1,"4E54","44A5"
13.10.3 Defined values
Parameter
Type
Description
<n>
Number
•
0 (default value and factory-programmed value): network registration URC disabled
•
1: network registration URC enabled
•
2: network registration and location information URC enabled
<stat>
Number
•
0: not registered, the MT is not currently searching an operator to register to
•
1: registered, home network
•
2: not registered, but MT is currently searching a new operator to register to
•
3: registration denied
•
4: unknown (e.g. out of GERAN/UTRAN coverage)
•
5: registered, roaming
•
8: attached for emergency bearer services only (see 3GPP TS 24.008 [
] and 3GPP
TS 24.301 [
] that specify the condition when the MS is considered as attached
for emergency bearer services) (applicable only when <AcT> indicates 2,4,5,6)
<lac>
String
Two bytes location area in hexadecimal format; it is optionally provided in the URC
and in the response to the read command if <n>=2. The value FFFF means that the
current <lac> value is invalid.
<ci>
String
From 2 to 4 bytes cell ID in hexadecimal format; it is optionally provided in the URC
and in the response to the read command if <n>=2. The value FFFFFFFF means that
the current <ci> value is invalid.
<AcT>
Number
Indicates the radio access technology:
•
0: GSM
•
1: GSM COMPACT
•
2: UTRAN