Generic AT Commands


[:  :]

Listing some generic GSM / GPRS Modem AT commands. There are always going to be manufacturer specific ones. This list was created with the SIM800 module in mind.

Info

General Info

CommandDescription
AT&VView current configuration
AT&WStore current configuration

Network

CommandDescription
AT+COPS?Query Network Operators in cell area
AT+COPS=XX = Params for registering to specified network. Test SIM
AT+CPASGet activity status of module (0=ready,2=Unknown)
AT+CREGNetwork Registration. Use to determine registration state and enable registration with operators.

SMS

CommandDescription
AT+CMGRRead SMS Message
AT+CMGSSend SMS Message

SIM Toolkit

CommandDescription
AT+STKTRSSTK Terminal Response (Basically return value on command.)
AT+SGPIOControl GPIO. Can select pins and set high or low.
AT+CGPIOControl GPIO by Pin Index. Same but easier to pick pins.
AT+GSMBUSYReject Incoming Call
AT+CWHITELISTSet the Whitelist
AT+SJDRSet Jamming Detection Function
AT+SKPDKeypad Detecting Function

GPRS

CommandDescription
AT+CGATTAttach or Detach from GPRS Service
AT+CGREGNetwork Registration Status

TCP/IP

CommandDescription
AT+CIPSTARTStart TCP or UDP Connection
AT+CIPSENDSend Data through TCP or UDP Connection
AT+CIPQSENDSelect data transmission mode
AT+CIPACKQuery Previous Connection Data Transmitting State
AT+CIPCLOSEClose connection.
AT+CLPORTSet Local Port
AT+CIFSRGet Local IP
AT+CIPSTATUSGet Current Connection Status
AT+CDNSCFGSet DNS
AT+CDNSGIPDNS Query
AT+CIPSRIPShow remote addr and port when recieving

HTTP

CommandDescription
AT+HTTPINITStart HTTP Service
AT+HTTPTERMStop HTTP Service
AT+HTTPDATAInput HTTP Data
AT+HTTPACTIONHTTP Method
AT+HTTPREADRead server response
AT+HTTPSTATUSRead HTTP Status

References


Tags
Cheatsheet · Modem · Iot