Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-11
Command Possible responses
AT+CMGL=“REC UNREAD”
Note: List unread messages in text mode
+CMGL: 1,”REC UNREAD”,”0146290800”,,
<CR><LF> I will be late
+CMGL: 3,”REC UNREAD”, “46290800”,,
<CR><LF>See you tonight !
OK
Note: 2 messages are unread, these messages will
then have their status changed to “REC READ”
AT+CMGL=“REC READ”
Note: List read messages in text mode
+CMGL: 2,”REC READ”,”0146290800”,,
<CR><LF> Keep cool
OK
AT+CMGL=“STO SENT”
Note: List stored and sent messages in
text mode
OK
Note: No message found
AT+CMG L=1
Note: List read messages in PDU mode
+CMGL: 1,1,,26
<CR><LF>
07913366003000F3040B913366920547F40013
001190412530400741AA8E5A9C5201
OK
Defined values: <stat> possible values (status of messages in memory):
Text mode possible values PDU mode possible
values
Status of messages in memory
“REC UNREAD” 0 received unread messages
“REC READ” 1 received read messages
“STO UNSENT” 2 stored unsent messages
“STO SENT” 3 stored sent messages
“ALL” 4 all messages
Note: For SMS Status Reports, only “ALL” / 4 and “READ” / 1 values of the <stat> parameter
will list messages; other values will only return OK.
Send Message: +CMGS
Description: The <address> field is the address of the terminal to which the message is sent. To
send the message, simply type <ctrl-Z> character (ASCII 26). The text can contain all existing
characters except <ctrl-Z> and <ESC> (ASCII 27). This command can be aborted using the
<ESC> character when entering text. In PDU mode, only hexadecimal characters are used
(‘0’…’9’,’A’…’F’).
Command syntax:
in text mode: AT+CMGS=<da> [ ,<toda> ] <CR>
text is entered <ctrl-Z / ESC >
in PDU mode: AT+CMGS=<length> <CR>
PDU is entered <ctrl-Z / ESC >
Command Possible responses
AT+CMGS=“+33146290800”<CR>
Please call me soon, Fred. <ctrl-Z>
Note: Send a message in text mode