UMTS/HSPA Module Series
WCDMA UGxx FTP AT Commands Manual
WCDMA_UGxx_FTP_AT_Commands_Manual Confidential / Released 26 / 44
Parameter
Example
//Get file names of current directory on FTP server and output to COM port.
AT+QFTPNLST=“.”
Write Command
AT+Q
FTPNLST=<dirname>[,“COM:” ]
Response
CONNECT
<Output content data>
OK
If successfully list file names:
+QFTPNLST: 0,<transfer_size>
Else fail to list file names:
+QFTPNLST: <err>,<protocol_error>
or
+CME ERROR: <err>
Write Command
AT+QFTPNLST=<dirname>,<local_na
me>
<local_name> is not “COM:”
Response
OK
+QFTPNLST: 0,<transfer_size>
or
+CME ERROR: <err>
If error occurs while listing file name:
+QFTPNLST: <err>,<protocol_error>
<dirname>
String type, the folder name on FTP server. The maximum size of the parameter
is 100 bytes. If it is “.”, it will get the content of current directory set by
AT+QFTPCWD
<local_name>
String type, the local position to save data from FTP server. The maximum size of
the parameter is 60 bytes. The default value is “COM:”. If it is “COM:”, the data will
be output to COM port. If it starts with “RAM:”, the data will be saved to RAM.
Then you can read the file by AT+QFREAD (For more details, please refer to
Quectel_WCDMA_UGxx_FILE_AT_Commands_Manual
)
<transfer_size>
Integer type, the size of transferred data from FTP server
<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