Moxa Technologies G2150I manual New Message Indication +CNMI, AT+CSDH=0 AT+CSDH?, AT+CMTI SM,1

Models: G2150I

1 131
Download 131 pages 36.25 Kb
Page 61
Image 61

OnCell G2150I AT Command Set

Short Message Commands

 

 

 

 

Command

Possible responses

 

AT+CSDH=0

OK

 

Note: Set value to “do not show”

 

 

AT+CSDH?

+CSDH: 0

 

Note: Current value

OK

 

 

Note: Do not show header values

Defined values: <n>: show indicator

0: do not show header values

1: show the values in result codes

New Message Indication: +CNMI

Description: This command selects the procedure for message reception from the network.

Command syntax: AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>

Command

Possible responses

AT+CNMI=2,1,0,0,0

OK

Note: <mt>=1

 

 

AT+CMTI: “SM”,1

 

Note: message received

AT+CNMI=2,2,0,0,0

OK

Note: <mt>=2

 

 

+CMT: “123456”,”98/10/01,12:30

 

00+00”,129,4 ,32,240, “15379”,129,5<CR><LF>

 

Note: message received

AT+CNMI=2,0,0,1,0

OK

Note: <ds>=1

 

AT+CMGS=“+33146290800”<CR>

+CMGS: 7

Happy Birthday !<ctrl-Z>

OK

Note: Send a message in text mode

Note: Successful transmission

 

+CDS: 2, 116, “+33146290800”, 145,

 

“98/10/01,12:30:07+04”, “98/10/01

 

12:30:08+04”, 0

 

Note: message was correctly delivered

Defined values:

<mode>: controls the processing of unsolicited result codes

0:Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications can be buffered in some other place or the oldest indications may be discarded and replaced with the new received indications

1:Discard indication and reject new received message unsolicited result codes when TA-TE link is reserved. Otherwise forward them directly to the TE

2:Buffer unsolicited result codes in the TA when TA-TE link is reserved and flush them to the TE after reservation. Otherwise forward them directly to the TE

3:Forward unsolicited result codes directly to the TE. TA-TE link specific in-band used to embed result codes and data when TA is in on-line data mode

Important note: only <mode>=2 is supported.

Any other value for <mode> (0,1 or 3) is accepted (return code will be OK), but the processing of unsolicited result codes will be the same as with<mode>=2.

<mt>: sets the result code indication routing for SMS-DELIVER indications. Default is 1.

0:No SMS-DELIVER indications are routed.

7-8

Page 61
Image 61
Moxa Technologies G2150I manual New Message Indication +CNMI, AT+CSDH=0 AT+CSDH?, AT+CMTI SM,1