SIM7000 Series_HTTP_Application Note_V1.01

Similar documents
Smart Machine Smart Decision. SIM900_IP_Application Note_V1.07 1

SIM7000 Series_FTP_Application Note_V1.00

SIM7000 Series_NTP_Application Note_V1.00

SIMCom_3G_HTTP_Application Note_V1.00

SIM7100_SIM7500_SIM7600 LBS_Application Note_V1.00

UART. SIM5360 UART Multiplexer Application Note. SIM5360_UART_Multiplexer_Application_Note_V

SIM7000 Series_PING_Application Note_V1.00

SIMCom_3G_Linux_Driver_Applica tion Note_V1.00

UART Application Note

SIMCom_3G_MQTT_Application Note_V1.00

Delta Package Update Application Note

AT Commands Set SIM20_ATC_V1.02

GSM. Quectel Cellular Engine. Firmware Update Application Note. Fw_Update_Application_Note_V3.1

SIM800H&L_ Secondary Reflow SMT _Guidelines_V1.00

SIM900_DTMF EmbeddedAT Application Note_V1.01

Audio LINE-IN input application. AN_SIM900_Audio LINE-IN Input_V1.01

UART Dload Application Note

SIM5360_GPIO_Demo Note_V1.00

SIM7X00 Series_SAT_Application Note_V1.00

SIMCom_3G_CSD_Application Note_V1.00

Quectel Cellular Engine

HTTP Application Note

SIM900 AMR File Playing Application Note_V1.01

Quectel Cellular Engine

SIM800C-DS_Application Note _V1.00

Smart Machine Smart Decision. R700_User Guide_V1.05 1

SIM800 Series_FS_Application Note_V1.01

SIM5350_EVM_User_Guide _V1.00

UART Application Note. SIM5XXX UART Application Note 1

Document Name: GPRS Startup. GPRS Startup_V01.00 Status: Created

SIM7100 TTS Application Note

GPS Application Note

SIMCom_SIM800H_EAT_flash_Tool _User Manual_V1.01

Development Kit Manual SIM305-EVB_UGD_V1.01

SIM800H&L_EVM_User Guide _V1.00

SIM20_AT Command Manual_V1.04

SIM28_EVB kit_user Guide_V1.02

SIMCOM WCDMA Wireless Module. xx_sleep_mode_application_note

SIMCom_3G_PCM_Application Note_V1.04

SIM5360 Network Cell Info Application Note

SIM7X00 Series_TCPIP_Application Note_V1.00

How to use Linux driver

SSL Application Note. SIM5360_SSL_Application_Note_V0.01

Firmware Upgrade Tool Lite User Guide. Firmware_Upgrade_Tool_Lite_V1.1

QuecLocator AT Commands Manual

SIM800H_ Secondary Reflow SMT Guidelines _V1.01

SIM900_Multiplexer Manual_Application Note_V1.3

Development Kit Manual SIM900D-EVB_UGD_V1.01

How to use the SIM7100 Module in Linux

Quectel Cellular Engine

Quectel Cellular Engine

TCP/IP Application Note

EC20 MMS AT Commands Manual

Application Note. SIM7100_SMS_Application_Note_V

SIM7100 Network Cell Info Application Note

SIM7100 GPS Application Note

EC2x&EG9x&EM05 PPP Application Note

BG96 PPP Application Note

SIMCOM WCDMA Wireless Module SIM5xxx PCM Application Note

SMS Application notes AN_SMS_V1.01

SIM5360 BMP Demo Basic Datanet Working Note V1.00

SIM7500_SIM7600_SIM7800 Series_HTTP_AT Command Manual_V1.00

Quectel Cellular Engine

GSM. Quectel Cellular Engine. GSM TCPIP Recommended Process. GSM_TCPIP_Recommended_. Process_V1.2

Development Kit Manual. SIM908 EVB kit_user Guide_V1.00

WCDMA UGxx PPP Application Note

SIM5360_ECALL_Application Note_V0.04

GSM Recording AT Commands Manual

TCP/IP APP_V1.02 Status: Release

GSM/GPRS/GPS Tracker GL300 User Manual

M10-TE-A. Quectel Cellular Engine. Hardware Design M10-TE-A_HD_V1.01

Application Note. SIM7100_MMS_Application_Note_V

GSM/GPRS/GPS Tracker GL300 User Manual

BG96 SSL AT Commands Manual

Development Kit Manual. SIM5360_EVB_User Guide_V1.02

EC20 SSL AT Commands Manual

(SMTP/POP3) Application Note

Enduro Plus 3G USER MANUAL. TrackingTheWorld.com. Multi-purpose Tracking Device

GSM. Quectel Cellular Engine. GSM FILE AT Commands GSM_FILE _ATC_V1.4

EC2x&EG9x&EM05 HTTP(S) AT Commands Manual

M10. Quectel Cellular Engine. EVB User Guide M10_EVB_UGD_V1.00

UC15 SSL AT Commands Manual

BC95-G&BC68 MQTT Application Note

WCDMA Audio Player Application Note

TRACGV75UM001. Version: R1.03

SCOPE. SMS Application notes

M95 Dual SIM Application Notes

Mini PCIe_EVB kit_ User Guide_V1.00

SMT Guidelines Module Secondary SMT UGD_V1.16

CDMA2000-1X Tracker GL300VC. User Manual. Application Notes: TRACGL300VCUM001 Revision:

BC95 Firmware Upgrade via Code Loader User Guide

SIM900 Reference Design Guide. SIM900_AN_ Reference Design Guide_V1.01

GSM Audio Player Application Note

VL3000 Manager Tool User Guide V1.05

UC20 WinCE USB Driver

UC20 Android RIL Driver User Guide

SIM908_Reference Design Guide _Application Note_V1.00

L76-L I2C Application Note

GSM QuecCell AT Commands Manual

MC35 Siemens Cellular Engine

Transcription:

SIM7000 Series_HTTP_Application Note_V1.01

Document Title SIM7000 Series_HTTP_Application Note Version 1.01 Date Status Document Control ID Release SIM7000 Series_HTTP_ Application Note_V1.01 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 Shanghai SIMCom Wireless Solutions Ltd, 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. 2017 SIM7000 Series_HTTP_Application Note_V1.01 3

Contents 1... 6 1.1 Features... 6 2 AT commands... 7 3 Examples... 8 3.1. Bearer Configure... 8 3.2. HTTP GET Method... 8 3.3. HTTP POST Method... 8 3.4. HTTP HEAD Method... 9 3.5. Set Proxy HTTP Server... 9 3.6. Set HTTP Redirection Parameter... 10 3.7. Set HTTP Download Break Point Parameter... 11 3.8. Get HTTP Current Status... 11 Appendix... 13 A. Related Documents... 13 B. Terms and Abbreviations... 13 SIM7000 Series_HTTP_Application Note_V1.01 4

Version History Date Version What is new Author 2017-07-10 1.00 New version Dingfen.zhu 1.01 Deleted related description of GPRS Wenjie.lai Scope This document presents the AT command of HTTP operation and application examples. This document can apply to SIM7000 series modules with HTTP function. SIM7000 Series_HTTP_Application Note_V1.01 5

1 This chapter introduces the HTTP application features of SIM7000 series modules 1.1 Features 1) SIM7000 series modules support Hyper Text Transfer Protocol application, which provides a mode to alternate of HTTP server. The basic application contains GET, POST, HEAD methods; it also supports proxy server, redirection, broken transfer resuming functions. SIM7000 Series_HTTP_Application Note_V1.01 6

2 AT commands Command AT+HTTPPARA AT+HTTPDATA AT+HTTPACTION AT+HTTPREAD AT+HTTPSTATUS Initialize HTTP service Set HTTP parameters value Input HTTP data Http method action Read the HTTP server response Read HTTP status SIM7000 Series_HTTP_Application Note_V1.01 7

3 Examples In the "" columns of following tables, input of AT commands are in black, module return values are in blue. 3.1. Bearer Configure AT+SAPBR=3,1,"APN","CMNET" AT+SAPBR=1,1 AT+SAPBR=2,1 +SAPBR:1,1,"10.89.193.1" Configure bearer profile 1 To open bearer To query bearer AT+SAPBR=0,1 To close bearer 3.2. HTTP GET Method Download data from HTTP server. AT+HTTPPARA="URL","www.sim.com" AT+HTTPACTION=0 +HTTPACTION: 0,200,1000 AT+HTTPREAD +HTTPREAD: 1000. GET session start GET successfully Read the data of HTTP server 3.3. HTTP POST Method SIM7000 Series_HTTP_Application Note_V1.01 8

Upload data to HTTP server. AT+HTTPPARA="URL","www.sim.com" AT+HTTPDATA=100,10000 DOWNLOAD AT+HTTPACTION=1 +HTTPACTION: 1,200,0 POST the data whose size is 100 Bytes and the maximum latency time for inputting is 10000 ms. It is recommended to set the latency time long enough to allow downloading all the data. It is ready to receive data from UART, and DCD has been set to low. All data has been received over, and DCD is set to high. POST session start POST successfully 3.4. HTTP HEAD Method Get HTTP head information from HTTP server. AT+HTTPPARA="URL","www.sim.com" AT+HTTPACTION=2 +HTTPACTION: 2,200,0 HEAD session start HEAD successfully 3.5. Set Proxy HTTP Server It provides the method to use proxy HTTP server. SIM7000 Series_HTTP_Application Note_V1.01 9

AT+HTTPPARA="URL","www.sim.com" AT+HTTPPARA="PROIP","10.0.0.172" AT+HTTPPARA="PROPORT",80 AT+HTTPACTION=0 +HTTPACTION: 0,200,1000 AT+HTTPREAD +HTTPREAD: 1000. Set proxy server IP address Set proxy server port GET session start GET successfully Read the data of HTTP server. Output the data to UART 3.6. Set HTTP Redirection Parameter It provides the method to use HTTP redirection function. AT+HTTPPARA="REDIR",1 AT+HTTPPARA="URL","www.sim.com/a bcde" AT+HTTPACTION=0 +HTTPACTION: 0,200,1000 AT+HTTPREAD +HTTPREAD: 1000. Set the redirection parameter Set the URL GET session start GET successfully Read the response of HTTP server Output the data to UART SIM7000 Series_HTTP_Application Note_V1.01 10

3.7. Set HTTP Download Break Point Parameter It provides the method to use HTTP broken download resuming function. AT+HTTPPARA="URL","HTTP://www.si m.com/img/sim_logo_jr_1003_38.gif" AT+HTTPPARA="BREAK",2000 AT+HTTPACTION=0 +HTTPACTION: 0, 200,14384 AT+HTTPREAD +HTTPREAD: 14384. Set the URL, the size of gif is 16384 bytes Set the break point GET session start, get data from 2000 to 16384 GET successfully Read the data of HTTP server Output the data to UART 3.8. Get HTTP Current Status AT+HTTPPARA="URL","www.baidu.com " AT+HTTPACTION=0 AT+HTTPSTATUS? +HTTPSTATUS: GET,1,1440,7915 Set the URL Get session start The status of getting session is in progress SIM7000 Series_HTTP_Application Note_V1.01 11

+HTTPACTION: 0, 200,9335 AT+HTTPSTATUS? +HTTPSTATUS: GET,0,0,0 GET successfully The status of getting session is over AT+HTTPACTION=1 AT+HTTPSTATUS? +HTTPSTATUS: POST,2,1440,608 POST session start The status of posting session is in progress +HTTPACTION: 1,200,0 AT+HTTPSTATUS? +HTTPSTATUS: POST,0,0,0 POST successfully The status of posting session is over SIM7000 Series_HTTP_Application Note_V1.01 12

Appendix A. Related Documents SN Document name Remark [1] SIM7000 Series_AT Command Manual B. Terms and Abbreviations Abbreviation HTTP APN PDP Hypertext Transfer Protocol Access Point Name Packet Data Protocol SIM7000 Series_HTTP_Application Note_V1.01 13

Contact us: Shanghai SIMCom Wireless Solutions Co.,Ltd. Smart Machine Smart Decision Address: Building A, SIM Technology Building, No. 633, Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.simcomm2m.com SIM7000 Series_HTTP_Application Note_V1.01 14