Examples about short messages, Appendixes, 7 examples about short messages – Rainbow Electronics FARGO MAESTRO 100 (with TCP_IP) User Manual

Page 740

Advertising
background image

APPENDIXES

Examples

© Restricted

Page:

34 / 80

This document is the sole and exclusive property of Wavecom. Not to be distributed or divulged without
prior written agreement.

WM_DEV_OAT_UGD_049 - 001

APPENDIXES

August 23,

2007

2.7 Examples about Short Messages

2.7.1 Send a Short Message

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

SMS-DELIVERs are directly stored, SMS-STATUS- REPORTs are displayed

OK

AT+CSMP=17,169,0,0

SMS-SUBMIT message with a validity period (one day)

OK


AT+CMGF=1

Text mode to send a Short Message

OK

AT+CSCA="+33608080706"

Set Service Center Address to +33608080706

OK

AT+CMGS=0601290800

Send a SMS-SUBMIT to mobile phone

Product sends a 4 characters sequence: 0x0D 0x0A 0x3E 0x20

This is the first text line

Edit first line and press carriage return (<CR>, 0x0D)

This is the last text line

Edit last line and send message by pressing <ctrl-Z> (0x1A)

+CMGS: 5

Success: message reference 5 is returned from the SMS Service Center

+CDS: 2,5,"0601290800",129,"99/05/01 14:15:10+04"

Success: report of successful message delivery received

2.7.2 Read Short Messages

AT+CMGF=1

Text mode to read Short Messages

AT+CMGL="ALL"

List all stored messages

+CMGL: 1,"REC READ","+336290918",,"99/05/01 14:15:10+04"

I will be late

This is the first message

+CMGL: 2,"REC UNREAD","+336290918",,"99/05/01 14:19:44+04"

Traffic jam on Broadway

This is the second message

OK

AT+CMGR=1

" "

Read the first message

+CMGR: "REC READ","+336290918",,"99/05/01 14:19:44+04"

OK

Advertising