User manual
605M-D1 GPRS Modem User Manual
man_605M-D1_1.5.doc Page 30
OK
Deactivation of GPRS context if required:
AT#SGACT=0<cr>
OK
4.2.2 SMS Messsaging
The Modem supports transmission and reception of SMS messaging. To use SMS messaging, you need to configure
a service center address (Phone number). This is done with the AT+CSCA command. To send SMS messages, use
the AT+CMGS command. To receive SMS messages, use the AT+CMGR command. To control the way the modem
reports the arrival of new SMS messages, us the AT+CNMI command.
Note: SMS Messaging is a highly configurable system in the 605M-D1. The following examples assume that all
settings are at their defaults, except for message format which is set to text mode. For more detail on how to use
SMS messaging, refer to ELPRO support for a detailed AT command summary.
Setting the message format
The following descriptions assume text mode for SMS messages. To set text mode, issue the following:
AT+CGMF=1
Setting the service center address
Set the service center address with the AT+CSCA command.
AT+CSCA=<number>,129
Where <number> is the phone number for the service center. To specify the number in international format (leading
“+” for international numbers,
AT+CSCA=<number>,145
Sending an SMS message.
Send an SMS message with the AT+CMGS command.
AT+CMGS=<number>,129
Where <number> is the phone number to send the message to. To specify the number in international format
(leading “+” for international numbers,
AT+CMGS=<number>,145.
at this stage, the modem will respond with a string requesting the text message to send. This is <carriage return>,
<line feed>, greater-than-symbol “>”, and a space “ “.
Enter the message to send, followed by Ctrl-Z (0x1A) to send the message.
Receiving an SMS message.
Receive SMS messages with the AT+CMGR command.
AT+CMGR=<message index>
<message index> is set to 0 for the most recently received message.
If <message index> refers to a valid message, output will be the string
+CMGR: <status>,<sender number>,<arrival time>,[optional other parameters]<CR><LF><data>
The <status> is one of “REC UNREAD” or “REC READ”
<sender number> is the sender’s phone number.
<arrival time> is the time the message was received at the modem.
Refer to the detailed command reference for [optional other paramters].
<data> is the message data.