HE863 family AT commands reference guide
80377ST10083a Rev.6 – 2012-11-12
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved.
Page 125 of
229
+CMGS - Send Message
Note: SIO consumes all SMS commands and also the text entered by user. So C-AT
doesnot receive any SMS commands until SIO is fixed.
(Text Mode)
AT+CMGS=<da>
[,<toda>]
(Text Mode)
Execution command sends to the network a message.
Parameters:
<da>
- destination address, string type.
<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
<dcs>
(set with +CSMP) indicates that 3GPP TS 23.038 [2] GSM 7 bit
default alphabet is used and
<fo>
indicates that 3GPP TS 23.040 [3] TP-User-
Data-Header-Indication is not set:
-
if TE character set other than “HEX” (refer command Select TE Character Set
+CSCS in 3GPP TS 27.007 [9]): ME/TA converts the entered text into the GSM
7 bit default alphabet according to rules of Annex A; backspace can be used to
delete last character and carriage returns can be used (previously mentioned
four character sequence shall be sent to the TE after every carriage return
entered by the user);
-
if TE character set is “HEX”: the entered text should consist of two IRA
character long hexadecimal numbers which ME/TA converts into the GSM 7 bit
default alphabet characters. (e.g. 17 (IRA 49 and 55) will be converted to
character
Π
(GSM 7 bit default alphabet 23)).
-
if
<dcs>
indicates that 8-bit or UCS2 data coding scheme is used or
<fo>
indicates that 3GPP TS 23.040 [3] 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. two characters 2A (IRA 50 and 65)
will be converted to an octet with integer value 42).
To send the message issue
Ctrl-Z
char (
0x1A
hex).
To exit without sending the message issue
ESC
char (
0x1B
hex).
If message is successfully sent to the network, then the result is sent in the format:
Note : Optionally (when +CSMS
<service>
value is 1 and network supports) <scts>
is returned: