Technical information
Chapter 3: AT Commands Reference
August 5, 2008 AT Commands Reference Manual 3-447
The fourth example illustrates using +FTPSTAT command with a parameter containing an illegal file
name. In this case, the remote server returns error and FTP connection is closed by the remote side.
AT+FTPSTAT="."
OK
+FTPSTAT: 0
+FTPCLOSE: 1
The fifth example illustrates using +FTPSTAT command for receiving the status of all files in the actual
working directory.
AT+FTPSTAT="*.*"
OK
+FTPSTAT: 2,-rw-rw-r-- 1 1001 129886 Mar 23 06:20 somefile1.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 4968 Jan 8 07:57 somefile2.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 23948 Jan 8 07:32 somefile3.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 0 Feb 7 01:56 somefile4.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 204673 Jan 10 02:28 somefile5.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 9348 Jul 19 2006 somefile6.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 653793 May 2 03:33 somefile7.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 645120 Mar 25 04:27 somefile8.name
+FTPSTAT: 2,-rw-rw-r-- 1 1001 0 Mar 26 2006 somefile9.name
+FTPSTAT: 1
+FTPSYST, Request Remote FTP Server Operating System Type
This command causes the G24 to request the remote FTP server to send the operating system
type.
Command
Type
Syntax Response/Action Remarks
Set
+FTPSYST OK
...
+FTPSYST:
<result>[,<system>]
or
ERROR: <error_code>
3
The command execution
result return to the user as
an unsolicited response:
0 - operation failed
1 - operation succeeded
2 - text message follows
<system> parameter
follows only when
<result>=2
Read
+FTPSYST? ERROR
Not supported
Test
+FTPSYST=? ERROR
Not supported