GSM. Quectel Cellular Engine. HTTP Service AT Commands GSM_HTTP_ATC_V1.2



Similar documents
Quectel Cellular Engine

Quectel Cellular Engine

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

Quectel Cellular Engine

SIMCom_3G_SSL_Application Note_V1.10

SIM800 Series_IP_Application Note_V1.02

QuecLocator Application Note

Quectel Cellular Engine

SIM800 Series_SSL_Application Note_V1.01

U10. Quectel Cellular Engine. Video Call Application Notes. U10_ Video_Call_AN_V1.0

SIM800 Series_SSL_Application Note_V1.00

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

Quectel Cellular Engine

SIM900_Custom Application Building Tutorial_Application Note_V1.00

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

Revision: 002 Date: September Porting Guide From EdSoft V3.10 to WIPSoft V2.00

L10. Quectel GPS Engine. EVB User Guide L10_EVB_UGD_V1.00

SMS Application Note. SIM5360_SMS_Application_Note_V0.01

NQA Technology White Paper

SIM900 Eclipse environment install Application Note_V1.00

Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

Installation & Configuration Manuel. Socket Server. OpenAT application

(SMTP/POP3) Application Note

M95 Dual SIM Application Notes

SIM300 FTP IMPLEMENATION. (Step by Step Approach)

TCPIP Application Note for WCDMA Solution V2.0

ADH8060/8066 GSM/GPRS Module

SIM800 Series_FM_Application Note_V1.00

Nokia E61i Configuring connection settings

Using IPM to Measure Network Performance

Using AT commands to control TCP/IP stack on SM5100B-D modules

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. G.Bianchi, G.Neglia, V.Mancuso

Nokia for Business. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

OCS Training Workshop LAB14. Setup

WIFI OBD GPS Tracker T356 User Manual

MFPConnect Monitoring. Monitoring with IPCheck Server Monitor. Integration Manual Version Edition 1

AT Commands Examples. Examples for u-blox GSM/GPRS modules. Application Note. locate, communicate, accelerate. Abstract

Avalanche Remote Control User Guide. Version 4.1.3

Configuring Health Monitoring

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

CA Nimsoft Monitor. Probe Guide for URL Endpoint Response Monitoring. url_response v4.1 series

IMF Tune Quarantine & Reporting Running SQL behind a Firewall. WinDeveloper Software Ltd.

H3C Firewall and UTM Devices DNS and NAT Configuration Examples (Comware V5)

Enabling NetFlow on Virtual Switches ESX Server 3.5

Data Communication I

Firewall Stateful Inspection of ICMP

FTP Peach Pit Data Sheet

How To Test The Bandwidth Meter For Hyperv On Windows V (Windows) On A Hyperv Server (Windows V2) On An Uniden V2 (Amd64) Or V2A (Windows 2

Mini A8 Instructions. Location Inquiry /Track Inquiry/ Battery status Inquiry Electronic fence/voice Callback/ Emergency Alarm.

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

WCDMA&GSM Module_Extra_Function_for_Network

Architecture and Data Flow Overview. BlackBerry Enterprise Service Version: Quick Reference

bizhub C3850/C3350 USER S GUIDE Applied Functions

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

HTTP 1.1 Web Server and Client

Issue 2EN. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

FortiOS Handbook - Load Balancing VERSION 5.2.2

Deployment Guide. AX Series with Microsoft Exchange Server

F2103 GPRS DTU USER MANUAL

Appendix. Web Command Error Codes. Web Command Error Codes

User Manual Document HTTP-Direct / FTPServer and FLASH file system

Cisco Configuring Commonly Used IP ACLs

OfficeServ Link. User Guide. Version 2.1 June 2005

CRESTRON-APP/CRESTRON-APP-PAD Control App for Apple ios

Configuring connection settings

Notification messages

ipecs Communicator Installation and Operation Guide Please read this manual carefully before operating your set. Retain it for future reference.

mypro Installation and Handling Manual Version: 7

E. The Password is for the security purposes and the SMS commands can be used after the password verification.

µtasker Document FTP Client

Managing Virtual Servers

Parallels Plesk Panel

Error Codes for F-Secure Anti-Virus for Firewalls, Windows 6.20

1 Introduction: Network Applications

Understand Troubleshooting Methodology

SIP Trunking Manual Technical Support Web Site: (registration is required)

Wireless Communication With Arduino

TCP/IP Networking, Part 2: Web-Based Control

Wifi Web Server Module w TF Socket User s Guide

Understanding Slow Start

KX-Series PBX TAPI Service Provider

Teltonika FM41XX. Configurator v. 1.0

CA Nimsoft Monitor. Probe Guide for Apache HTTP Server Monitoring. apache v1.5 series

TFTP TRIVIAL FILE TRANSFER PROTOCOL OVERVIEW OF TFTP, A VERY SIMPLE FILE TRANSFER PROTOCOL FOR SIMPLE AND CONSTRAINED DEVICES

Canon WFT-E1 (A) Wireless File Transmitter. Network Support Guide

Installation and setup guide V 1.0

WIRELESS ALARM MONITORING. User Manual V1.2

CentreWare Internet Services Setup and User Guide. Version 2.0

M80 EVB User Guide M80. Quectel Cellular Engine. EVB User Guide M80_EVB_UGD_V1.2 M80_EVB_UGD_V1.2-0-

Ethernet. Customer Provided Equipment Configuring the Ethernet port.

How To Connect To A Ppanasonic Pbx On A Pc Or Mac Or Ipa (For A Pc) With A Usb Or Ipo (For Mac) With Pbq (For Pc) On A Usb (For Pb

Configuring Health Monitoring

Network Interface Table of Contents

Nokia Call Connect v1.1 for Cisco User s Guide. Part Number: N Rev 003 Issue 1

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

GoIP Series. SIM Card for GSM Voice Gateway. User Manual

Lab Configure Cisco IOS Firewall CBAC

SNMP Peach Pit Data Sheet

IPv6 Diagnostic and Troubleshooting

Automation Engine 14. Troubleshooting

Transcription:

GSM Cellular Engine HTTP Service AT Commands GSM_HTTP_ATC_V1.2

Document Title HTTP Service AT Commands Version 1.2 Date 2015-04-13 Status Document Control ID Release GSM_HTTP_ATC_V1.2 General Notes offers this information as a service to its customers, to support application and engineering efforts that use the products designed by. The information provided is based upon requirements specifically provided to by the customers. 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 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 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 Wireless Solutions Co., Ltd. 2015 GSM_HTTP_ATC_V1.2-1 -

Contents Contents... 2 0. Revision history... 3 1. Introduction... 4 1.1. Reference... 4 2. AT Commands for HTTP Service... 5 2.1. Overview of AT Commands for HTTP Service... 5 2.2. Detailed Description of AT Commands for HTTP Service... 5 2.2.1. AT+QHTTPURL Set HTTP Server URL... 5 2.2.2. AT+QHTTPGET Send HTTP GET Request... 6 2.2.3. AT+QHTTPREAD Read HTTP Server... 6 2.2.4. AT+QHTTPPOST Send HTTP POST Request... 7 2.2.5. AT+QHTTPDL Download file from http server... 8 3. Supported unsolicited result codes... 9 3.1. Summary of CME ERROR Codes... 9 4. Examples... 11 4.1. Send HTTP GET Request... 11 4.2. Send HTTP POST Request... 12 4.3. Download file form HTTP server... 13 GSM_HTTP_ATC_V1.2-2 -

0. Revision history Revision Date Author Description of change 1.00 2009-07-06 Jay XIN Initial 1.1 2012-06-04 Will SHAO Added Command AT+QHTTPDL 1.2 2015-04-13 Will SHAO Added applicable modules GSM_HTTP_ATC_V1.2-3 -

1. Introduction Module has an internal TCP/IP stack that is driven by AT commands and enables the host application to easily access the Internet service. It includes TCP service, UDP service, FTP service and HTTP service, etc. This document is a reference guide to all the AT commands and responses defined for HTTP Service. The advantage of this solution is that it eliminates the need for the application manufacturer to implement own HTTP protocol, thus minimizing cost and time to integrate Internet connectivity into a new or existing host application. This document is applicable to all GSM modules. 1.1. Reference Table 1: Reference SN Document name Remark [1] GSM_TCPIP_AN.pdf TCPIP Application Notes [2] RFC 2616 GSM_HTTP_ATC_V1.2-4 -

2. AT Commands for HTTP Service 2.1. Overview of AT Commands for HTTP Service Command Description AT+QHTTPURL Set HTTP Server URL AT+QHTTPGET Send HTTP GET Request AT+QHTTPREAD Read HTTP Server AT+QHTTPPOST Send HTTP POST Request AT+QHTTPDL Download file from http server Execution of above HTTP related AT commands will switch to data mode. To switch back to AT mode, you can input +++ and this will terminate the current HTTP AT command. The interval time between the first + and the character before the first + MUST NOT be less than 500 ms and the interval time between the last + and the character next to the last + MUST NOT be less than 500 ms and the interval time between each + MUST be less than 1000 ms. 2.2. Detailed Description of AT Commands for HTTP Service 2.2.1. AT+QHTTPURL Set HTTP Server URL AT+QHTTPURL Test Command AT+QHTTPURL=? Write Command AT+QHTTPURL=<url_len Reference Set HTTP Server URL +QHTTPURL: (1-450),(1-65535) Parameter See Write Command > If error is related, to ME functionality: ERROR < +CME ERROR: i <err> Parameter n <url_len> p The length in bytes of the URL. <input_time> u Maximum time in seconds to input URL. If sending HTTP GET Request, for example, input URL path: http://api.efxnow.com/demowebservices2.8/service.asmx/echo? GSM_HTTP_ATC_V1.2-5 -

Message=helloquectel If sending HTTP POST Request, for example, input URL path: http://api.efxnow.com/demowebservices2.8/service.asmx/echo Server address must be provided as IP address in standard dot-format (e.g. 192.168.1.1 ) or as server address names resolvable by a DNS server (e.g. api.efxnow.xom ). 2.2.2. AT+QHTTPGET Send HTTP GET Request AT+QHTTPGET Send HTTP GET Request Test Command AT+QHTTPGET=? Write Command AT+QHTTPGET=<to_read Reference +QHTTPGET: (1-65535) Parameter See Write Command _ If error is related t to ME functionality: ERROR +CME ERROR: m <err> i Parameter e <to_read_time> > Time in seconds. AT+QHTTPREAD will be 2.2.3. AT+QHTTPREAD Read HTTP Server AT+QHTTPREAD Read HTTP Server Test Command AT+QHTTPREAD=? Write Command AT+QHTTPREAD=<wait_t +QHTTPREAD: (1-65535) Parameter See Write Command <data> i m invalid if the idle time after AT+QHTTPGET is longer than the time of <to_read_time>. e GSM_HTTP_ATC_V1.2-6 -

Reference If error is related > to ME functionality: ERROR +CME ERROR: <err> Parameter <wait_time> <data> Time in seconds. It will close http session when timeout. The data of HTTP server responds. 2.2.4. AT+QHTTPPOST Send HTTP POST Request AT+QHTTPPOST Send HTTP POST Request Test Command AT+QHTTPPOST=? Write Command AT+QHTTPPOST=<body_siz Reference +QHTTPPOST: (1-29696),(1-65535),(1-65535) Parameter See Write Command <body_data> e >, If error is related < to ME functionality: ERROR +CME ERROR: n <err> Parameter p <body_size> u <input_time> t _ <to_read_time> t i m e <body_data> i Size in bytes of the body data to POST. Maximum time in seconds to input the body data. Time in seconds. AT+QHTTPREAD will be invalid if the idle time after AT+QHTTPGET is longer than the time of <to_read_time> Input the body data to POST from UART. GSM_HTTP_ATC_V1.2-7 -

2.2.5. AT+QHTTPDL Download file from http server AT+QHTTPDL Download file from http server Test Command AT+QHTTPDL=? +QHTTPDL:"filename"[,<length>[,(1-65535)]] Parameter See Write Command Write Command AT+QHTTPDL= <filename> [,<length> [, wait_time]] Reference Finally, if download the file successfully, response + QHTTPDL:<dl size>,<content-length>,<errcode> If error is related to ME functionality: ERROR +CME ERROR: <err> Parameter <filename> <length> The path of the file to be stored, such as RAM:1.txt The maximum size of the file to be <wait_time> <dl size> <content-length> <errcode> download. Default is 10240. Unit: byte. It is only used for RAM file. Time in seconds. It will close http session when timeout. The length of data has been download The content length. If the content-length is unknown, then set it to -1. If all data has been download, the <errcode> is 0, else it is a numeric to <err> indicate the type of error, please refer to the chapter 3. A numeric to indicate the type of error, please refer to the chapter 3. GSM_HTTP_ATC_V1.2-8 -

3. Supported unsolicited result codes 3.1. Summary of CME ERROR Codes Final result code +CME ERROR: <err> indicates an error related to mobile equipment or network. The operation is similar to ERROR result code. None of the following commands in the same Command line is executed. Neither ERROR nor result code shall be returned. The following <err> is just the new <err> code for HTTP. About other <err> codes, please refer to [1]. <err> values used by common messaging commands: Code of <err> Meaning 3801 HTTP time out 3802 HTTP busy 3803 HTTP UART busy 3804 HTTP get no request 3805 HTTP network busy 3806 HTTP network open failed 3807 HTTP network no config 3808 HTTP network deactive 3809 HTTP network error 3810 HTTP url error 3811 HTTP empty url 3812 HTTP ip addr error 3813 HTTP DNS error 3814 HTTP socket create error 3815 HTTP socket connect error 3816 HTTP socket read error 3817 HTTP socket write error 3818 HTTP socket close 3819 HTTP data encode error 3820 HTTP data decode error 3821 HTTP to read timeout 3822 HTTP response failed 3823 incoming call busy 3824 voice call busy 3825 input timeout 3826 wait data timeout 3827 wait http response timeout 3828 alloc memory fail GSM_HTTP_ATC_V1.2-9 -

3829 HTTP need relocation 4000 Exceed max length 4001 Open file fail 4002 Write file fail 4003 Get size fail 4004 Read fail 4005 List file fail 4006 Delete file fail 4007 Get Disk info fail 4008 No space 4009 Time out 4010 File not found 4011 File too large 4012 File already exist 4013 Invalid parameter 4014 Driver error 4015 Create fail 4016 Access denied 4017 File too large GSM_HTTP_ATC_V1.2-10 -

4. Examples 4.1. Send HTTP GET Request AT+QIFGCNT=0 AT+QICSGP=1,"CMNET" //Set APN AT+QIREGAPP //Optional AT+QIACT AT+QHTTPURL=79,30. //for example, input 79 bytes: //Optional //Set the URL http://api.efxnow.com/demowebservices2.8/service.asmx/echo?message=helloquectel AT+QHTTPGET=60 AT+QHTTPREAD=30. //for example, UART outputs: //Send HTTP GET Request //Read the response of HTTP server. //Output the response data of HTTP server to UART. <?xml version="1.0" encoding="utf-8"?> <string xmlns="https://api.efxnow.com/webservices2.3">message='helloquectel' ASCII:104 101 108 108 111 113 117 101 99 116 101 108 </string> AT+QIDEACT DEACT //Deactivate GPRS PDP connect. GSM_HTTP_ATC_V1.2-11 -

4.2. Send HTTP POST Request AT+QIFGCNT=0 AT+QICSGP=1,"CMNET" //Set APN AT+QIREGAPP //Optional AT+QIACT //Optional AT+QHTTPURL=58,30 //Set the URL,. //for example, input 58 bytes: http://api.efxnow.com/demowebservices2.8/service.asmx/echo AT+QHTTPPOST=18,50,10 //POST the data whose size is 18 Bytes and the maximum latency time for inputting is 50 s. It is recommended to set the latency time as long as enough to download all the data in the latency time. //for example, input 18 bytes: Message=helloworld //This means it is ready to receive data from UART. And DCD has been set to low. Receive data from UART and not echo. //This means all data has been received over, and DCD is set to high. AT+QHTTPREAD=30 //Read the response of HTTP server.. //Output the response data of HTTP server to UART //for example, UART outputs: <?xml version="1.0" encoding="utf-8"?> <string xmlns="https://api.efxnow.com/webservices2.3">message='helloworld' ASCII:104 101 108 108 111 119 111 114 108 100 </string> GSM_HTTP_ATC_V1.2-12 -

AT+QIDEACT DEACT //Deactivate GPRS PDP connect. 4.3. Download file form HTTP server AT+QIFGCNT=0 AT+QICSGP=1,"CMNET" //Set APN AT+QIREGAPP AT+QIACT AT+QHTTPURL=29,30. //for example, input 29 bytes: http://api.efxnow.com/1.txt AT+QHTTPGET=60 //Optional //Optional //Set the URL, //Send HTTP GET Request AT+QHTTPDL= RAM:1.TXT,1024 //Download the file to RAM:1.TXT, max size is + QHTTPDL:100,100,0 1024 bytes GSM_HTTP_ATC_V1.2-13 -

Shanghai Wireless Solutions Co., Ltd. Room 801, Building E, No.1618, Yishan Road, Shanghai, China 201103 Tel: +86 21 5108 2965 Mail: info@quectel.com