beautypg.com

Rainbow Electronics MG260 User Manual

Page 125

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.

: 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: when =1
and there is a change in the MT's GPRS network registration status, or code +CGREG: [,,]
when =2 and there is a change of the network cell.
The read command returns the status of result code presentation and an integer which shows
whether the network has currently indicated the registration of the MT. Location information elements
and are returned only when =2 and MT is registered in the network.

Syntax

Command

Possible response(s)

AT+CGREG=
Note: set gprs mode

OK
Note: succeed

AT+CGREG?

Note: get gprs state

+CGREG: ,[,,]
OK
Note: succeed

AT+CGREG=?

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

AT+CGREG +CME

ERROR:

3

Note: not support

Defined values

:

z

0 : disable network registration unsolicited result code

z

1 : enable network registration unsolicited result code +CGREG:

z

2 : enable network registration and location information unsolicited result code +CGREG:
[,,]

:

z

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

z

1 : registered, home network