At+Qftpget Download A File From Ftp Server - Quectel WCDMA UG FTP Series At Command Manual

Umts/hspa module
Table of Contents

Advertisement

OK
AT+QFLST="RAM:*"
+QFLST: "RAM:test1.txt",1000
OK
AT+QFTPPUT="test.txt", "RAM:test1.txt",0
OK
+QFTPPUT: 0,1000
AT+QFTPDEL="test.txt"
OK
+QFTPDEL: 0,0

2.6. AT+QFTPGET Download a File from FTP Server

Download
a
file
AT+QFTPGET="filename","COM:". The module will enter data mode on receiving data from server. After
data is transferred completely, the module will exit from data mode automatically and output "QFTPGET:
0,<transferlen>". You can save the file to RAM by AT+QFTPGET="filename","RAM:localname". After file
being transferred completely, the module will output "+QFTPGET: 0,<transferlen>".
If the <local_name> is "COM:", "CONNECT" should be output in <timeout> set by AT+QFTPCFG. If the
<local_name> is not "COM:", "OK" will be output first, "+QFTPGET: 0,<transferlen>" will be output after
data being transferred completely.
If the module has entered data mode, the <timeout> set by AT+QFTPCFG indicates the maximum interval
time between two packets of received/transmitted data. If the <local name> is not "COM:", the <timeout>
set by AT+QFTPCFG indicates the maximum interval time between two packets of received/transmitted
data.
AT+QFTPGET Get a File from FTP Server
Test Command
AT+QFTPGET=?
Write Command
AT+QFTPGET=<file_name>,"COM:"[,
<startpos >[,<downloadlen>]]
WCDMA_UGxx_FTP_AT_Commands_Manual
from
FTP
server.
Response
+QFTPGET:
<file_name>,<local_name>,<startpos>,<downloadlen>
OK
Response
CONNECT
<Output file data>
WCDMA UGxx FTP AT Commands Manual
//Upload "RAM:test1.txt" to FTP server and save it as
"test.txt" on FTP server.
You
can
output
Confidential / Released
UMTS/HSPA Module Series
the
file
to
COM
port
by
18 / 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents