Technical information
FTP (File Transfer Protocol)
3-446 AT Commands Reference Manual August 5, 2008
The following table shows the +FTPSTAT parameters.
Example
When the user enters +FTPSTAT command without parameters, the last requested status within actual
FTP connection returns. When there is first status request within actual FTP connection, the remote server
returns general FTP connection status, like in the following example:
The first example illustrates +FTPSTAT command without parameter first time (for actual FTP
connection) use. In this case general FTP connection status returns.
AT+FTPSTAT
OK
+FTPSTAT: 2, SecureMb FTP Version 1.0
+FTPSTAT: 2, Connected to name.provider.com (255.255.255.255)
+FTPSTAT: 2, Logged in as anonymous
+FTPSTAT: 2, TYPE: ASCII, FORM: Nonprint; STRUcture: File; transfer MODE: Stream
+FTPSTAT: 2, No data connection
+FTPSTAT: 2, 0 data bytes received in 0 files
+FTPSTAT: 2, 0 data bytes transmitted in 0 files
+FTPSTAT: 2, 0 data bytes total in 0 files
+FTPSTAT: 2, 30 traffic bytes received in 0 transfers
+FTPSTAT: 2, 535 traffic bytes transmitted in 0 transfers
+FTPSTAT: 2, 614 traffic bytes total in 0 transfers
+FTPSTAT: 1
The second example illustrates using +FTPSTAT command with a parameter containing a name of
actually present on remote server file. In this case, the specific file status is returned.
AT+FTPSTAT="somefile.name"
OK
+FTPSTAT: 2,-rw-rw-r-- 1 1001 653793 May 2 03:33 somefile.name
+FTPSTAT: 1
The third example illustrates using +FTPSTAT command with a parameter containing a name of file,
which does not exist on the remote server file. In this case, the remote server returns "No such file or
directory" string and command is finished successfully.
AT+FTPSTAT="anotherfile.name"
OK
+FTPSTAT: 2,/bin/ls: anotherfile.name: No such file or directory
+FTPSTAT: 1
Table 3-292: +FTPSTAT Parameters
<Parameter> Description Range
File/directory name Name of file or directory on the
remote side for status request.
String, max length is 255 octets.