14.03.2015 Views

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SMS<br />

+CMGW, Write Message to Memory<br />

This command is used to write and save an SMS-SUBMIT to storage and returns index<br />

where the message has been stored.<br />

By default, messages are saved with the status of "STO UNSENT", but status "STO SENT" can<br />

be applied using the parameter.<br />

In TEXT mode, the header parameters will be set according to CSMP settings.<br />

Message data is saved by ending with .<br />

Command may be abort by ESC character.<br />

Command<br />

Type<br />

Syntax Response/Action Remarks<br />

Set<br />

If text mode (+CMGF=1):<br />

+CMGW[=[,[,]]]te<br />

xt is entered<br />

if PDU mode (+CMGF=0):<br />

+CMGW: <br />

or:<br />

+CMS ERROR: <br />

The Set command<br />

writes a message<br />

and stores it.<br />

+CMGW=[,] PDU is<br />

given<br />

The following table shows the +CMGW parameters.<br />

Table 3-49: +CMGW Parameters<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Description<br />

Destination address in quoted string. This field contains a single phone number.<br />

Type of DA. Value between 128-255 (according to GSM 23.040, 9.1.2.5). If this field<br />

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

Status of new message<br />

In text mode: “STO UNSENT” (default) or “STO SENT” In PDU mode: 2 (default)<br />

or 3<br />

Size of message in PDU mode format, in octets, excluding SMSC data.<br />

Index in storage of the stored message.<br />

Message header and contents in PDU mode format. See description in “SMS Layout”<br />

on page 3-113.<br />

Example<br />

<strong>AT</strong>+CPMS="ME"<br />

+CPMS: 0,23,0,23,0,20<br />

OK<br />

<strong>AT</strong>+CPMS?<br />

+CPMS: "ME",0,23,"ME",0,23,"SM",0,20<br />

3-86 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> April 15, 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!