AT
, followed by a <command>
and in some cases a <value>
.AT+<command>=<value>
Instruct the modem to perform an action, such as activating the modem or enabling roaming.
For example, the command to set the modem to active is: AT+CFUN=1
AT+<command>?
Check the current configuration settings of the cellular modem. For example to read the network and cellular technology the modem is using, enter: AT+COPS?
AT+<command>=?
Test the possible input values for specific commands. For example to list the available modes of operations modem, enter: AT+CFUN=?
AT+<x>
Some commands can be simply executed. For example, the command to check and return the signal quality: AT+CSQ
;
, only write AT
at the start of the first command. AT+CMEE=2;+CPIN?;+CIMI
AT
. When the modem responds with OK
you're set.AT+CFUN=1,1
OK
AT+CMEE=2
OK
AT+CPIN?
+CPIN: READY
OK
AT+CGMM
SARA-R412M-02B
OK
AT+CGMR
M0.12.00 [Dec 01 2030 12:00:00]
OK
AT+CIMI
XXXXXXXXXXXXXXX
OK
AT+CCID
+CCID: XXXXXXXXXXXXXXXXXXXX
OK
AT+COPS
AT+COPS=<mode>,<format>,<oper>,<AcT>
mode
0
for automatic, 1
for manualformat
0
for long alphanumeric (e.g. vodafone NL), 1
for short alphanumeric (e.g. voda NL), 2
for numeric/MCCMNC codes (e.g. 20404)oper
AcT
0
for GSM, 3
for GSM/GPRS/EDGE, 7
for LTE/LTE Cat-M1, 9
for NB-IoTAT+COPS?
+COPS: 0,0,"vodafone NL",7
OK
AT+COPS=?
+COPS: (1,"NL KPN","NL KPN","20408",7),(1,"vodafone NL","voda NL","20404",0),(1,"T-Mobile NL","TMO NL","20416",0),(1,"T-Mobile NL","TMO NL","20416",7),(1,"vodafone NL","voda NL","20404",7),(1,"NL KPN","NL KPN","20408",0),,(0,1,2,3,4),(0,1,2)
OK
AT+COPS=0
AT+COPS=0,0,<AcT>
Example: AT+COPS=0,0,7
T+COPS=1,2,<MMCMNC>
Example: AT+COPS=1,2,20404
AT+COPS=1,2,<MMCMNC>,<AcT>
Example: AT+COPS=1,2,20404,7
OK
AT+CSQ
+CSQ: 25,5
OK
+CSQ
returns 2 values separated by a comma. The first value represents the signal strength and provides a value between 0 and 31; higher numbers indicate better signal strength. The second value represents the signal quality indicated by a value between 0 and 7. If AT+CSQ
returns 99
, the signal is undetectable or unknown.data.mono
:AT+CGDCONT=1,"IP","data.mono"
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","data.mono","0.0.0.0",0,0,0,0,0,0
AT+CGACT=1,1
OK
AT+CGACT?
+CGACT: 1,1
OK
AT+CEREG?
+CEREG: 0,5
OK
0
: Not registered
1
: Registered, home network
2
: Not registered, but the modem is trying to connect
3
: Registration denied
4
: Unknown (for example, out of coverage)
5
: Registered, roaming
90
: Not registered due to UICC failureAT+CGPADDR
+CGPADDR: 1,10.XXX.XX.XXX
OK