Download Multitech MTCMR-H User guide

Transcript
Chapter 3 – Supported GSM/WCDMA AT Commands
+CREG Network Registration
Description:
Syntax:
This command is used by the application to ascertain the registration status of the product.
Command
Action Command:
AT+CREG=<mode>
For <stat≠3>: Nominal Case
Read Command:
AT+CREG?
Responses
OK
+CREG: <mode>, <stat> [ ,<lac>,<ci>]
OK
For <stat=3>: Specific Case
+CREG: <mode>, <stat> [ ,<rejectCause>]
Read Command:
AT+CREG?
OK
+CREG: (list of supported <mode>s)
Test Command:
AT+CREG=?
OK
Unsolicited Response for <stat≠3> Nominal Case:
+CREG: <stat> [ ,<lac>,<ci>]
Unsolicited Response for <stat=3> Specific Case:
+CREG: <stat> [ ,<rejectCause>]
Values:
<mode>
Request Operation
0
Disable network registration unsolicited result code (default)
1
Enable network registration code result code +CREG: <stat>
2
Enable network registration and location information unsolicited result code
+CREG: <stat>,<lac>,<ci> if there is a change of network cell.
<stat>
Network Registration State
0
Not registered, Mobile Equipment is not currently searching for a new operator.
1
Registered, home network.
2
Not registered, Mobile Equipment currently searching for a new operator to
register to.
3
Registration denied.
4
Unknown.
5
Registered, roaming.
<lac>
Location Area Code
String type; two byte location area code in hexadecimal format (e.g., “00C3”
equals 195 in decimal).
<ci>
Cell ID
String type; two byte cell ID in hexadecimal format.
<rejectCause>
Network Registration Denied Cause
0
Illegal Mobile Station
1
Illegal Mobile Equipment
2
IMSI unknown
3
Bad network authentication
Parameter Storage:
The <mode> parameter is stored in EEPROM using the AT&W command. The
default value can be restored using AT&F.
Examples:
Command
Responses
AT+CREG?
+CREG: <mode>,<stat>
OK
AT+CREG=0
OK
Note: Disable network registration unsolicited result code Note: Command valid
AT+CREG=1
OK
Note: Enable network registration
Note: Command valid
AT+CREG=2
OK
Note: Enable network registration unsolicited result code
Note: Command valid
registration
High Speed HSPA-H4 AT Commands Reference Guide (Document S000483A)
131