Multi-Tech Systems CDMA Wireless Modem User Manual

Page 173

Advertising
background image

Chapter 21 – AT Command Examples

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

173

Example 2: Send a Short Message by a Selected Language and a Coding Format

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

SMS-DELIVERs are stored in NV, SMS-STATUS-REPORTs are routed to TE

OK

AT+WSCL=6,4

Select SMS in Chinese language and with Unicode format


AT+CMGS=”8585551212”

Send a SMS-SUBMIT to mobile phone
Product sends a 4 characters sequence: 0x0D 0x0A 0x3E 0x20


Chinese characters in Unicode

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

This is the last message line

The SMS will be sent when passer see <ctrl-Z> (0x001A)


+CMGS: 1

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


+CDS:2,1,"8585551212",129,"02/05/17,10 :14 :17","02/05/17,10 :14 :27",129,18,6,4

Success: report of successful message delivery received. Time of sending of the message
and receiving of the acknowledgment from the SMS Service Center is reported, along with
the status code.

Example 3: Send a Short Message by a Selected Priority and with Call Back Number

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

SMS-DELIVERs are stored in NV, SMS-STATUS-REPORTs are routed to TE

OK

AT+WSCL=6,4

Select SMS in Chinese language and with Unicode format


AT+CMGW=”8585551212”,20,2,”2345678901”

write an SMS to store in mobile phone with 20 characters, priority 2 and the call back
number “2345678901”


Chinese characters in Unicode
This is the last message line

The SMS will be stored when 20 characters are entered


+CMGW: 0

The SMS is stored in the first location of the SIM card

AT+CMSS=0

Send the SMS from location index 0

+CMSS:1
OK
+CDS:2,1,"8582431437",129,"03/04/11,14 :10 :56","03/04/11,14 :11 :02",32768


Example 3: Read Short Messages

AT+CPMS=”MT”

Set Mobile Terminated as preferred memory storage

OK
+CPMS:2,10,1,10

Currently there are 2 MT messages and 1 MO messages stored.


AT+CMGL=”ALL”

List

all

stored

messages

OK
+CMGL:0,"REC READ","8585551111", 1,2,15
Test message #1

+CMGL:1,"REC UNREAD","8585552222",1,2,15
Test message #2

+CMGL:0,"STO UNSENT","8585551212",1,2,24
Test message to be sent.
AT+CMGR
=1 Read the first message in currently selected memory
OK storage (previously set by AT+CPMS).

+CMGR:"REC UNREAD","8585552222","02/05/15,15 :54 :04",1,2,0,”5550000”,15
Test message #2

Advertising