Modem AT Command Descriptions


The following ‘AT’ commands are utilized in the CONNECT software to communicate directly with the internal modem. These commands can be used to setup and troubleshoot the internal modem settings.

Review the following article to establish communication with the internal modem and send the proper commands for setup:

AT CommandDescriptionExample ResponseResponse Description
AT#CCIDReturns the SIM ID number from the SIM card.<CR><LF>
#CCID: 89010303300024357692<CR><LF>
<CR><LF>
OK<CR><LF>
AT#CGMMReturns the device model identification code<CR><LF>
#CGMM: LE910-NAG<CR><LF>
<CR><LF>
OK<CR><LF>
AT#FWSWITCH?Get current active firmware<CR><LF>
#FWSWITCH: 1,1<CR><LF>
<CR><LF>
OK<CR><LF>
The current active firmware is for Verizon (1,1).
AT#FWSWITCH=0,1Switch modem to AT&T Firmware<CR><LF>
OK<CR><LF>
The current active firmware has been successfully switched to AT&T.
AT#FWSWITCH=1,1Switch modem to Verizon Firmware<CR><LF>
OK<CR><LF>
The current active firmware has been successfully switched to Verizon.
AT#PING=8.8.8.8Sends a Ping Echo Request message to test network connectivity. Connection has been established if an IP Address and reply time is returned.<CR><LF>
#PING: 01,”8.8.8.8″,1,113<CR><LF>
#PING: <replyID>,<IpAddress>,<replyTime><ttl>

<replyId> – Echo reply number.
<IpAddress> – IP address of the remote host.
<replyTime> – Time, in 100ms units, required to receive the response.
<ttl> – Time to live of the Echo Reply message.

AT#PING=wqdatalive.comSends a Ping Echo Request message to WQData LIVE. Connection confirms there is communication between the logger and wqdatalive.com.<CR><LF>
#PING: 01,”68.169.54.175″,1,50<CR><LF>
#PING: <replyID>,<IpAddress>,<replyTime><ttl>

<replyId> – Echo reply number.
<IpAddress> – IP address of the remote host.
<replyTime> – Time, in 100ms units, required to receive the response.
<ttl> – Time to live of the Echo Reply message.

AT#SGACT?Shows all available PDP contexts and their current states.
Status 1 = Active
Status 0 = Inactive
<CR><LF>
#SGACT: 1,1<CR><LF>
#SGACT: 2,0<CR><LF>
#SGACT: 3,0<CR><LF>
<CR><LF>
OK<CR><LF>
#SGACT=<cid>,<status>
AT#SGACT=1,0Deactivates PDP context 1.<CR><LF>
OK<CR><LF>
AT#SGACT=1,1Activates PDP context 1. In a successful activation, a static or dynamic IP address should be returned.<CR><LF>
#SGACT: ‘IP Address'<CR><LF>
<CR><LF>
OK<CR><LF>
AT#SGACT=3,0Deactivates PDP context 3.<CR><LF>
OK<CR><LF>
AT#SGACT=3,1Activates PDP context 3. In a successful activation, a static or dynamic IP address should be returned.<CR><LF>
#SGACT: ‘IP Address'<CR><LF>
<CR><LF>
OK<CR><LF>
AT#SHDNDisconnect from cellular network and shutdown. Wait up to 25 seconds before powering down.<CR><LF>
OK<CR><LF>
AT#SIMDET?Check if the SIM is inserted.<CR><LF>
#SIMDET: 2,1<CR><LF>
<CR><LF>
OK<CR><LF>
2,1 = SIM is inserted
2,0 = SIM is not inserted
AT$QCMIPGETP?Displays the modem profile
0 = Disabled
<CR><LF>
$QCMIPGETP: 0<CR><LF>
<CR><LF>
OK<CR><LF>
Profiles range from 0-5.
AT+CGDCONT?Shows the list of currently defined PDP contexts. Use to see if the PDP context information is set correctly.<CR><LF>
+CGDCONT: 1,”IP”,”14476.mcs”,””,0,0
<CR><LF>
+CGDCONT: 2,”IPV4V6″,”ims”,””,0,0
<CR><LF>
+CGDCONT: 3,”IP”,”vzwinternet”,””,0,0
<CR><LF>
<CR><LF>
OK<CR><LF>
+CGDCONT:<cid>,<PDP Type>,<APN>
AT+CGREG?Returns the registration status of the device.<CR><LF>
+CGREG: 0,2<CR><LF>
<CR><LF>
OK<CR><LF>
+CGREG: 0,0 – Not registered and not currently searching for a new operator.
+CGREG: 0,1 – Registered, home network.
+CGREG: 0,2 – Searching for a network.
+CGREG: 0,3 – Registration denied.
+CGREG: 0,5 – Registered, non-home network.
AT+CGSNReturns the IMEI identification number of the modem.<CR><LF>
358942053838661<CR><LF>
<CR><LF>
OK<CR><LF>
AT+CMEE=2Enables the report of a specific error instead of responding with a default ERROR response. This command should be sent before sending other AT commands to understand errors.<CR><LF>
OK<CR><LF>
Custom 1The Custom 1 command sends multiple commands automatically to activate the modem and set an HTTP connection to wqdatalive.com. It is the first step in confirming that cellular transmission is enabled.<CR><LF>
OK<CR><LF>
<CR><LF>
#SGACT: 10.27.15.98,<CR><LF>
<CR><LF>
OK<CR><LF>
<CR><LF>
OK<CR><LF>

Three “OK” responses are expected from three commands sent continuously:

  1. Turns on extended error messages (AT+CMEE=2)
  2. Activates the modem
    (AT#SGACT=1,1 or AT#SGACT=3,1)
  3. Configures HTTP parameters for WQData LIVE connection
Custom 2The Custom 2 command tests communication with WQData LIVE by seeing if data can be transmitted to the web. Communication is confirmed if a timestamp is returned.<CR><LF>
>>><CR><LF>
OK<CR><LF>
<CR><LF>
#HTTPRING: 1,200,”application/json”,32<CR><LF>
<CR><LF>
<<<{“TStamp”:”2022-04-28 17:00:00″}<CR><LF>
OK<CR><LF>

Three commands are sent to determine the connection:

  1. HTTP data transfer request is sent to WQData LIVE server
  2. A location on the server is specified to send data
  3. Data is sent and a timestamp is received to confirm connection