Managing stored messages in the g24-l memory, Sms -10, Managing stored messages in the g24-l memory -10 – PIONEERPOS AT Commands G24-LC User Manual

Page 378

Advertising
background image

SMS

4-10

G24-L AT Commands Reference Manual

April 15, 2008

SMS

Managing Stored Messages in the G24-L Memory

AT+CPMS="me"

//Select NVM as preferred memory storage using the +CPMS

command

+CPMS: 11,61,11,61,2,20

OK

AT+CMGF=1

// move to TEXT mode

OK

AT+CMGL="ALL"

//List all messages in memory storage

+CMGL: 225,"STO UNSENT","054565132"

<Message body>

+CMGL: 223,"STO UNSENT","4565029" //Example of G24-L response

<Message body>

+CMGL: 222,"STO SENT","054565029"

<Message body>

+CMGL: 221,"STO SENT","054565132"

<Message body>

+CMGL: 220,"STO UNSENT",""

<Message body>

OK

AT+CMGL="STO UNSENT"

//List all messages of a certain type (for example, stored

unsent messages)

+CMGL: 225,"STO UNSENT","054565132"

<Message body>

+CMGL: 223,"STO UNSENT","4565029"

<Message body>

+CMGL: 220,"STO UNSENT",""

<Message body>

OK

AT+CMGR=225

//Read any message from the list using its index

+CMGR: "STO UNSENT","054565132"

<Message body>

OK

AT+CMGR=9

+CMS ERROR: invalid index

AT+CPMS="sm"

+CPMS: 2,20,11,61,2,20

OK

AT+CMGR=9

+CMGR: "REC UNREAD","+97254565132",,"05/02/18,"21:22:23+08"

<Message body>

OK

AT+CSDH=1

OK

AT+CMGR=9

+CMGR: "REC UNREAD","+97254565132",,"05/02/18,"21:22:23+08",145,4,0,0,"+
97254120032",145,<messsage length>

<Message body>

OK

Advertising
This manual is related to the following products: