What AT Commands Should I Use to Debug a Connectivity Issue?
This guide provides general and advanced AT commands that are helpful in most cases to understand the context of a connectivity issues using a Monogoto SIM within your device.
AT commands are essential for troubleshooting and debugging IoT device and SIM issues by enabling quick diagnostics of device status, network connectivity, and SIM authentication.
AT commands can check network registration, signal strength, data connectivity, and error logs, as well as manage device configurations and reboot devices remotely.
AT commands are especially useful for remote troubleshooting, reducing the need for physical intervention in hard-to-reach locations, and providing a straightforward way to resolve issues related to network attachment, data connections, and device performance.
For specific AT commands for your device, please refer to your device manual while using advanced AT commands.
Access your device and run the following AT commands to receive an output.
Command
Function
Sample response
AT+CRSM=176,28539,0,0,12
Read FPLMN List (Non-preferred networks)
Get forbidden or restricted network list. All F's indicate no networks forbidden.
+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFF"
AT+CRSM=214,28539,0,0,12,"FFFFFFFFFFFFFFFFFFFFFFFF"
Clean FPLM
AT+CFUN?
Determine What Mode the Module Is In
Modules should be set to full functionality mode.
+CFUN: 1,0
AT+CSQ
Signal Quality
Returns multiple values to indicate signal strength, use device command manual to decipher RSSI (Received Signal Strength Indicator) and BER (Bit Error Rate).
+CSQ: 22,4
AT+CREG?
Network Registration Status
Check GSM and SMS network registration.
+CREG: 0,5 > This means the SIM is attached in roaming mode
AT+CGREG?
GPRS Network Registration Status
Check 3G network registration.
+CGREG: 0,5
AT+CEREG?
EPS Network Registration Status
Checks 4G LTE network registration.
+CEREG: 1,1,"1234","5678",0
AT+CGDCONT?
Read PDP Context Parameters (APN)
APN should be data.mono. AT+CGDCONT=1,"IP”,”data.mono” will set APN, but verify in your device's manual.
+CGDCONT: 1,"IP”,”data.mono”,”0.0.0.0”,0,0
AT+CGACT?
PDP Context Activation
Shows which PDP context is active and being used. The active context (1 in this example) should match the context of the PDP context where the APN is set to data.mono for connectivity.
+CGACT:1,1
AT+COPS?
Operator Selection Status and Current Operator
Displays the MCC and MNC of the connected network. The last number indicates the RAT: 0 for GSM, 2 or 3 for 2G/3G, 7 for LTE, 8 for Cat-M1, 9 for NB-IoT.
+COPS: 1,2,"310260",2
AT+COPS=?
Networks In Reach
Lists available network operators and their MCC/MNC along with their region. This command may take a few minutes to complete.
+COPS:(1,"AT&T","AT&T","310410",2)
Once you have run the associated AT commands, you can utilize your device’s AT command manual to debug further with advanced AT commands.
Advanced Command
Function
Sample response
AT+QCFG=service domain 2,1
Service Domain
This enables packet-switched data services on the device, ensuring that the module can use the cellular network for data transmission with combined attach
+QCFG: “service_domain”,2,1
OK
AT+QCFG=”nwscanseq”
NB-IoT Scan
Your device will no longer scan NB-IOT networks and this command should only be done when you do not want to use NB-IOT
+QCFG: “nwscanseq” ,0,1,2
OK
AT+CGDCONT=1, “IP” , “data.mono”,0,0
Sets APN to data.mono
Manually set your APN to data.mono using an AT command
+CGDCONT: OK
AT+CGACT=1,1
Activate your PDP context
This activates the APN that is set on line 1 (see above)
+CGACT: 1,1
AT+CGACT=1,0
Deactivate your PDP context
This deactivates the APN that is set on line 1 (see above)
+CGACT: 1,0
AT+CGATT=1
Attach to packet-switched network
This commands tells the device to attach to the packet-switched network, allowing it to start data transmission or reception
+CGATT: 1
As always, please consult your device manufacture AT command manual to verify commands.
Last updated
Was this helpful?