Transcript
SIM900 MMS Set_V1.02
AT
Commands
Document Title:
SIM900 MMS AT Commands Set
Version:
1.02
Date:
2012-10-12
Status:
Release
Document Control ID:
SIM900_MMS_ATC_V1.02
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. Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2012
Smart Machine Smart Decision
Version History Version
Chapter
V1.00
Origin
V1.01
4.3
Modified the example, replace “CMNET” to “CMWAP”.
V1.02
2.4 AT+CMMSSENDCFG 2.25 AT+CMMSSCONT
Added two parameters
and . Added CMMSSENDCFG report values.
SIM900_MMS_AT Command Set_V1.02
What is new
-2-
10/15/2012
Smart Machine Smart Decision
1
Introduction
This document presents the AT command of MMS operation for SIM900. This document can apply to the same series of the modules which contain MMS function, like SIM900, SIM900D, SIM900B and SIM900A.
1.1 Features 1. 2.
SIM900 supports sending and receiving MMS only through HTTP protocol. Unicode (both little endian and big endian) and UTF8 are character sets supported and ASCII is supported only for English and numerals. 3. The maximum data size of an MMS is 300 Kbytes.. 4. The maximum size of an image file is 300 Kbytes. 5. The maximum size of a text file is 15360 bytes. 6. The maximum number of files to be enclosed is 10. 7. It is necessary to input text data into modem with header of Unicode (both little endian and big endian, “FF FE” is the header for Unicode little endian and “FE FF” is the header for Unicode big endian) 8. It includes “MMS PUSH” in “+CMTI: …” when the received short message is a MMS push message (either M-Notification.ind or M-Delivery.ind [2]). 9. If the current received MMS push message is a concatenated message, it will include “,,” after “MMS PUSH”. is the total number of the parts of the concatenated message and is the index of the current part in the whole concatenated message. For example: +CMTI: "SM",1,"MMS PUSH",2,1. In the URC, 2 means the concatenated push message include two parts and 1 means the current message is the first part. When all the parts of the concatenated push message have been received, it will prompt “+CMTI: …” URC with “MMS PUSH” and without “,,”. For example: +CMTI: "SM",1,"MMS PUSH" 10. X-profile parameters need to be configured for some MMS server, or some problems like image compression error may occur, also the x-profile address which is not configured by default should be set according to the customer’s own hardware environment. 11. The output text from the modem is encoded with little endian Unicode, but the head of Unicode is omitted. 1.2 Reference [1] SIM900 AT Commands Set [2] wap-209-mmsencapsulation-20020105-a
SIM900_MMS_AT Command Set_V1.02
-3-
10/15/2012
Smart Machine Smart Decision
1.3 Glossary MMS
multimedia short message
URL
Uniform Resource Locator
UART
Universal Asynchronous Receiver and transmitter
PDU
Protocol Data Unit
SIM900_MMS_AT Command Set_V1.02
-4-
10/15/2012
Smart Machine Smart Decision
2
2 AT commands
2.1 AT+CMMSCURL AT+CMMSCURL
Set the URL of the mms center
Test Command Response AT+CMMSCURL= +CMMSCURL: “URL” ? OK Parameter See Write Command Read Command AT+CMMSCURL?
Response +CMMSCURL: OK Parameter See Write Command
Write Command Response AT+CMMSCURL= OK or ERROR or +CME ERROR: Parameter Reference
The URL of the mms center.
Note
2.2 AT+CMMSPROTO AT+CMMSPROTO
Set the protocol parameter and MMS proxy
Test Command Response AT+CMMSPROTO +CMMSPROTO: “(0-255).(0-255).(0-255).(0-255)”,(1-65535) =? OK Parameters See Write Command Read Command Response AT+CMMSPROTO +CMMSPROTO: , ? OK SIM900_MMS_AT Command Set_V1.02
-5-
10/15/2012
Smart Machine Smart Decision
Parameters See Write Command Write Command AT+CMMSPROTO =,
Response OK or ERROR or +CME ERROR: Parameters
Reference
IP address of MMS proxy. Port of MMS proxy.
Note
2.3 AT+CMMSCID AT+CMMSCID
Set the network parameters for MMS
Test Command AT+CMMSCID=?
Response +CMMSCID: (1-3) OK Parameter See Write Command
Read Command AT+CMMSCID?
Response +CMMSCID: OK Parameter See Write Command
Write Command AT+CMMSCID=
Response OK or ERROR or +CME ERROR: Parameter network parameters, refer to AT+SAPBR
Reference
Note
SIM900_MMS_AT Command Set_V1.02
-6-
10/15/2012
Smart Machine Smart Decision
2.4 AT+CMMSSENDCFG AT+CMMSSENDCFG
Set the parameters for sending MMS
Test Command Response AT+CMMSSENDC +CMMSSENDCFG: (0-6), (0-3),(0,1), (0,1),(0-2),(0-4),(1-2),(0,1) FG=? OK Parameter See Write Command Read Command Response AT+CMMSSENDC +CMMSSENDCFG: FG? ,,,,,,, OK Parameter See Write Command Write Command AT+CMMSSENDC FG=[[, [,[,[,[,[, [,]]] ]]]]]
Response OK or ERROR or +CME ERROR: Parameter The valid time of sent MMS 0 1 hour 1 12 hours 2 24 hours 3 2 days 4 1 week 5 maximum 6 Not set (default) Priority 0 lowest 1 normal 2 highest 3 Not Set (default) Whether it need deliver report 0 No (default) 1 Yes Whether it need receive report
SIM900_MMS_AT Command Set_V1.02
-7-
10/15/2012
Smart Machine Smart Decision
0 No (default) 1 Yes Whether it need show the sender address 0 hide the sender address 1 show the sender address even if it is a secret address 2 Not set (default) The class of the MMS 0 Personal 1 Advertisement 2 Informational 3 Auto 4 Not set (default) Subject control 1 For Chinese character code 2 For English character code Whether it need to check the HTTP response of mms notifyrsp ind then to proceed the next step. 0 Waiting for HTTP response 1 Skip waiting for HTTP response Reference
Note
2.5 AT+CMMSEDIT AT+CMMSEDIT
Enter or exit edit mode
Test Command Response AT+CMMSEDIT=? +CMMSEDIT: (0,1) OK Parameter See Write Command Read Command AT+CMMSEDIT?
Response +CMMSEDIT: OK Parameter See Write Command
Write Command Response AT+CMMSEDIT=< OK or mode> ERROR or SIM900_MMS_AT Command Set_V1.02
-8-
10/15/2012
Smart Machine Smart Decision
+CME ERROR: Parameter Whether it allows to edit MMS 0 Not allow to edit MMS 1 Allow to edit MMS Reference
Note It includes adding and deleting receipt, downloading and deleting files, downloading title to edit MMS.
2.6 AT+CMMSDOWN AT+CMMSDOWN
Download the file data or title from UART
Test Command AT+CMMSDOWN =?
Response +CMMSDOWN: "PIC", (1-307200), (5000-),"NAME" +CMMSDOWN: "TEXT", (1-15360), (2000-),"NAME" +CMMSDOWN: "TITLE", (1-40), (2000-) OK
Read Command AT+CMMSDOWN ?
Response ERROR
Write Command AT+CMMSDOWN =,,[,]
Response CONNECT or ERROR or +CME ERROR: Parameters