OnCell G2150I AT Command Set

Short Message Commands

 

 

 

 

Command

Possible responses

 

 

AT+CMTI: “SM”,1

 

 

Note: New message received

 

AT+CMGR=1

+CMGR: “REC UNREAD”, “0146290800”,

 

Note: Read the message

“98/10/01,18:22:11+00”, <CR><LF>

 

 

ABCdefGHI

 

 

OK

 

AT+CMGR=1

+CMGR: “REC READ”,”0146290800”,

 

Note: Read the message again

“98/10/01,18:22:11+00”, <CR><LF>

 

 

ABCdefGHI

 

 

OK

 

 

Note: Message is read now

 

AT+CMGR=2

OK

 

 

Note: location empty

 

AT+CMGF=0 ;+CMGR=1

+CMGR: 2,,<length> <CR><LF><pdu>

 

 

OK

 

Note: In PDU mode

Note: Message is stored but unsent, no

 

<alpha>field

 

AT+CMGF=1;+CPMS=“SR”;+CNMI=,,,2

OK

 

Note: Reset to text mode, set read memory

 

 

to “SR”, and allow storage of further SMS

 

 

Status Report into “SR” memory

 

 

AT+CMSS=3

+CMSS: 160

 

Note: Send an SMS previously stored

OK

 

 

+CDSI: “SR”,1

 

 

Note: New SMS Status Report stored in “SR”

 

 

memory at index 1

 

AT+CMGR=1

+CMGR: “REC UNREAD”,6,160,

 

Note: Read the SMS Status Report

“+33612345678”, 129, “01/05/31,15:15:09+00”,

 

 

“01/05/31,15:15:09+00”, 0

 

 

OK

List Message: +CMGL

Description: This command allows the application to read stored messages, by indicating the type of the message to read. The messages are read from the memory selected by the +CPMS command.

Command syntax: AT+CMGL=<stat> Response syntax for text mode:

y+CMGL: <index>,<stat>,<da/oa>,[<alpha>], [<scts>, <tooa/toda>, <length>] <CR><LF><data> (for SMS-DELIVER and SMS-SUBMIT, may be followed by other <CR><LF>+CMGL:<index>…) +CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (for SMS-STATUS-REPORT only, may be followed by other <CR><LF>+CMGL:<index>…)

Response syntax for PDU mode:

y+CMGL: <index>,<stat>, [<alpha>], <length> <CR><LF> <pdu> (for SMS-DELIVER, SMS-SUBMIT and SMS-STATUS-REPORT, may be followed by other <CR><LF>+CMGL:<index>…)

7-10

Page 63
Image 63
Moxa Technologies G2150I manual List Message +CMGL, Alphafield, Memory at index