Quectel WCDMA UG FTP Series At Command Manual page 18

Umts/hspa module
Table of Contents

Advertisement

<transferlen>
<err>
<protocol_error>
Example
//Upload a file from COM port to FTP server.
AT+QFTPPUT="test.txt", "COM:",0
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
CONNECT
<Input file data>
OK
+QFTPPUT: 0,1024
AT+QFTPPUT="test.txt", "COM:",1024,1024,1
CONNECT
<Input file data>
OK
+QFTPPUT: 0,1024
//Upload a file from RAM to FTP server.
AT+QFUPL="RAM:test1.txt",1000,300,1
CONNECT
<Input 1000 bytes data>
+QFUPL: 1000,707
WCDMA_UGxx_FTP_AT_Commands_Manual
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
Integer type, length of successfully transferred data
Integer type, indicates the operation error code. It is the type of error (Please refer
to the Chapter 4)
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
WCDMA UGxx FTP AT Commands Manual
//All data will be saved as "test.txt" in FTP server.
//It is not the last 1024 bytes of "test.txt".
//Data length reaches 1024.
//It is the last 1024 bytes of "test.txt".
//Data length reaches 1024.
//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).
Confidential / Released
UMTS/HSPA Module Series
17 / 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents