SIM800 Series_IP
_Application Note
GPRS Module
SIMCom Wireless Solutions Limited
Building B, SIM Technology Building, No.633, Jinzhong Road
Changning District, Shanghai P.R. China
Tel: 86-21-31575100
support@simcom.com
www.simcom.com
SIM800 Series_IP_Application Note_V1.05
SIM800 Series_IP_Application Note
1.05
2020.6.15
Released
Document Title:
Version:
Date:
Status:
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 WIRELESS SOLUTIONS LIMITED COPYING, TO OTHERS AND USING THIS DOCUMENT,
ARE FORBIDDEN WITHOUT EXPRESS AUTHORITY BY SIMCOM. OFFENDERS ARE LIABLE TO THE
PAYMENT OF INDEMNIFICATIONS. ALL RIGHTS RESERVED BY SIMCOM IN THE PROPRIETARY
TECHNICAL INFORMATION ,INCLUDING BUT NOT LIMITED TO REGISTRATION GRANTING OF A
PATENT , A UTILITY MODEL OR DESIGN. ALL SPECIFICATION SUPPLIED HEREIN ARE SUBJECT TO
CHANGE WITHOUT NOTICE AT ANY TIME.
SIMCom Wireless Solutions Limited
Building B, SIM Technology Building, No.633 Jinzhong Road, Changning District, Shanghai P.R. China
Tel: +86 21 31575100
Email: simcom@simcom.com
For more information, please visit:
https://www.simcom.com/download/list-863-en.html
For technical support, or to report documentation errors, please visit:
https://www.simcom.com/ask/ or email to: support@simcom.com
Copyright © 2020 SIMCom Wireless Solutions Limited All Rights Reserved.
www.simcom.com 2 / 24
SIM800 Series_IP_Application Note_V1.05
3.16,
change
What is new
First Release
Chapter
"AT+FTPREST=20"
Chapter Scope,Add project
Scope
Chapter 3.9,Add example of “AT+HTTPGETHEAD”
"AT+FTPRESET=20"
to
All
About Document
Version History
Version Date
V1.00
2013.8.01
Owner
Hanjun.Liu
2013.10.28
Hanjun.Liu
2014.6.30
Hanjun.Liu
2016.11.17 Wenjie.Lai
Wenjie.Lai
2019.9.18
Liuyang.Zhang
/Wenjie.Lai
2020.6.15
V1.01
V1.02
V1.03
V1.04
V1.05
Scope
This document presents the AT command of HTTP&FTP operation and application examples. This
document can apply to SIM800 series modules with HTTP and FTP function.
www.simcom.com 3 / 24
SIM800 Series_IP_Application Note_V1.05
Contents
About Document .................................................................................................................... 3
Version History .................................................................................................................................... 3
Scope .................................................................................................................................................... 3
Contents ................................................................................................................................. 4
Introduction ...................................................................................................................... 5
1
1.1 Purpose of the document ............................................................................................................ 5
1.2 Related documents ..................................................................................................................... 5
1.3 Conventions and abbreviations ................................................................................................... 5
2 AT commands .................................................................................................................. 6
3
IP Examples ..................................................................................................................... 8
3.1 Bearer Configure ......................................................................................................................... 8
3.2 HTTP GET Method ..................................................................................................................... 8
3.3 HTTP POST Method ................................................................................................................... 9
3.4 HTTP HEAD Method ................................................................................................................... 9
3.5 Set Proxy HTTP Server ............................................................................................................. 10
3.6 HTTP Redirection Parameter .................................................................................................... 10
3.7 Set HTTP Download Break Point Parameter ............................................................................ 11
3.8 Get HTTP Current Status .......................................................................................................... 12
3.9 Show HTTP Header Information ............................................................................................... 12
3.10 FTP GET Method ...................................................................................................................... 13
3.11 FTP PUT Method ...................................................................................................................... 14
3.12 FTP Time out ............................................................................................................................ 15
3.13 FTP Error .................................................................................................................................. 15
3.14 FTP Operation Error ................................................................................................................. 16
3.15 FTP READ and WRITE Error .................................................................................................... 16
3.16 Set FTP Download Break Point Parameter ............................................................................... 17
3.17 FTP DELE Method .................................................................................................................... 17
3.18 FTP SIZE Method ..................................................................................................................... 18
3.19 FTP MKD and RMD Method ..................................................................................................... 18
3.20 FTP LIST Session ..................................................................................................................... 19
3.21 FTP Extend PUT Method .......................................................................................................... 20
3.22 FTPGETTOFS Method ............................................................................................................. 20
3.23 FTPPUTFRMFS Method ........................................................................................................... 21
3.24 FTPEXTGET Method ................................................................................................................ 22
3.25 FTPFILEPUT Method................................................................................................................ 23
3.26 HTTP Redirection Parameter .................................................................................................... 23
www.simcom.com 4 / 24
SIM800 Series_IP_Application Note_V1.05
1 Introduction
This chapter introduces the IP application features of SIM800 series modules.
1.1 Purpose of the document
SIM800 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.
SIM800 series modules support File Transfer Protocol application. which provides a mode to interact with
FTP server. The basic application contains GET, PUT methods, it also supports broken transfer resuming
function. PUT method supports APPE, STOR and other modes.
1.2 Related documents
[1] SIM800 Series_AT Command Manual
1.3 Conventions and abbreviations
Abbreviation
FTP
HTTP
APN
GPRS
PDP
Description
File Transfer Protocol
Hypertext Transfer Protocol
Access Point Name
General Packet Radio Service
Packet Data Protocol
www.simcom.com 5 / 24
SIM800 Series_IP_Application Note_V1.05
2 AT commands
Command
AT+HTTPINIT
AT+HTTPTERM
AT+HTTPPARA
AT+HTTPDATA
AT+HTTPACTION
AT+HTTPREAD
AT+HTTPSCONT
AT+HTTPSTATUS
AT+FTPPORT
AT+FTPMODE
AT+FTPTYPE
AT+FTPPUTOPT
AT+FTPCID
AT+FTPREST
AT+FTPSERV
AT+FTPUN
AT+FTPPW
AT+FTPGETNAME
AT+FTPGETPATH
AT+FTPPUTNAME
AT+FTPPUTPATH
AT+FTPGET
AT+FTPPUT
AT+FTPSCONT
AT+FTPDELE
AT+FTPSIZE
AT+FTPSTATE
AT+FTPEXTPUT
AT+FTPMKD
AT+FTPRMD
AT+FTPLIST
AT+FTPGETTOFS
AT+FTPPUTFRMFS
Description
Initialize HTTP service
Terminate HTTP service
Set HTTP parameters value
Input HTTP data
Http method action
Read the HTTP server response
Save HTTP application context
Read HTTP status
Set FTP control port
Set active or passive FTP mode
Set the type of data to be transferred
Set FTP put type
Set FTP bearer profile identifier
Set resume broken download
Set FTP server address
Set FTP user name
Set FTP password
Set download file name
Set download file path
Set upload file name
Set upload file path
Download file
Set upload file
Save FTP application context
Delete specified file in FTP server
Get the size of specified file in FTP server
Get the FTP state
Extend upload file
Make directory on the remote machine
Remove directory on the remote machine
List contents of directory on the remote machine
Download file and save in file system
Upload file from file system
www.simcom.com 6 / 24
SIM800 Series_IP_Application Note_V1.05
AT+FTPEXTGET
AT+FTPFILEPUT
AT+FTPQUIT
Extend download file
Load file in RAM from file system then upload with FTPPUT
Quit current FTP session
www.simcom.com 7 / 24
SIM800 Series_IP_Application Note_V1.05
3 IP Examples
3.1 Bearer Configure
//Bearer configure
AT+SAPBR=3,1,"Contype","GPRS"
OK
AT+SAPBR=3,1,"APN","CMNET"
OK
AT+SAPBR=1,1
OK
AT+SAPBR=2,1
+SAPBR:1,1,"10.89.193.1"
OK
AT+SAPBR=0,1
OK
3.2 HTTP GET Method
// Download data from HTTP server.
AT+HTTPINIT
OK
AT+HTTPPARA="CID",1
OK
AT+HTTPPARA="URL","www.sim.co
m"
OK
AT+HTTPACTION=0
OK
+HTTPACTION: 0,200,1000
AT+HTTPREAD
+HTTPREAD: 1000
….
OK
//Configure bearer profile 1
//To open a GPRS context.
//To query the GPRS context.
//To close a GPRS context.
//Init HTTP service
//Set parameters for HTTP session
//GET session start
//GET successfully
Read the data of HTTP server
www.simcom.com 8 / 24