At+creg network registration, 37 at+creg network registration – Siemens MC35 User Manual

Page 107

Advertising
background image

AT Command Set

MC35_ATC_01_V03.02

Page 107 of 228

13.03.2002

4.37 AT+CREG Network registration

Test command

AT+CREG=?

Response

+CREG:

(list of supported <n>s) OK

Parameter

See write command

Read command

AT+CREG?

ME returns the URC presentation mode <n> and an integer <stat> that shows
the registration status of the ME. The location information elements <lac> and
<ci> are returned only when <n>=2 and ME is registered to the network.

Response

+CREG: <n>,<stat>[,<lac>,<ci>]
OK
or if an error occurs which is related to ME functionality:
+CME ERROR: <err> (for error text see Chapter 9.1.1. or set AT+CMEE=2)

Write command

AT+CREG=
[<n>]

Use the write command to select the type of URC. Two types of URCs are
available:
+CREG: <stat> if <n>=1. To be issued when the ME's network registration
status changes
or
+CREG: <stat>[,<lac>,<ci>] if <n>=2. To be issued when ME's network regis-
tration or network cell changes.

Response

OK
or if an error occurs which is related to ME functionality:
+CME ERROR: <err>
<err
>

256

If <n> = 0: Attempt to set once again <n>=0 causes error
code 256.
If <n> > 0: Attempt to activate a URC mode that is already
active is acknowledged with OK.

Parameter

<n >

0

disable URCs

1

enable URC +CREG:<stat> to report status of network reg-
istration

2

enable URC +CREG:<stat>[,<lac>,<ci>] to report status of
network registration including location information. Please
note that optional parameters will not be displayed during
call.

<stat>

0

not registered, ME is currently not searching for new op-
erator

1

registered, home network

2

not registered, but ME is currently searching for a new op-
erator

3

registration denied

4

unknown

5

registered, roaming

<lac>

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

<ci>

string type; two byte cell ID in hexadecimal format

Advertising