Basic AT Commands for SMS


The list of AT commands is long, but there is basic set that I’m finding that I need to constantly refer to for testing, so here they are for ease of reference:

 

AT COMMAND
AT Echo OK means that you can connect to the device.

 

MODEL & CONFIGURATIONS
AT+CGMI Read manufacturer information
AT+CGMM Read model information
AT+CGMR Read software version
AT+CGSN Read serial number
AT&V Display base configuration
AT&V2 Display last connection statistics
AT#MONI Display neighboring cell information

BASIC SMS COMMANDS
AT+CMGF=1 Set SMS message format to text
AT+CMGS=“+14081234567″<CR>Hello, World.<Ctrl+z> Send SMS message
AT+CMGL=? List all messages. Depending on the CMGF settings (text or PDU), the argument to this command is a number from 0 to 4 or an enum. The ? parameter will inform you which one you’ll need to pass. Make it easier on yourself and set CMGF to text.
AT+CMGD=? Delete messages from memory.

DIAL A NUMBER
ATD +14081234567; Dial the given number. “;” is essential since it means make a voice call.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.