Technical information

Chapter 2: AT Commands Reference for FTP
July 15, 2007 Using FTP with G24 2-5
Example
The first example illustrates FTP connection open success case.
AT+FTPOPEN="someftpsite.com","anonymous","qwerty@somemail.com",,,,
OK
+FTPOPEN: 1
The second example illustrates FTP connection open error case, because another FTP connection is
already opens. The AT+CMEE=2 command enables verbose error report.
AT+CMEE=2
OK
AT+FTPOPEN="someftpsite.com","anonymous","qwerty@somemail.com",,,,
OK
+FTPOPEN: 1
AT+FTPOPEN="anotherftpsite.com","anonymous","qwerty@somemail.com",,,,
+CME ERROR: FTP session is active
+FTPCLOSE, Close Established FTP Connection Between G24 (FTP
client) and Remote FTP Server
This command causes G24 to close FTP connection, when no data transfer occurred at that same
time. When data transfer is in progress, use DTR line for closing FTP connection.
Example
The first example illustrates FTP connection close success case.
AT+FTPCLOSE
OK
+FTPCLOSE: 1
The second example illustrates FTP connection close error case, because no FTP connection was open. The
AT+CMEE=2 command enables verbose error report.
Command
Type
Syntax Response/Action Remarks
Set
+FTPCLOSE OK
+FTPCLOSE: <connection_status>
Or:
ERROR: <error_code>
Command execution result
return to the user as an
unsolicited response:
1 - connection success
0 - connection fail
Read
+FTPCLOSE? ERROR
Not supported
Test
+FTPCLOSE=? ERROR
Not supported