© Microhard Systems Inc.
171
5.0 AT Commands
AT+CMGS
Command Syntax
Send SMS message. To send message
CTRL+Z must be entered, to exit, ESC.
AT+CMGS=<“Phone Number”><CR>
text is entered <CTRL+Z/ESC>
Description
Example
Input:
AT+CMGS=“4035551714” <enter>
This is message <CTRL+Z> // <CTRL+Z> ends the text mode and returns to regular AT command mode.
Response:
OK
AT+CMGR
Command Syntax
This command allows the application to read stored
messages. The messages are read from the SIM card
memory.
AT+CMGR=<index>
Description
Example
Input:
AT+CMGR=<index><enter>
Response:
+CMGR: <stat>,<oa>,,<dt>
<data>
OK
Parameters:
<index> Index in SIM card storage of the message
<stat> Status of Message in Memory (Text Mode)
“REC UNREAD” Received unread messages
“REC READ” Received read messages
<oa> Originator Address
String type
<dt> Discharge Time
String format: "yy/MM/dd,hh:mm:ss±zz" (year [00-99]/ month [01-12]/Day [01-31],
Hour:Min:Second and TimeZone [quarters of an hour])
<data> SMS User Data in Text Mode
String type
The
AT&W
command
must be issued to save
changes!