PIONEERPOS G24-LC manual +CMGW, Write Message to Memory, 63 +CMGW Parameters, Pdu

Models: G24-LC G24-L

1 444
Download 444 pages 51.67 Kb
Page 167
Image 167

Chapter 3: AT Commands Reference

+CMGW, Write Message to Memory

This command is used to write and save a message to <mem2>. The message is saved in memory, and the message index is displayed to the user.

By default, messages are saved with the status of "STO UNSENT", but status "STO SENT" can be applied using the <stat> parameter.

In TEXT mode, the header parameters will be set according to CSMP settings.

 

 

 

 

Command

Syntax

Response/Action

Remarks

Type

 

 

 

 

 

 

 

 

 

 

 

Set

If text mode (+CMGF=1):

+CMGW: <index>

The Set command

 

+CMGW[=<da>[,<toda>[,<stat>]]]<CR>te

or:

writes a message

 

xt is entered<ctrl-Z/ESC>

+CMS ERROR: <err>

and stores it.

 

if PDU mode (+CMGF=0):

 

 

 

+CMGW=<length>[,<stat>]<CR> PDU is

 

 

 

given<ctrl-Z/ESC>

 

 

 

 

 

 

 

 

 

 

The following table shows the +CMGW parameters.

 

Table 3-63: +CMGW Parameters

 

 

<Parameter>

Description

 

 

 

 

<da>

Destination address in quoted string. This field contains a single phone 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.

 

 

<stat>

Status of new message

 

In text mode: “STO UNSENT” (default) or “STO SENT” In PDU mode: 2 (default)

 

or 3

 

 

<length>

Size of message in PDU mode fromat, in octects, excluding SMSC data.

 

 

<index>

1-352 Index in storage of the stored message.

 

 

<PDU>

Message header andcontents in PDU mode format. See description in the tables

 

below.

 

 

 

 

April 15, 2008

G24-L AT Commands Reference Manual

3-103

Page 167
Image 167
PIONEERPOS +CMGW, Write Message to Memory, 63 +CMGW Parameters, Pdu, April 15 G24-L AT Commands Reference Manual 103