Rainbow Electronics MG260 User Manual

Page 125

Advertising
background image

FLYFOT-MG260-MODULE

Page: 125 / 246

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.

z

Other values are reserved and will result in an ERROR response to the execution command.

<cid>: a numeric parameter which specifies a particular PDP context.

Before the activation of the context, the MT has to attached himself to the GPRS network if
necessary.

13.4 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 MT'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 MT. Location information elements
<lac> and <ci> are returned only when <n>=2 and MT is registered in the network.

Syntax

Command

Possible response(s)

AT+CGREG=<n>
Note: set gprs mode

OK
Note: succeed

AT+CGREG?

Note: get gprs state

+CGREG: <n>,<stat>[,<lac>,<ci>]
OK
Note: succeed

AT+CGREG=?

+CGREG: (0,1,2)
OK
Note: get parameter range

AT+CGREG +CME

ERROR:

3

Note: not support

Defined values

<n>:

z

0 : disable network registration unsolicited result code

z

1 : enable network registration unsolicited result code +CGREG: <stat>

z

2 : enable network registration and location information unsolicited result code +CGREG:
<stat>[,<lac>,<ci>]

<stat>:

z

0 : not registered, ME is not currently searching a new operator to register to

z

1 : registered, home network

Advertising