At+Cftpsget Get A File From Ftp(S) Server To Serial Port - SimCom SIM7500 Series At Command Manual

Ftps, lte module
Hide thumbs Also See for SIM7500 Series:
Table of Contents

Advertisement

AT+CFTPSPUTFILE=
"<filepath>" [,<dir>,<rest_size>]
Defined Values
<filepath>
< dir >
<rest_size>
<errcode>

2.14 AT+CFTPSGET Get a file from FTP(S) server to serial port

You can use this command to get a file from FTP(S) server to serial port. By setting <using_cache> to 1, you can
use AT+CFTPSCACHERD to output the file data to serial port after "+CFTPS: RECV EVENT" received.
AT+CFTPSGET Get a file from FTPS server to serial port
Test Command
AT+CFTPSGET=?
Execute Command
AT+CFTPSGET="<filepath>"[,<rest_siz
e>[,<using_cache>]]
SIM7500_SIM7600_SIM7800 Series_FTPS_AT Command Manual
a)if upload file successfully :
OK
+CFTPSPUTFILE: 0
b)if failed:
OK
+CFTPSPUTFILE: <errcode>
c)if parameter format i or any other errors:
ERROR
The remote file path. When the file path doesn't contain "/", this
command transfers file to the current remote FTPS directory. If
the file path contains non-ASCII characters, the file path
parameter should contain a prefix of {non-ascii}.String type,
maximum length is 256.
The directory that contains the uploaded file. Numeric type,
range is 1-3, default is 1(/cache)
1 – F:/ (/cache)
2 – D:/(sd card)
3 – E:/ (/data/media/)
The value for FTP "REST" command which is used for broken
transfer when transferring failed last time. Numeric type, the
range is from 0 to 2147483647.
The result code of download file from FTP(S) server. 0 is
success, others are failure, please refer to chapter 4.
Response
+CFTPSGET:[{non-ascii}]"FILEPATH"[,<rest_size>[(0-1)]]
OK
Response
a)if<using_cache> is 0(default),and get file successfully :
OK
Smart Machine Smart Decision
13 / 29

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIM7500 Series and is the answer not in the manual?

This manual is also suitable for:

Sim7800 seriesSim7600 series

Table of Contents