LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 142 / 231
9.17. AT+QCMGS Send Concatenated Messages
The command is used to send concatenated massages. Different from
AT+CMGS
, when sending a
concatenated message via this command, each segment of the concatenated message must be identified
by the additional parameters:
<uid>
,
<msg_seg>
and
<msg_total>
. When sending all segments of the
message one by one,
AT+QCMGS
must be executed multiple times (equal to
<msg_total>
) for each
segment. This command is only used in text mode (
AT+CMGF=1
).
Parameter
<uid>
Message identification in the user data header (UDH). Range: 0-255. This
parameter is defined and inputted by the user. All segments of a same
concatenated message must have the same
<uid>
. Different concatenated
messages should have different
<uid>
.
<msg_seg>
Sequence number of a concatenated message. Range: 0-7.
<msg_seg>
=0 means: ignore the value and regard it as a non-concatenated
message.
<msg_total>
The total number of the segments of one concatenated message. Range: 0-7.
<msg_total>
=0 or 1 means: ignore the value and regard it as a
non-concatenated message.
<da>
Please refer to
AT+CMGS
.
<toda>
Please refer to
AT+CMGS
.
<pid>
Protocol identifier. 3GPP TS 23.040 TP-Protocol-Identifier in integer format (default 0).
<dcs>
Data coding scheme. Depending on the command or result code: 3GPP TS 23.038
SMS Data Coding Scheme (default 0), or Cell Broadcast Data Coding Scheme in
integer format.
AT+QCMGS
Send Concatenated Messages
Test Command
AT+QCMGS=?
Response
OK
Write Command
If text mode (
+CMGF=1
):
AT+QCMGS=<da>[,<toda>][,<uid>,<m
sg_seg>,<msg_total>]
<CR>
text is entered
<Ctrl+Z/ESC>
Response
If in text mode (
AT+CMGF=1
) and sent successfully:
+QCMGS:
<mr>
OK
ERROR
If there is any error related to ME functionality:
+CMS ERROR: <err>
Maximum Response Time
120s, determined by network.