OnCell G2150I AT Command Set

 

 

Short Message Commands

 

 

 

 

 

 

Command

 

Possible responses

 

AT+CMGL=“REC UNREAD”

+CMGL: 1,”REC UNREAD”,”0146290800”,,

 

Note: List unread messages in text mode

<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”

 

+CMGL: 2,”REC READ”,”0146290800”,,

 

Note: List read messages in text mode

<CR><LF> Keep cool

 

 

 

OK

 

AT+CMGL=“STO SENT”

 

OK

 

Note: List stored and sent messages in

Note: No message found

 

text mode

 

 

 

 

AT+CMGL=1

 

+CMGL: 1,1,,26

 

Note: List read messages in PDU mode

<CR><LF>

 

 

 

07913366003000F3040B913366920547F40013

 

 

 

001190412530400741AA8E5A9C5201

 

 

 

OK

 

Defined values: <stat> possible values (status of messages in memory):

 

 

 

 

 

Text mode possible values

PDU mode possible

Status of messages in memory

 

 

values

 

 

 

“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

7-11

Page 64
Image 64
Moxa Technologies G2150I manual Send Message +CMGS, Then have their status changed to REC Read, Text mode