Sending Messages (Using At+Cmgs); Deleting Messages (Using At+Cmgd) - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

Sending Messages (Using AT+CMGS)

Sends an SM from the G24 to the network in TEXT mode, the header parameters will be set
according to CSMP settings. In text mode (+CMGF=1):
AT+CMGS="054565028" //Writing a message to be sent to specified destination address
>This is the message body <CTRL+Z> //<CTRL+Z> ends the prompt text mode and returns to
regular AT command mode
+CMGS: 238
OK
AT+CMGS="+97254565028",145
>message text <CTRL/Z>
+CMGS: 239
OK

Deleting Messages (Using AT+CMGD)

AT+CMGD=179
OK
AT+CMGR=179
+CMS ERROR: invalid memory index
Delete a group of messages. Note that deletion of a number of messages may take a short time.
AT+CMGD=1, 1
OK
AT+CMGD= 1,2
OK
AT+CMGD= 1,3
OK
AT+CMGD= 1,4
OK
December 31, 2007
//Message successfully sent. Returns the Message Reference
//Writing a message to be sent to specified destination address
//Message successfully sent . Returns the Message Reference
//Delete a message using its index
//The message index is now empty
//Delete all read messages
//Delete all read and sent messages
//Delete all read, sent and unsent messages
//Delete all messages
AT Commands Reference Manual
Chapter 4: Using the Commands
4-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents