EasyManua.ls Logo

SimCom SIM7800 Series - AT+CFTPSGET Get a File from FTP(S) Server to Serial Port

SimCom SIM7800 Series
29 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_FTPS_AT Command Manual 13 / 29
AT+CFTPSPUTFILE=
“<filepath>” [,<dir>,<rest_size>]
a)if upload file successfully :
OK
+CFTPSPUTFILE: 0
b)if failed:
OK
+CFTPSPUTFILE: <errcode>
c)if parameter format i or any other errors:
ERROR
Defined Values
<filepath>
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.
< dir >
The directory that contains the u
ploaded file. Numeric type,
range is 1-3, default is 1(/cache)
1 – F:/ (/cache)
2 D:/(sd card)
3 – E:/ (/data/media/)
<rest_size>
T
he 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.
<errcode>
The result code of download file from FTP(S) server.
0 is
success, others are failure, please refer to chapter 4.
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=?
Response
+CFTPSGET:[{non-ascii}]"FILEPATH"[,<rest_size>[(0-1)]]
OK
Execute Command
AT+CFTPSGET=“<filepath>”[,<rest_siz
e>[,<using_cache>]]
Response
a)if<using_cache> is 0(default),and get file successfully :
OK

Other manuals for SimCom SIM7800 Series

Related product manuals