beautypg.com

At+creg network registration info, At+cops operator selection – Horner APG XLt OCS HE-GSM04 User Manual

Page 45

background image

MAN4005-04-EN

GPRS / GSM MODEM Configuration

PAGE 45

3. AT+CREG Network Registration Info

Command Function

Write command controls the presentation of an unsolicited result code +CREG: .

Read command returns the status of result code, which shows whether the network has
currently indicated the registration of the ME.

Command Functional
Group

Network Information

Command Format Query
Response

AT+CREG=?
+CREG: (0,2)
OK

Write Format
Response

AT+CREG=[]
OK

Read Format
Response

AT+CREG?
+CREG: ,[,,]
OK

Execution Format
Response

N/A
N/A

Parameter Values

0

disable network registration unsolicited result code

1

enable network registration unsolicited result code +CREG:

2

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

0

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

1

registered, home network

2

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

3

registration denied

4

unknown

5

registered, roaming

string type; two-byte location area code in hexadecimal format (e.g. "00C3" equals 195
in decimal)

string type; two-byte cell ID in hexadecimal format



4. AT+COPS Operator Selection

AT+COPS

Operator Selection

Command Function

Write command forces an attempt to select and register the GSM network operator.
is used to select whether the selection is done automatically by the ME or
is forced by this command to operator (it shall be given in format
). If the selected operator is not available, no other operator shall be
selected (except = 4). The selected operator name format shall apply to
further read commands (+COPS?) also. =2 forces an attempt to deregister
from the network. The selected mode affects to all further registration (e.g. after
=2, ME shall be unregistered until =0 or 1 is selected).

Read command returns the current mode and the currently selected operator. If no
operator is selected, and are omitted.

Test command returns a list of quadruplets, each representing an operator present
in the network. Quadruplet consists of an integer indicating the availability of the

Page 45 of 62 ECN # 956

This manual is related to the following products: