SMS

+CMGS, Send SM to Network

This command sends an SM from the G24-L to the network. The message reference value <mr> is returned to the G24-L upon successful delivery of the message.

Note: The DCD signal will be in ON state while text is entered.

The header parameters in TEXT mode will be set according to CSMP settings.

 

 

 

 

Command Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Set

If text mode (+CMGF=1):

+CMGS: <mr>

The Set command

 

+CMGS=<da>[,<toda>]<CR>

+CMS ERROR: <err>

validates the input

 

text is entered<ctrl-Z/ESC>

 

parameters, sends the

 

 

SM to network and

 

If PDU mode (+CMGF=0):

 

 

 

reports the result of

 

+CMGS=<length><CR>

 

 

 

the operation to the

 

PDU is entered<ctrl-Z/ESC>

 

G24-L.

 

 

 

 

 

 

 

 

The following table shows the +CMGS parameters.

 

Table 3-70: +CMGS Parameters

 

 

<Parameter>

Description

 

 

 

 

<da>

Destination address in quoted string. This field contains a single MIN number.

 

 

<toda>

Type of DA. Value between 128-255 (according to GSM 03.40, 9.1.2.5). If this field is

 

not given and first character of <da> is '+' , <toda> will be 145, otherwise 129.

 

 

<length>

Size of message in PDU mode format, in octets, excluding SMSC data.

 

 

<mr>

Sent message reference number.

 

 

PDU

Message header and contents in PDU mode format. See description in +CMGW

 

section.

 

 

 

 

Example

AT+CMGS="064593042",129

>This is the message body <CTRL+Z> //<CTRL+Z> ends the prompt text mode and returns to regular AT command mode

OK AT+CMGF=0

OK AT+CMGS=24 >079179521201009511FF0B917962543940F20008001400410042004300440045 <CTRL+Z> +CMGS: 128

OK

Note: Any character sent by TE to G24-L before G24-L has reported a result of AT+CMGS operation, will abort AT+CMGS command execution. However, if SMS was already sent to network and sending operation was successful, the result of operation "+CMGS <mr>" will be reported by G24-L.

A flex dependant enhancement enables the reporting of numeric error code to TE, in case the sending operation has failed. The numeric error code will be reported in format: "+CMGS ERROR: <err>".

3-110

G24-L AT Commands Reference Manual

April 15, 2008

Page 174
Image 174
PIONEERPOS G24-LC manual +CMGS, Send SM to Network, 70 +CMGS Parameters