OnCell G2150I AT Command Set

Short Message Commands

 

 

 

 

 

+CMGS: <mr>,,

 

 

OK

 

 

Note: Successful transmission

 

AT+CMGS=<length><CR>

 

 

Note: Send a message in PDU mode (1/3)

 

 

<pdu>

 

 

Note: Enter message in PDU mode (2/3)

 

 

<ctrl-Z>

+CMGS: <mr>

 

Note: End the message (3/3)

OK

 

 

Note: Successful transmission

The message reference, <mr>, which is returned to the application, is allocated by the product. This number begins with 0 and is incremented by one for each outgoing message (successful and failure cases); it is cyclic on one byte (0 follows 255).

Note: This number is not a storage number – outgoing messages are not stored.

Write Message to Memory: +CMGW

Description: This command stores a message in memory (either SMS-SUBMIT or SMS-DELIVERS). The memory location <index> is returned (no choice possible as with phonebooks +CPBW).

Text or PDU is entered as described for the Send Message +CMGS command.

Command syntax:

in text mode:

y(<index> is returned in both cases) AT+CMGW=<oa/da> [,<tooa/toda> [,<stat> ] ] <CR> enter text <ctrl-Z / ESC>

in PDU mode:

yAT+CMGW=<length> [,<stat>] <CR> give PDU <ctrl-Z / ESC>

Response syntax: +CMGW: <index> or +CMS ERROR: <err> if writing fails

Command

Possible responses

AT+CMGW=“+33146290800”<CR>

 

Hello how are you ?<ctrl-Z>

 

Note: Write a message in text mode

 

 

 

 

+CMGW: 4

 

OK

 

Note: Message stored in index 4

AT+ CMGW=<length><CR>

 

Note: Write a message in PDU mode (1/3)

 

<pdu>

 

Note: Enter message in PDU mode (2/3)

 

<ctrl-Z>

+CMGW: <index>

Note: End the message (3/3)

OK

 

Note: Message stored in <index>

Defined values:

 

<oa/da>

Originating or Destination Address Value in string format.

<tooa/toda>

Type of Originating / Destination Address.

<stat>

Integer type in PDU mode (default 2 for +CMGW), or string type in text

 

7-12

Page 65
Image 65
Moxa Technologies manual Write Message to Memory +CMGW, OnCell G2150I AT Command Set Short Message Commands