SIM7500_SIM7600
Series_FTP(S)_Application
Note
LTE 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
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
SIM7500_SIM7600 Series_FTP(S)_Application Note
2.00
2020.8.6
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 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
About Document
Version History
Version
V2.00
Date
2020.8.6
Owner
Xianxiang Ma
What is new
Update the format
www.simcom.com
3 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
Contents
About Document............................................................................................................ 3
Version History.........................................................................................................................................................3
Contents........................................................................................................................... 4
1.
2.
3.
4.
5.
1.1
1.2
1.3
2.1
2.2
Introduction......................................................................................................... 5
Purpose of the document...........................................................................................................................5
Related documents.....................................................................................................................................5
Conventions and abbreviations................................................................................................................ 5
FTP Introduction.............................................................................................. 6
Characteristic...............................................................................................................................................6
The process of Using FTP(S) AT Commands........................................................................................6
AT Commands for FTP(S)................................................................................7
Bearer Configuration........................................................................................ 8
4.1 PDN Auto-activation.........................................................................................................................................8
5.1.1
5.1.2
5.2
HTTP(S) Samples...............................................................................................9
5.1Access to FTP server........................................................................................................................................9
Download a file from FTP server to module/upload a file to FTP server form module.......9
Download file from FTP server to serial port /upload file to FTP server............................. 10
Access to FTPS server............................................................................................................................ 12
HTTPS Download a file from FTPS server to module/upload a file from module............. 12
Download a file to serial port/upload a file from serial port................................................... 13
FTP Resume-From-Break-Point................................................................................................ 14
5.2.1
5.2.2
5.2.3
www.simcom.com
4 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
1.Introduction
1.1Purpose of the document
Based on module AT command manual, this document will introduce FTP(S) application process.
Developers could understand and develop application quickly and efficiently based on this document.
1.2Related documents
[1] SIM7500_SIM7600 Series_AT Command Manual
1.3Conventions and abbreviations
In this document, the GSM engines are referred to as following term:
ME (Mobile Equipment);
MS (Mobile Station);
TA (Terminal Adapter);
DCE (Data Communication Equipment) or facsimile DCE (FAX modem, FAX board);
In application, controlling device controls the GSM engine by sending AT Command via its serial interface.
The controlling device at the other end of the serial line is referred to as following term:
TE (Terminal Equipment);
DTE (Data Terminal Equipment) or plainly "the application" which is running on an embedded system;
www.simcom.com
5 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
2. FTP Introduction
FTP (File Transfer Protocol) is an application layer protocol. File Transfer Protocol is a standard Protocol for
transferring files over a network, using the client / server mode. It's part of the Communications Protocol
Application Layer.
2.1Characteristic
A control connection is a communication link established between a client protocol interpreter and a server
protocol interpreter for exchanging commands and responses. A data connection is a full-duplex connection
for transmitting data. The transfer of data can occur between DTP for the server data transfer process and
DTP for the client, or between DTP for the two servers.
2.2The process of Using FTP(S) AT Commands
Step 1: Ensure GPRS network is available before performing FTP(S) related operations.
Step 2: Configure the parameter of PDP context by AT+CGDCONT.
Step 3: Activate the PDP context to start FTP(S) service by AT+CFTPSSTART.
Step 4: Login FTP(S) server by AT+CFTPSLOGIN.
Step 5: Download a file and save to module by AT+CFTPSGETFILE.
Step 6: Use AT+CFTPSABORT abort any FTP(S) operation.
Step 7: Use AT+CFTPSLOGOUT to logout FTP(S) server while finish FTP(S) operation.
Step 8: Deactivate the PDP context to stop FTP(S) service by AT+CFTPSSTOP.
Note: make sure you login to a FTP(S) sever successfully before any other FTP(S) operations.
www.simcom.com
6 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
3.AT Commands for FTP(S)
Description
Command
AT+CFTPSSTART
Start FTP(S) service
AT+CFTPSSTOP
Stop FTP(S) Service
AT+CFTPSLOGIN
Login to a FTP(S)server
AT+CFTPSLOGOUT
Logout FTP(S) server
AT+CFTPSMKD
Create a new directory on FTP(S) server
AT+CFTPSRMD
Delete a directory on FTP(S) server
AT+CFTPSDELE
Delete a file on FTP(S) server
AT+CFTPSCWD
Delete a file on FTP(S) server
AT+CFTPSPWD
Get the current directory on FTP(S) server
AT+CFTPSTYPE
set the transfer type on FTP(S) serve
AT+CFTPSLIST
List the items in the directory on FTP(S) server
AT+CFTPSGETFILE
Get a file from FTP(S) server to module
AT+CFTPSPUTFILE
Put a file from module to FTP(S) server
AT+CFTPSGET
Get a file from FTP(S) server to serial port
AT+CFTPSPUT
Put a file to FTP(S) server through serial port
AT+CFTPSSINGLEIP
Set FTP(S) data socket address type
AT+CFTPSCACHERD Set FTP(S) data socket address type
AT+CFTPSABORT
AT+CFTPSSIZE
Abort FTP(S) operations
Get the File Size on FTP(S) server
For detail information, please refer to “SIM7500_SIM7600 Series_AT Command Manual“.
www.simcom.com
7 / 16
SIM7500_SIM7600 Series_FTP(S)_Application Note_V2.00
4.Bearer Configuration
Usually module will register PS service automatically.
4.1 PDN Auto-activation
//Example of PDN Auto-activation.
//Check SIM card status
//Check RF signal
//Check PS service
//Query Network information, operator and network
mode 9, NB-IOT network
//Activating network bearing
AT+CPIN?
+CPIN: READY
OK
AT+CSQ
+CSQ: 27,99
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+COPS?
+COPS: 0,0,"CHN-CT",9
OK
AT+CNACT=0,1
OK
AT+CNACT?
+CNACT: 0,1
+CNACT: 1,0,
+CNACT: 2,1
+CNACT: 3,0
OK
www.simcom.com
8 / 16