Rainbow Electronics GM862-QUAD-PY User Manual

Page 218

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 218 of 434

+CMGS - Send Message

SELINT 2


If message is successfully sent to the network, then the result is sent
in the format:

+CMGS: <mr>

where

<mr> - message reference number; GSM 03.40 TP-Message-

Reference in integer format.


Note: if message sending fails for some reason, an error code is
reported.

Note: care must be taken to ensure that during the command
execution, which may take several seconds, no other SIM interacting
commands are issued.

O

D

E

=
0



#

S

M

S

M

O

D

E

=
0



#

S

M

S

M

O

D

E

=
0



#

S

M

S

M

O

D

E

=
0



(Text Mode)
AT+CMGS=<da>
[,<toda>]

(Text Mode)

Execution command sends to the network a message.

Parameters:
<da> - destination address, string type represented in the currently

selected character set (see +CSCS).

<toda> - type of destination address
129 - number in national format
145 - number in international format (contains the "+")

After command line is terminated with <CR>, the device responds
sending a four character sequence prompt:

<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)

After this prompt text can be entered; the entered text should be
formatted as follows:

- if current <dcs> (see +CSMP) indicates that GSM03.38 default

alphabet is used and current <fo> (see +CSMP) indicates that GSM
03.40 TP-User-Data-Header-Indication is not set, then ME/TA
converts the entered text into GSM alphabet, according to GSM
07.05, Annex A; backspace can be used to delete last character
and carriage returns can be used.

- if current <dcs> (see +CSMP) indicates that 8-bit or UCS2 data

coding scheme is used or current <fo> (see +CSMP) indicates that
GSM 03.40 TP-User-Data-Header-Indication is set, the entered text
should consist of two IRA character long hexadecimal numbers
which ME/TA converts into 8-bit octet (e.g. the ‘asterisk’ will be
entered as 2A (IRA50 and IRA65) and this will be converted to an
octet with integer value 0x2A)

Advertising