User's Manual

Page 140 of 187
TECHNICAL MANUAL
Telit GM862 PCS
Tri Band GPRS Data Terminal System Rev.1
2.6.4 Message sending and writing
2.6.4.1 +CMGS - send message
+CMGS – send message
Execute command
(PDU Mode)
AT+CMGS = <length>
(PDU Mode)
Sends to the network a SMS message input as a PDU.
Parameter:
<length> = 8…176 - represents the length of the PDU to be sent in
bytes.
The device responds to the command with the prompt '>' and awaits
for the number of bytes of PDU specified.
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to
exit without sending the message send ESC char (0x1B
hexadecimal ).
If message is successfully sent to the network, then the result is sent
in the format:
+CMGS: <mr>
where <mr> is the message reference number.
If message sending fails for some reason, an error code is reported.
(Text Mode)
AT+CMGS=<da>
(Text Mode)
Sends to the network a SMS message input as a text message.
Parameter:
<da> = destination address number
The device responds to the command with the prompt '>' and awaits
for message text (max 160 characters).
To complete the operation send Ctrl-Z char (0x1A hexadecimal) , to
exit without sending the message send ESC char (0x1B
hexadecimal).
If message is successfully sent to the network, then the result is sent
in the format:
+CMGS: <mr>
where <mr> is the message reference number.
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 might take several seconds, no other SIM
interacting commands are issued.
To avoid malfunctions is suggested to wait for the
+CMGS:<mr> or +CMS ERROR:<err> response
before issuing further commands.
Read command