9 send message +cmgs, 1 description, 2 syntax – Rainbow Electronics 900 User Manual

Page 78: 3 defined values, 10 write message to memory +cmgw, Send message +cmgs, Write message to memory +cmgw

Advertising
background image

FLYFOT-M260-MODULE

Page: 78 / 239

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.

9.9 Send message +CMGS

9.9.1 Description

:

The <address> field is the address of the terminal to which the message is sent. To send the message,
simply type, <ctrl-Z> character (ASCII 26). The text can contain all existing characters except <ctrl-Z>
and <ESC> (ASCII 27). This command can be aborted using the <ESC> character when entering text. In
PDU mode, only hexadecimal characters are used (‘0’…’9’,’A’…’F’).

9.9.2 Syntax

:

Command syntax in PDU mode :
AT+CMGS= <length> <CR>
PDU is entered <ctrl-Z / ESC >
Command

Possible responses

AT+CMGS=.28.<CR>
0031000BA13105119226F40000AD0AA8C3F6
30885E9ED301 <ctrl-Z>
Note : Send a message in PDU mode

+CMGS: <mr>
OK
Note : Successful transmission

AT+CMGS=? +CMGS:

OK

AT+CMGS
AT+CMGS?

+CMS ERROR: 3
Note: not supported.


The message reference, <mr>, which is returned to the application is allocated by the product. This number
begins with 0 and is incremented by one for each outgoing message (successful and failure cases); it is
cyclic on one byte (0 follows 255).
Note:
this number is not a storage number – outgoing messages are not stored.

9.9.3 Defined

values

:

See above paragraphs.


9.10 Write Message to Memory +CMGW

9.10.1 Description

:

This command stores a message in memory (either SMS-SUBMIT or SMSDELIVERS). The memory
location <index> is returned (no choice possible as with phonebooks +CPBW).
Text or PDU is entered as described for the Send Message +CMGS command.

Advertising