SIM5360 SMS Application Note V0.01
SIM5360 SMS Application Note V0.01
SIM5360_SMS_Application_Note_V0.01
0 20131228
SIM5360 SMS Application Note
General Notes
Simcom offers this information as a service to its customers, to support application and
engineering efforts that use the products designed by Simcom. The information provided is
based upon requirements specifically provided to Simcom by the customers. Simcom has not
undertaken any independent search for additional relevant information, including any
information that may be in the customer’s possession. Furthermore, system validation of this
product designed by Simcom within a larger electronic system remains the responsibility of
the customer or the customer’s system integrator. All specifications supplied herein are
subject to change.
Copyright
This document contains proprietary technical information which is the property of SIMCOM
Limited., copying of this document and giving it to others and the using or communication of
the contents thereof, are forbidden without express authority. Offenders are liable to the
payment of damages. All rights reserved in the event of grant of a patent or the registration of
a utility model or design. All specification supplied herein are subject to change without
notice at any time.
SIM5360_SMS_Application_Note_V0.01
1 20131228
SIM5360 SMS Application Note
Version History
Version Chapter Comments
V0.01 New Version
SIM5360_SMS_Application_Note_V0.01
2 20131228
SIM5360 SMS Application Note
Contents
V e r s i o n H i s t o r y ....................................................................................................................2
C o n t e n t s .....................................................................................................................................3
1. Introduction...............................................................................................................................4
1.1 Overview ........................................................................................................................................4
1.2 References ......................................................................................................................................4
1.3 Terms and Abbreviations................................................................................................................4
2. SMS Quick Start – Storage .......................................................................................................6
2.1 Set preferred message storage ........................................................................................................6
3. Read SMS .................................................................................................................................6
3.1 List SMS messages from preferred store........................................................................................6
3.2 Read message .................................................................................................................................7
3.3 Delete SMS ....................................................................................................................................7
3.4 Write message to memory ..............................................................................................................7
4. Edit/Send SMS..........................................................................................................................7
4.1 Send message from Scratch............................................................................................................7
4.2 Send message from Storage............................................................................................................8
5. Receive SMS.............................................................................................................................8
5.1 New message indications to TE .....................................................................................................8
6. SMS AT Command Samples.....................................................................................................9
7 Conflict AT Commands...........................................................................................................11
SIM5360_SMS_Application_Note_V0.01
3 20131228
SIM5360 SMS Application Note
1. Introduction
1.1 Overview
This document gives the usage of SIM5360 SMS functions, user can get useful information
about the SIM5360 SMS functions quickly through this document.
The SMS functions are provided in AT command format, and they are designed for customers
to design their SMS applications easily. User can access these SMS AT commands through UART/
USB interface which communicates with SIM5360 module.
1.2 References
For the purposes of the present document, the following abbreviations apply:
AT ATtention; the two-character abbreviation is used to start a command line to
be sent from TE/DTE to TA/DCE
CSD Circuit Switched Data
DCE Data Communication Equipment; Data Circuit terminating Equipment
DCS Digital Cellular Network
DTE Data Terminal Equipment
DTMF Dual Tone Multi–Frequency
EDGE Enhanced Data GSM Environment
EGPRS Enhanced General Packet Radio Service
GPIO General–Purpose Input/Output
GPRS General Packet Radio Service
GSM Global System for Mobile communications
HSDPA High Speed Downlink Packet Access
SIM5360_SMS_Application_Note_V0.01
4 20131228
SIM5360 SMS Application Note
SIM5360_SMS_Application_Note_V0.01
5 20131228
2. SMS Quick Start – Storage
The purpose of this section is to help get you start with SMS storage
Select memory storages <mem1>, <mem2> and <mem3> to be used for reading, writing, etc.
These values will be saved after the module restarts
<mem1>
String type, memory from which messages are read and deleted (commands List Messages
AT+CMGL, Read Message AT+CMGR and Delete Message AT+CMGD).
“ME” and “MT” FLASH message storage
“SM” SIM message storage
“SR” Status report storage
<mem2>
String type, memory to which writing and sending operations are made (commands Send Message
from Storage AT+CMSS and Write Message to Memory AT+CMGW).
“ME” and “MT” FLASH message storage
“SM” SIM message storage
“SR” Status report storage
<mem3>
String type, memory to which received SMS is preferred to be stored (unless forwarded directly to
TE; refer command New Message Indications AT+CNMI).
“ME” FLASH message storage
“SM” SIM message storage
AT+CPMS="SR","ME","SM"
3. Read SMS
This command is used to return messages with status value <stat> from message storage <mem1>
to the TE. If the status of the message is 'received unread', the status in the storage changes to
'received read'.
AT+CMGL="ALL"
+CMGL: 1,"STO UNSENT","+10011",,,145,4
SIM5360_SMS_Application_Note_V0.01
6 20131228
SIM5360 SMS Application Note
Hello World
OK
This command is used to return message with location value <index> from message storage
<mem1> to the TE.
AT+CMGR=1
+CMGR: "STO UNSENT","+10011",,145,17,0,0,167,"+8613800100500",145,4
Hello World
OK
This command is used to delete message from preferred message storage <mem1> location
<index>. If <delflag> is present and not set to 0 then the ME shall ignore <index> and follow the
rules for <delflag> shown below.
AT+CMGD=1
OK
4. Edit/Send SMS
AT+CMGS="13012832788"<CR>(TEXT MODE)
SIM5360_SMS_Application_Note_V0.01
7 20131228
SIM5360 SMS Application Note
> ABCD<ctrl-Z/ESC>
+CMGS: 46
OK
send message with location value <index> from preferred message storage <mem2> to the
network (SMS-SUBMIT or SMS-COMMAND).:
AT+CMSS=3
+CMSS: 0
OK
AT+CMSS=3,"13012345678"
+CMSS: 55
OK
5. Receive SMS
AT+CNMI command is used to select the procedure how receiving of new messages from the
network is indicated to the TE when TE is active, e.g. DTR signal is ON. If TE is inactive (e.g.
DTR signal is OFF). If set <mt>=2, <mt>=3 or <ds>=1, make sure <mode>=1, otherwise it
will return error.
These values will be saved after the module restarts
<mode>
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 (e.g. in on-line data mode). Otherwise forward them directly
to the TE.
2 – Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line
data mode) and flush them to the TE after reservation. Otherwise forward them
directly to the TE.
<mt>
The rules for storing received SMS depend on its data coding scheme, preferred memory storage
SIM5360_SMS_Application_Note_V0.01
8 20131228
SIM5360 SMS Application Note
SIM5360_SMS_Application_Note_V0.01
9 20131228
SIM5360 SMS Application Note
SIM5360_SMS_Application_Note_V0.01
10 20131228
SIM5360 SMS Application Note
7 Conflict AT Commands
Following AT commands cannot be used with SMS AT commands together:
z Call AT Commands.
SIM5360_SMS_Application_Note_V0.01
11 20131228
SIM5360 SMS Application Note
Contact us
Shanghai SIMCom Wireless Solutions Ltd.
Add: Building A, SIM Technology Building, No.633, Jinzhong Road, Changning
District
200335
Tel: +86 21 3252 3300
Fax: +86 21 3252 3301
URL: http:/www.sim.com/wm
SIM5360_SMS_Application_Note_V0.01
12 20131228