Page 1
EC2x&EG9x&EM05 MMS AT Commands Manual LTE Module Series Rev. EC2x&EG9x&EM05_MMS_AT_Commands_Manual_V1.0 Date: 2017-12-08 Status: Released www.quectel.com...
Page 2
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR RELIANCE UPON THE INFORMATION.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual About the Document History Revision Date Author Description Duke XIN/ 2017-12-08 Initial Haley HUANG EC2x&EG9x&EM05_MMS_AT_Commands_Manual 2 / 25...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Contents About the Document ........................... 2 Contents ............................... 3 Table Index ..............................4 Introduction ............................5 1.1. The Process of Sending MMS Messages .................. 5 Description of MMS AT Commands ....................7 2.1.
Page 5
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Table Index TABLE 1: SUMMARY OF ERROR CODES ...................... 22 TABLE 2: DESCRIPTION OF HTTP(S) RESPONSE CODE ................24 TABLE 3: RELATED DOCUMENTS ........................25 TABLE 4: TERMS AND ABBREVIATIONS ......................25 EC2x&EG9x&EM05_MMS_AT_Commands_Manual 4 / 25...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Introduction Quectel EC2x&EG9x&EM05 modules provide MMS application interface for sending messages including multimedia objects (image, audio, rich text, etc.). This document is a reference guide to all the AT commands defined for MMS.
Page 7
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual sending MMS messages successfully, the file should be deleted by AT+QFDEL command. If the attachment text file, character should specified AT+QMMSCFG="character",<charset> first. more details, please refer Quectel_EC2x&EG9x&EM05_FILE_AT_Commands_Munual. Step 5: Send MMS messages by AT+QMMSEND=<timeout>. It may take some time to send MMS messages successfully.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Description of MMS AT Commands 2.1. AT+QMMSCFG Configure Parameters of MMS The command can be used to configure PDP context ID, MMSC, proxy, character type and other MMS parameters. If the Write Command only executes one parameter, it will query the current settings. AT+QMMSCFG Configure Parameters of MMS Test Command Response...
Page 9
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual +QMMSCFG: "mmsc",<URL> Write Command Response AT+QMMSCFG="proxy"[,<gateway>, If <gateway> and <port> are not omitted, <port>] +CME ERROR: <err> If <gateway> and <port> are both omitted, query the current settings: +QMMSCFG: "proxy",<gateway>,<port> Write Command Response AT+QMMSCFG="character"[,<charse If <charset>...
Page 10
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual If <mode> is omitted, query the current settings: +QMMSCFG: "supportfield",<mode> Parameter <contextID> Integer type. The PDP context ID. The range is 1-16, and the default value is 1. <URL> String type. The address of MMSC. The maximum length of URL is 100 bytes. <gateway>...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Auto Based on the network configuration <mode> Integer type. The header option of MMS x-up-calling-id. Do not add the header option of MMS x-up-calling-id Add the header option of MMS x-up-calling-id <err> Integer type.
2.2.1. Add Recipients //Add phone number or email address as a recipient. The maximum number of recipients is 6. AT+QMMSEDIT=1,1,"13856122546" //Add a phone number as a recipient. AT+QMMSEDIT=1,1,"recipient .test@quectel.com" //Add an email address as a recipient. //Query the recipients’ address. AT+QMMSEDIT=1 +QMMSEDIT: 1,"13856122546"...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual 2.2.2. Add CC Recipients or BCC Recipients //The operation of adding CC recipients differs from adding BCC recipients only in <function> value. For CC recipients, the <function> value is 2. For BCC recipients, it is 3. AT+QMMSEDIT=2,1,"13856122546"...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual //Delete the title by executing AT+QMMSEDIT=4,0. AT+QMMSEDIT=4,0 //Delete the title of the MMS message. AT+QMMSEDIT=4 //Query the title of the MMS message. 2.2.4. Add Attachments //Customers can add attachments for an MMS message. The attachments can be RAM, UFS and SD files, but it is strongly recommended to use RAM files.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Manual. CONNECT <Input 200 bytes data> +QFUPL: 200,0 AT+QFLST="RAM:*" //Query the file list of RAM. +QFLST: "RAM:test_mms.txt",100 +QFLST: "RAM:test_pic.jpg",200 //“RAM:test_pic.jpg” is not a text file. There is no need to AT+QMMSEDIT=5,1,"RAM:test_pic.jpg" specify the character set. AT+QMMSEDIT=5 //Query the attachments.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual AT+QMMSEDIT=2 //Query the CC recipients. AT+QMMSEDIT=3 //Query the BCC recipients. AT+QMMSEDIT=4 //Query the title of the MMS message. AT+QMMSEDIT=5 //Query the attachments. 2.3. AT+QMMSEND Send MMS Messages AT+QMMSEND is used to send MMS messages. Customers should not re-execute AT+QMMSEND until “+QMMSEND: <err>,<httprsp>,<mmsrsp>”...
Page 17
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Example AT+QMMSEND=100 //Send an MMS message. +QMMSEND: 0,200 //Indicate the result of sending the MMS message. EC2x&EG9x&EM05_MMS_AT_Commands_Manual 16 / 25...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Examples 3.1. Send MMS Messages //Step 1: Configure and activate a PDP context. //Configure PDP context 1. APN is “UNIWAP” for AT+QICSGP=1,1,"UNIWAP","" ,"",1 China Unicom. AT+QIACT=1 //Activate PDP context 1. //Activated successfully. AT+QIACT? //Query the state of PDP context.
Page 19
//Add an email address as a BCC recipient. AT+QMMSEDIT=1 //Query the recipient address. +QMMSEDIT: 1,"13856122546" AT+QMMSEDIT=2 //Query the CC recipient address. +QMMSEDIT: 2,"copy.test@quectel.com" AT+QMMSEDIT=3 //Query the BCC recipient address. +QMMSEDIT: 3,"secret.test@quectel.com" AT+QMMSCFG="character","ASCII" //Configure the character type as ASCII for title.
Page 20
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual <Input 100 bytes data> +QFUPL: 100,0 AT+QFLST="RAM:* " //Query the file list of RAM. +QFLST: "RAM:test_ram.txt",100 AT+QMMSCFG="character","ASCII" //Configure the character type as ASCII for “RAM:test_ram.txt”. AT+QMMSEDIT=5,1,"RAM:test_ram.txt" //Add attachments for the MMS message. “test_ram.txt”...
Page 21
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual AT+QMMSEND=100 //Send the MMS message. +QMMSEND: 0,200 //Indicate the result of sending the MMS message. //Step 6: Clear content of the MMS message. AT+QMMSEDIT=0 //Clear the content of the MMS message. AT+QFDEL="RAM:test_ram.txt" //Delete the RAM file.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Error Handling 4.1. Executing MMS AT Commands Fails When executing MMS AT commands, if response “ERROR” is received from the module, please check whether the (U)SIM card is inserted, and whether it is “+CPIN: READY” returned when executing AT+CPIN?.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Summary of Error Codes The error code <err> indicates an error related to mobile equipment or network. The details about <err> are described in the following table. Table 1: Summary of Error Codes <err>...
Page 24
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual PDP deactivated Socket creation failed Socket connection failed Socket read failed Socket write failed Socket closed Timeout Encode data error HTTP(S) decode data error EC2x&EG9x&EM05_MMS_AT_Commands_Manual 23 / 25...
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Description of HTTP(S) Response Codes The HTTP(S) protocol error code <httprsp> indicates an error replied from MMSC. Please refer to RFC2616 (Hypertext Transfer Protocol--HTTP/1.1). The details about <httprsp> are described in the following table.
LTE Module Series EC2x&EG9x&EM05 MMS AT Commands Manual Appendix A References Table 3: Related Documents Document Name Remark Wap MMS protocol standard package Wap-209-mmsencapsulation-20020105-a of documents RFC2616 Hypertext transfer protocol--HTTP/1.1 Quectel_EC2x&EG9x&EM05_FILE_AT_Commands_ EC2x&EG9x&EM05 FILE Manual commands manual Quectel_EC2x&EG9x&EM05_TCP(IP)_AT_Commands_ Introduction about EC2x&EG9x& Manual EM05 TCP/IP AT commands Quectel_EC25&EC21_AT_Commands_Manual...
Need help?
Do you have a question about the EC2 Series and is the answer not in the manual?
Questions and answers