Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-10
Command Possible responses
AT+CMTI: “SM”,1
Note: New message received
AT+CMG R=1
Note: Read the message
+CMGR: “REC UNREAD”, “0146290800”,
“98/10/01,18:22:11+00”, <CR><LF>
ABCdefGHI
OK
AT+CMG R=1
Note: Read the message again
+CMGR: “REC READ”,”0146290800”,
“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
Note: In PDU mode
+CMGR: 2,,<length> <CR><LF><pdu>
OK
Note: Message is stored but unsent, no
<alpha>field
AT+CMGF=1;+CPMS=“SR”;+CNMI=,,,2
Note: Reset to text mode, set read memory
to “SR”, and allow storage of further SMS
Status Report into “SR” memory
OK
AT+CMSS=3
Note: Send an SMS previously stored
+CMSS: 160
OK
+CDSI: “SR”,1
Note: New SMS Status Report stored in “SR”
memory at index 1
AT+CMG R=1
Note: Read the SMS Status Report
+CMGR: “REC UNREAD”,6,160,
“+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>…)