Quectel EC20 MMS AT Commands Manual V1.0
Quectel_EC20_MMS_AT_Commands_Manual_V1.0
User Manual:
Open the PDF directly: View PDF
.
Page Count: 24
| Download | |
| Open PDF In Browser | View PDF |
EC20 MMS AT Commands Manual LTE Module Series Rev. EC20_MMS_AT_Commands_Manual_V1.0 Date: 2015-06-15 www.quectel.com LTE Module Series EC20 MMS AT Commands Manual Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company headquarters: Quectel Wireless Solutions Co., Ltd. Office 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233 Tel: +86 21 5108 6236 Mail: info@quectel.com Or our local office, for more information, please visit: l e t l c a e i t u n Q ide f n o C http://www.quectel.com/support/salesupport.aspx For technical support, to report documentation errors, please visit: http://www.quectel.com/support/techsupport.aspx Or Email: Support@quectel.com GENERAL NOTES QUECTEL OFFERS THIS 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. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO CHANGE WITHOUT PRIOR NOTICE. COPYRIGHT THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS ARE FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY MODEL OR DESIGN. Copyright © Quectel Wireless Solutions Co., Ltd. 2015. All rights reserved. EC20_MMS_AT_Commands_Manual Confidential / Released 1 / 23 LTE Module Series EC20 MMS AT Commands Manual About the Document History l e t l c a e i t u n Q ide f n o C Revision Date Author Description 1.0 2015-06-15 Jonathan WEN Initial EC20_MMS_AT_Commands_Manual Confidential / Released 2 / 23 LTE Module Series EC20 MMS AT Commands Manual Contents About the Document ................................................................................................................................... 2 Contents ....................................................................................................................................................... 3 Table Index ................................................................................................................................................... 4 1 Introduction .......................................................................................................................................... 5 1.1. General Process of Sending MMS Message.............................................................................. 5 1.2. Error Handling ............................................................................................................................. 6 1.2.1. Executing MMS AT Command Fails ................................................................................ 6 1.2.2. PDP Activation Fails ......................................................................................................... 6 1.2.3. Error Response of AT+QMMSEND .................................................................................. 6 2 Description of AT Command .............................................................................................................. 7 2.1. AT+QMMSCFG Configure the Parameters of MMS ................................................................ 7 2.2. AT+QMMSEDIT Edit MMS Message ....................................................................................... 9 2.2.1. Add the Recipient Address............................................................................................. 11 2.2.2. Add CC Recipient or BCC Recipient ............................................................................. 11 2.2.3. Edit the Title of MMS Message ...................................................................................... 12 2.2.4. Add Attachment .............................................................................................................. 12 2.2.5. Clear all the Content of MMS Message ......................................................................... 14 2.3. AT+QMMSEND Send MMS Message ................................................................................... 14 3 Example .............................................................................................................................................. 16 3.1. Send MMS Message ................................................................................................................. 16 4 5 6 Summary of Error Codes .................................................................................................................. 20 Description of HTTP Response Codes ............................................................................................ 22 Appendix A Reference....................................................................................................................... 23 l e t l c a e i t u n Q ide f n o C EC20_MMS_AT_Commands_Manual Confidential / Released 3 / 23 LTE Module Series EC20 MMS AT Commands Manual Table Index TABLE 1: SUMMARY OF ERROR CODES ...................................................................................................... 20 TABLE 2: DESCRIPTION OF HTTP RESPONSE CODE ................................................................................. 22 TABLE 3: RELATED DOCUMENTS .................................................................................................................. 23 TABLE 4: TERMS AND ABBREVIATIONS ........................................................................................................ 23 l e t l c a e i t u n Q ide f n o C EC20_MMS_AT_Commands_Manual Confidential / Released 4 / 23 LTE Module Series EC20 MMS AT Commands Manual 1 Introduction EC20 provides 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. l e t l c a e i t u n Q ide f n o C 1.1. General Process of Sending MMS Message Step 1: Configure and activate the PDP context. 1) Configure the PDP context parameters of, , and other parameters by AT+QICSGP (Please refer to Quectel_EC20_TCPIP_AT_Commands_Manual). If QoS settings need to be updated, configure them by commands AT+CGQMIN, AT+CGEQMIN, AT+CGQREQ and AT+CGEQREQ (Please refer to Quectel_EC20_AT_Commands_Manual). 2) Activate the PDP context by AT+QIACT. 3) Configure the PDP context ID for MMS by AT+QMMSCFG="contextid", . Step 2: Configure the URL and proxy of MMSC. 1) Configure the URL of MMSC by AT+QMMSCFG="mmsc", . 2) Configure the proxy of MMSC by AT+QMMSCFG="proxy", , . Step 3: Configure the sending parameters. Configure the sending parameters by AT+QMMSCFG="sendparam", , , , , . Step 4: 1) 2) 3) 4) 5) Edit the MMS message. Add recipient address by AT+QMMSEDIT=1,1, . Add CC recipient address by AT+QMMSEDIT=2,1, . Add BCC recipient address by AT+QMMSEDIT=3,1, . Edit the title by AT+QMMSEDIT=4,1, . You should specify the character set as title by AT+QMMSCFG="character ", first. Add attachments by AT+QMMSEDIT=5,1, . The attachments can be RAM files. And you can upload a file to RAM by AT+QFUPL command (Please refer to Quectel_EC20 _FILE_AT_Commands_Manual). After sending MMS message successfully, you should delete the file by AT+QFDEL command (Please refer to Quectel_EC20_FILE_AT_Commands_Manual). If the attachment is a text file, you should specify the character set by AT+QMMSCFG=“character”, first. EC20_MMS_AT_Commands_Manual Confidential / Released 5 / 23 LTE Module Series EC20 MMS AT Commands Manual Step 5: Send MMS message by AT+QMMSEND= . It may take some time to send MMS message successfully. You should not send MMS message again before “+QMMSEND: , [, ]” which indicates the ending of MMS message sending. Step 6: Clear the content of MMS message by AT+QMMSEDIT=0 and delete the files as attachments by AT+QFDEL (Please refer to Quectel_EC20_FILE_AT_Commands_Manual). Step 4 to step 6 can be repeated. And step 2 to step 6 can be repeated too. l e t l c a e i t u n Q ide f n o C 1.2. Error Handling 1.2.1. Executing MMS AT Command Fails If you execute MMS AT command and receive response “ERROR” from EC20 module, please check if the SIM card is inserted and CPIN is in “+CPIN: READY” status by executing command “AT+CPIN?”. 1.2.2. PDP Activation Fails If you failed to activate PDP context by AT+QIACT command, please check the following aspects: 1. 2. 3. 4. 5. Query whether the PS domain is attached by AT+CGATT? command or not. If not, please execute AT+CGATT=1 command to attach PS domain. Query the PS domain status by AT+CGREG? and make sure the PS domain is registered. Query the PDP context parameters by AT+QICSGP command and make sure the APN of specified PDP context is set. Make sure the specified PDP context ID is neither used by PPP nor activated by AT+CGACT. According to 3GPP specification, it only supports three PDP contexts activated simultaneously, so you must make sure the number of activated PDP contexts is less than 3. If the result of checking is OK, but you still fail to activate PDP context by executing AT+QIACT command, please reboot the module to resolve this issue. After booting the module, please check the terms mentioned above at least three times and each time at an interval of 10 minutes to avoid frequently rebooting the module. 1.2.3. Error Response of AT+QMMSEND +QMMSEND: , [, ] will be returned after operating AT+QMMSEND. If is not 0, it indicates the sending is failed, please resend it. If resending is not successfully, you should deactivate the PDP context by AT+QIDEACT command, and try again. (Please refer to Chapter 1.2.2). EC20_MMS_AT_Commands_Manual Confidential / Released 6 / 23 LTE Module Series EC20 MMS AT Commands Manual 2 Description of AT Command 2.1. AT+QMMSCFG Configure the Parameters of MMS You can configure the PDP context ID, MMSC, proxy, character type and sending parameter of MMS by AT+QMMSCFG. l e t l c a e i t u n Q ide f n o C AT+QMMSCFG Configure the Parameters of MMS Test Command AT+QMMSCFG=? Response +QMMSCFG: “contextid”,(1-16) +QMMSCFG: “mmsc”, +QMMSCFG: “proxy”, ,(1-65535) +QMMSCFG: “character”,(“ASCII”,“UTF8”,“UCS2”,“GBK”) +QMMSCFG: “sendparam”[, (0-6),(0-3),(0,1),(0,1),(0-2),(0-4)] OK Write Command AT+QMMSCFG=“contextid”[, ] Response If is not omitted, OK or +CME ERROR: Else, query the current settings, +QMMSCFG: “contextid”, OK Write Command AT+QMMSCFG=“mmsc”[, ] Response If is not omitted, OK or +CME ERROR: Else, query the current settings, +QMMSCFG: “mmsc”, EC20_MMS_AT_Commands_Manual Confidential / Released 7 / 23 LTE Module Series EC20 MMS AT Commands Manual OK Write Command AT+QMMSCFG=“proxy”[, , ] Response If and are not omitted, OK or +CME ERROR: Else, query the current settings, +QMMSCFG: “proxy”, , l e t l c a e i t u n Q ide f n o C OK Write Command AT+QMMSCFG=“character”[, ] Response If is not omitted, OK or +CME ERROR: Else, query the current settings, +QMMSCFG: “character”, OK Write Command AT+QMMSCFG=“sendparam”[, , , , , , ] Response If , , , , , are not omitted, OK or +CME ERROR: Else, query the current settings, +QMMSCFG: “sendparam”, , , , , , OK Parameter Integer type, PDP context ID, the range is 1-16, default value is 1 String type, the address of MMSC, the maximum length of URL is 100 bytes String type, the IP address of MMS proxy, the maximum length of gateway is 50 bytes Integer type, the port of MMS proxy. The range is 1-65535 String type, indicates the type of character “ASCII” US-ASCII character set “UTF8” UTF8 character set EC20_MMS_AT_Commands_Manual Confidential / Released 8 / 23 LTE Module Series EC20 MMS AT Commands Manual “UCS2” ISO-10646-UCS-2 character set, this needs to specify Big Endian order “GBK” GBK character set Integer type, the validity period of MMS message 0 1 hour 1 12 hours 2 24 hours 3 2 days 4 1 week 5 Maximum 6 Use the network configuration Integer type, priority 0 Low 1 Normal 2 High 3 Use the network configuration Integer type, whether need to delivery report 0 No 1 Yes Integer type, whether need to read report 0 No 1 Yes Integer type, whether to hide address 0 Hide any address 1 Show even BCC address 2 Use the network configuration Integer type, the class of the MMS message 0 Personal 1 Advertisement 2 Informational 3 Auto 4 Use the network configuration Integer type, indicates the type of error, please refer to Chapter 4 l e t l c a e i t u n Q ide f n o C 2.2. AT+QMMSEDIT Edit MMS Message You can add recipient address, edit title and add attachments for MMS message by AT+QMMSEDIT. The character set of title or a text file is specified by AT+QMMSCFG=“character”, . For example, if the content of a text file uses UTF8 character set, AT+QMMSCFG=“character”, “UTF8” must be executed first. EC20_MMS_AT_Commands_Manual Confidential / Released 9 / 23 LTE Module Series EC20 MMS AT Commands Manual AT+QMMSEDIT Edit MMS Message Test Command AT+QMMSEDIT=? Response +QMMSEDIT: (0-5),(0,1), OK Write Command AT+QMMSEDIT=0 Delete all content about MMS message, response: OK or +CME ERROR: Write Command AT+QMMSEDIT= is not 0 Query the specified settings of , response: List of [+QMMSEIDT: , ] OK or +CME ERROR: Write Command AT+QMMSEDIT= ,0 Delete the specified response: OK or +CME ERROR: Write Command AT+QMMSEDIT= ,1, Configure the specified settings of , response: OK or +CME ERROR: Parameter l e t l c a e i t u n Q ide f n o C settings of , Integer type, operated function 0 Delete all 1 Operate “TO address” 2 Operate “CC address” 3 Operate “BCC address” 4 Operate title 5 Operate file as attachment String type If =1, 2, 3, it is recipient address. The maximum number of “TO address”, “CC address” and “BCC address” is 6 respectively. The maximum length of address is 50 bytes If =4, it is the title. The maximum length of title is 200 bytes If =5, it is the file name of attachments. If the file name is started with “RAM:”, the file is from “RAM”. It is strongly recommended to use RAM file to upload the attachments. The max length of file name is 80 bytes, the maximum number of EC20_MMS_AT_Commands_Manual Confidential / Released 10 / 23 LTE Module Series EC20 MMS AT Commands Manual attachments is 12, and the maximum size of total attachments is restricted by the operator Integer type, indicates the type of error, please refer to Chapter 4 The following examples show how to edit a MMS message. 2.2.1. Add the Recipient Address //You can add phone number or email address as recipients. The maximum number of recipients address is 6. l e t l c a e i t u n Q ide f n o C AT+QMMSEDIT=1,1,“13856122546” OK AT+QMMSEDIT=1,1,“recipient .test@quectel.com” OK AT+QMMSEDIT=1 +QMMSEDIT: 1,“13856122546” +QMMSEDIT: 1,“recipient.test@quectel.com” OK //Add a phone number as recipient. //Add an email address as recipient. //Query recipient address. //Of course, if you want to delete the recipient address, you can run AT+QMMSEDIT=1,0 as follows: AT+QMMSEDIT=1,0 OK AT+QMMSEDIT=1 OK 2.2.2. //Delete recipient. //Query recipient address. Add CC Recipient or BCC Recipient //Add CC recipient or BCC recipient. The operation is the same as adding recipient address, the difference is value. For CC recipient, the value is 2, for BCC recipient, it is 3. AT+QMMSEDIT=2,1,“13856122546” OK AT+QMMSEDIT=2 +QMMSEDIT: 2,“13856122546” //Add a phone number as CC recipient. //Query CC recipient address. OK //Of course, if you want to delete the CC recipient address, you can run AT+QMMSEDIT=2,0 as follows: AT+QMMSEDIT=2,0 OK AT+QMMSEDIT=2 OK EC20_MMS_AT_Commands_Manual //Delete CC recipient. //Query CC recipient address. Confidential / Released 11 / 23 LTE Module Series EC20 MMS AT Commands Manual 2.2.3. Edit the Title of MMS Message //The character set of title is set by AT+QMMSCFG=“character”, . If the is “ASCII”, add title as follows: //Set the charset as “ASCII”. AT+QMMSCFG=“character”,“ASCII” OK AT+QMMSEDIT=4,1,“test EC20 mms” OK AT+QMMSEDIT=4 +QMMSEDIT: 4,“ASCII”,“test EC20 mms” OK //Edit the title of MMS message. //Query the title of MMS message. l e t l c a e i t u n Q ide f n o C //If the is not ASCII, the should be the hex string of the inputted data. AT+QMMSCFG=“character”,“UTF8” OK AT+QMMSEDIT=4,1,“746573742065633230206D6D73” //Set the charset as “UTF8”. //Edit the title of MMS message, “746573742075633230206D6D73” is the hex string of “test ec20 mms” in UTF8. OK AT+QMMSEDIT=4 //Query the title of MMS message. +QMMSEDIT: 4,“UTF8”,“746573742065633230206D6D73” OK //Of course, if you want to delete the title, you can run AT+QMMSEDIT=4,0. AT+QMMSEDIT=4,0 OK AT+QMMSEDIT=4 +QMMSEDIT: 4,"UTF8","" OK 2.2.4. //Delete the title of MMS message. //Query the title of MMS message. Add Attachment //You can add attachments for MMS message. The attachments can be RAM files. It is strongly recommended to use RAM file to upload the attachments. The maximum number of attachments is 12, and the maximum length of file name is 80 bytes. The total size of attachments may be restricted by the Operator. In the following example, the attachment is a RAM text file: AT+QFUPL=“RAM:test_mms.txt”,100,200,1 EC20_MMS_AT_Commands_Manual //Upload a file to RAM, the file will be saved as “test_mms.txt” and the maximum size of file is 100 bytes. 200 indicates timeout, 1 indicates ACK mode. Confidential / Released 12 / 23 LTE Module Series EC20 MMS AT Commands Manual (Please refer to Commands_Manual). Quectel_EC20_FILE_AT_ CONNECT +QFUPL: 100,0 OK AT+QFLST=“RAM:*” +QFLST: “RAM:test_mms.txt”,100 OK AT+QMMSCFG=“character”,“ASCII” OK AT+QMMSEDIT=5,1,“RAM:test_mms.txt” OK AT+QMMSEDIT=5 +QMMSEDIT: 5,“RAM:test_mms.txt” OK //Query the file list of RAM. l e t l c a e i t u n Q ide f n o C //Set the charset as “ASCII” for “RAM:test_mms.txt”. //Add attachment for MMS message. //Query the attachments. //In the following example, the attachment is a RAM JPG file: AT+QFUPL=“RAM:test_pic.jpg”,200,300,1 //Upload a file to RAM, the file will be saved as “test_pic.jpg” and the maximum size of file is 200 bytes. 300 indicates timeout, 1 indicates ACK mode. (Please refer to Quectel_EC20_FILE_AT_Commands_Manual). CONNECT +QFUPL: 200,0 OK AT+QFLST=“RAM:*” +QFLST: “RAM:test_mms.txt”,100 +QFLST: “RAM:test_pic.jpg”,200 OK AT+QMMSEDIT=5,1,“RAM:test_pic.jpg” OK AT+QMMSEDIT=5 +QMMSEDIT: 5,“RAM:test_mms.txt” +QMMSEDIT: 5,“RAM:test_pic.jpg” //Query the file list of RAM. //“RAM:test_pic.jpg” is not text file, you need not specify the character set. //Query the attachments. OK //If you want to delete the attachments, do as follows: EC20_MMS_AT_Commands_Manual Confidential / Released 13 / 23 LTE Module Series EC20 MMS AT Commands Manual AT+QMMSEDIT=5,0 //Delete attachments for MMS message, all attachments will be deleted. OK AT+QMMSEDIT=5 OK //Query the attachments. //After sending MMS message successfully, you should delete the files by AT+QFDEL. AT+QFDEL=“RAM:test_mms.txt” OK AT+QFDEL=“RAM:test_pic.jpg” OK AT+QFLST=“RAM:*” OK 2.2.5. //Delete the RAM file. //Delete the RAM file. l e t l c a e i t u n Q ide f n o C //Query the file list of RAM. Clear all the Content of MMS Message //AT+QMMSEDIT=0 will delete the recipient, CC recipients, BCC recipients, title and attachments of MMS message. AT+QMMSEDIT=0 OK AT+QMMSEDIT=1 OK AT+QMMSEDIT=2 OK AT+QMMSEDIT=3 OK AT+QMMSEDIT=4 +QMMSEDIT: 4,"ASCII","" //Clear all the content of MMS message. //Query the recipients. //Query the CC recipients. //Query the BCC recipients. //Query the title of MMS message. OK AT+QMMSEDIT=5 OK 2.3. AT+QMMSEND //Query the attachments. Send MMS Message AT+QMMSEND is used to send MMS message. You should not re-execute AT+QMMSEND until “+QMMSEND: , , ” is returned. When the is reached, but the process of sending MMS message has not finished yet, MMS sending will be interrupted. EC20_MMS_AT_Commands_Manual Confidential / Released 14 / 23 LTE Module Series EC20 MMS AT Commands Manual AT+QMMSEND Send MMS Message Test Command AT+QMMSEND=? Response +QMMSEND: (1-65535) OK Write Command AT+QMMSEND= Response OK +QMMSEND: , [, ] or +CME ERROR: Parameter Example l e t l c a e i t u n Q ide f n o C Integer type, the maximum time to send MMS. The unit is second. The range is 1-65535. If you send MMS successfully, is 0, else indicates the type of error, please refer to Chapter 4 Integer type, the reply code of HTTP, for reference only. For example, 200 indicates HTTP posts data successfully, please refer to Chapter 5 String type, the reply string from MMSC when sending MMS message failed, for reference only AT+QMMSEND=100 OK //Send MMS message. +QMMSEND: 0,200 //Indicate the result of sending MMS message. EC20_MMS_AT_Commands_Manual Confidential / Released 15 / 23 LTE Module Series EC20 MMS AT Commands Manual 3 Example 3.1. Send MMS Message l e t l c a e i t u n Q ide f n o C //Step 1: Configure and activate the PDP context. AT+QICSGP=1,1,“UNIWAP”,“”,“”,1 OK AT+QIACT=1 OK AT+QIACT? +QIACT: 1,1,1,"10.7.157.1" OK AT+QMMSCFG="contextid",1 OK AT+QMMSCFG="contextid" +QMMSCFG: “contextid”,1 OK //Configure PDP context 1, APN is “UNIWAP” for China Unicom. //Activate PDP context 1. //Activate successfully. //Query the state of PDP context. //Set the PDP context ID as 1. The PDP context ID must be activated first. //Query the PDP context ID. //Step 2: Configure the URL and proxy of MMSC. AT+QMMSCFG=“mmsc”,“mmsc.myuni.com” OK AT+QMMSCFG=“mmsc” +QMMSCFG: “mmsc”,“mmsc.myuni.com” OK AT+QMMSCFG=“proxy”,“10.0.0.172”,80 OK AT+QMMSCFG=“proxy” +QMMSCFG: “proxy”,“10.0.0.172”,80 //Configure the URL of MMSC, “mmsc.myuni.com” is for China Unicom. //Query the URL of MMSC. //Configure the proxy address and port of MMSC “10.0.0.172:80” is for China Unicom. //Query the proxy address and port of MMSC. OK EC20_MMS_AT_Commands_Manual Confidential / Released 16 / 23 LTE Module Series EC20 MMS AT Commands Manual //Step 3: Configure sending parameter. AT+QMMSCFG=“sendparam”,6,2,0,0,2,4 OK AT+QMMSCFG=“sendparam” +QMMSCFG: “sendparam”,6,2,0,0,2,4 //Configure the sending parameters. //Query the sending parameters. OK //Step 4: Edit the MMS message. AT+QMMSEDIT=1,1,“13856122546” OK AT+QMMSEDIT=2,1,“copy.test@quectel.com” OK AT+QMMSEDIT=3,1,“secret.test@quectel.com” OK AT+QMMSEDIT=1 +QMMSEDIT: 1,“13856122546” //Add a phone number as recipient. l e t l c a e i t u n Q ide f n o C //Add an email address as CC recipient. //Add an email address as BCC recipient. //Query recipient address. OK AT+QMMSEDIT=2 +QMMSEDIT: 2,“copy.test@quectel.com” //Query CC recipient address. OK AT+QMMSEDIT=3 +QMMSEDIT: 3,“secret.test@quectel.com” //Query BCC recipient address. OK AT+QMMSCFG=“character”,“ASCII” OK AT+QMMSEDIT=4,1,“test EC20 mms” OK AT+QMMSEDIT=4 +QMMSEDIT: 4,“ASCII”,“test EC20 mms” OK //Configure the character type as ASCII for title. //Edit the title of MMS message. //Query the title of MMS message. //Add attachments. AT+QFUPL=“RAM:test_ram.txt”,100,300,1 //Upload a file to RAM, the file will be saved as “test_ram.txt” and the maximum size of file is 100. 300 indicates timeout, 1 indicates ACK mode. (For more details, please refer to Quectel_EC20_FILE_AT_Commands_Manual). CONNECT EC20_MMS_AT_Commands_Manual Confidential / Released 17 / 23 LTE Module Series EC20 MMS AT Commands Manual +QFUPL: 100,0 OK AT+QFLST=“RAM:*” +QFLST: “RAM:test_ram.txt”,100 OK AT+QMMSCFG=“character”,”ASCII” OK AT+QMMSEDIT=5,1,“RAM:test_ram.txt” //Query the file list of RAM. //Configure the character type as ASCII for “RAM:test_ram.txt”. l e t l c a e i t u n Q ide f n o C OK AT+QMMSEDIT=5 +QMMSEDIT: 5,“RAM:test_ram.txt” OK AT+QFUPL=“RAM:test_pic.jpg”,200,300,1 //Add attachment for MMS message, “test_ram.txt” is RAM file. //Query the attachments. //Upload a file to RAM, the file will be saved as “test_pic.jpg” and the maximum size of file is 200 bytes. 300 indicates timeout, 1 indicates ACK mode. (For more details, please refer to Quectel_EC20_FILE_AT_Commands_Manual). CONNECT +QFUPL: 200,0 OK AT+QFLST=“RAM:*” +QFLST: “RAM:test_mms.txt”,100 +QFLST: “RAM:test_pic.jpg”,200 OK AT+QMMSEDIT=5,1,“RAM:test_pic.jpg” OK AT+QMMSEDIT=5 +QMMSEDIT: 5,“RAM:test_mms.txt” +QMMSEDIT: 5,“RAM:test_pic.jpg” //Query the file list of RAM. //“RAM:test_pic.jpg” is not text file, you do not need to specify the character set. //Query the attachments. OK //Step 5: Send MMS message. AT+QMMSEND=100 EC20_MMS_AT_Commands_Manual //Send MMS message. Confidential / Released 18 / 23 LTE Module Series EC20 MMS AT Commands Manual OK +QMMSEND: 0,200 //Indicate the result of sending MMS message. //Step 6: Clear the content of MMS message. AT+QMMSEDIT=0 OK AT+QFDEL=“RAM:test_ram.txt” OK AT+QFDEL=“RAM:test_pic.jpg” OK //Clear the contents of MMS message. //Delete the RAM file. //Delete the RAM file. l e t l c a e i t u n Q ide f n o C EC20_MMS_AT_Commands_Manual Confidential / Released 19 / 23 LTE Module Series EC20 MMS AT Commands Manual 4 Summary of Error Codes indicates an error related to mobile equipment or network. The details about are described in the following table. l e t l c a e i t u n Q ide f n o C Table 1: Summary of Error Codes 751 752 753 754 755 756 757 758 759 760 761 762 763 764 Meaning Unknown error URL length error URL error Proxy type invalid Proxy address error Invalid parameter Recipient address full CC recipient address full BCC recipient address full Attachments full File error No recipient File not found MMS busy 765 Server response failed 766 Error response of HTTP post 767 Invalid report of HTTP post 768 Activate PDP fail EC20_MMS_AT_Commands_Manual Confidential / Released 20 / 23 LTE Module Series EC20 MMS AT Commands Manual 769 PDP deactivated 770 Socket create fail 771 Socket connect fail 772 Socket read fail 773 Socket write fail 774 Socket closed 775 Timeout 776 777 l e t l c a e i t u n Q ide f n o C Encode data error HTTP decode data error EC20_MMS_AT_Commands_Manual Confidential / Released 21 / 23 LTE Module Series EC20 MMS AT Commands Manual 5 Description of HTTP Response Codes The HTTP response error code indicates an error replied from MMSC. Please refer to RFC2616 (Hypertext Transfer Protocol--HTTP/1.1). The details about are described in the following table. l e t l c a e i t u n Q ide f n o C Table 2: Description of HTTP Response Code 200 400 403 404 409 411 500 502 Meaning OK Bad request Forbidden Not found Conflict Length required Internal server error Bad gate way EC20_MMS_AT_Commands_Manual Confidential / Released 22 / 23 LTE Module Series EC20 MMS AT Commands Manual 6 Appendix A Reference Table 3: Related Documents SN Document Name Remark [1] Wap-209-mmsencapsulation-20020105-a Wap MMS protocol standard package of documents [2] RFC2616 Hypertext Transfer Protocol--HTTP/1.1 [3] Quectel_EC20_FILE_AT_Commands_Manual Introduction commands [4] Quectel_EC20_TCPIP_AT_Commands_Manual Introduction about EC20 TCPIP AT commands [5] Quectel_EC20_AT_Commands_Manual EC20 AT commands manual l e t l c a e i t u n Q ide f n o C about EC20 FILE AT Table 4: Terms and Abbreviations Abbreviation MMS MMSC HTTP CC BCC PDP URL Description Multimedia Messaging Service Multimedia Messaging Service Center Hypertext Transfer Protocol Carbon Copy Blind Carbon Copy Packet Data Protocol Uniform Resource Locator EC20_MMS_AT_Commands_Manual Confidential / Released 23 / 23
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Has XFA : No Language : zh-CN XMP Toolkit : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:08:04 Format : application/pdf Creator : kelly Create Date : 2015:06:15 13:55:10+08:00 Creator Tool : Microsoft® Word 2010 Modify Date : 2015:06:15 13:57:55+08:00 Metadata Date : 2015:06:15 13:57:55+08:00 Producer : Microsoft® Word 2010 Document ID : uuid:ee34e02f-52ae-4305-ac62-37341bd4edb9 Instance ID : uuid:47e2e08b-cc15-47eb-9dad-ce1c4211d4a5 Page Mode : UseOutlines Page Count : 24 Author : kellyEXIF Metadata provided by EXIF.tools