UMTS/HSPA Module Series
WCDMA UGxx FTP AT Commands Manual
WCDMA_UGxx_FTP_AT_Commands_Manual Confidential / Released 17 / 44
Example
//Upload a file from COM port to FTP server.
AT+QFTPPUT=“test.txt”, “COM:”,0
//All data will be saved as “test.txt” in FTP server.
CONNECT
<Input file data >
<+++>
OK
+QFTPPUT: 0,1000
//Upload a file from COM to FTP server twice, each time in 1024 bytes.
AT+QFTPPUT=“test.txt”, “COM:”,0,1024,0
//It is not the last 1024 bytes of “test.txt”.
CONNECT
<Input file data>
OK
//Data length reaches 1024.
+QFTPPUT: 0,1024
AT+QFTPPUT=“test.txt”, “COM:”,1024,1024,1
//It is the last 1024 bytes of “test.txt”.
CONNECT
<Input file data>
OK
//Data length reaches 1024.
+QFTPPUT: 0,1024
//Upload a file from RAM to FTP server.
AT+QFUPL=“RAM:test1.txt”,1000,300,1
//Upload a file to RAM, the file will be saved as “test1.txt”
and the maximum size of file is 1000. 300 indicates
timeout, 1 indicates ACK mode. (Please refer to
Quectel_WCDMA_UGxx_FILE_AT_Commands_Manual
).
CONNECT
<Input 1000 bytes data>
+QFUPL: 1000,707
1 The last packet of data, when data reached <uploadlen>, module will exit
from data mode and close data connection, “+QFTPPUT: 0,<transferlen>”
will be output
<transferlen>
Integer type, length of successfully transferred data
<err>
Integer type, indicates the operation error code. It is the type of error (Please refer
to the Chapter 4)
<protocol_error>
Integer type, for reference only, indicates the original error code from FTP server
which is defined in FTP protocol (Please refer to Chapter 5). If it is 0, it is
meaningless
Quectel
Confidential