Chapter 8 – Short Messages Commands

Syntax: Command syntax: AT+CMGR=<index>

Response syntax: +CMGR: <stat> [,<oa>], <scts>, <lang>, <encod>, <priority>[,<cbn>], <length> <CR><LF> <data> (for SMS-DELIVERonly)

+CMGR: <stat> [,<da>], <dt>, <lang>, <encod>, <priority>[,<cbn>], <length> <CR><LF> <data> (for SMS-SUBMITonly)

+CMGR: <stat>,<mr>,<scts>,<dt>,<st> (for SMS-STATUS-REPORTonly)

Command

Possible Responses

 

+CMTI: “MT”,1

 

Note: New message received

AT+CMGR=1

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

Note: Read the message

”98/10/01,18 :22

 

:11+00”,1,2,0,”8585550000”,9<CR><LF>

 

ABCdefGHI

 

OK

AT+CMGR=1

+CMGR: “REC READ”,”8585551212”, ”98/10/01,18

Note: Read the message again

:22 :11”,1,2,0,”8585550000”,9<CR><LF>

 

ABCdefGHI

 

OK

 

Note: Message is read now

AT+CMGR=2

+CMS ERROR: 321

Note: Read at a wrong index

Note: Error : invalid index

AT+CPMS=”SR”;+CNMI=,,,2

+CPMS:0,10,0,10

Reset to text mode, set read memory

OK

to “SR”, and allow storage of further

 

SMS Status Report into “SR” memory

 

AT+CMSS=3

+CMSS: 160

Send an SMS previously stored

OK

 

+CDSI: “SR”,1

 

New SMS Status Report stored in “SR” memory at

 

index 1

AT+CMGR=1

+CMGR: “READ”,160,

Read the SMS Status Report

“8585551212”,129,”01/05/31,15:15:09”,

 

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

 

OK

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

60

Page 60
Image 60
Multi-Tech Systems CDMA Wireless Modem manual AT+CMGR=1, AT+CMGR=2 +CMS Error AT+CPMS=SR+CNMI=,,,2, AT+CMSS=3