Technical information

FTP Connection
1-2 Using FTP with G24 July 15, 2007
To open a FTP connection with a remote FTP server, use the same mandatory settings, but
customize source control and data ports id:
AT+FTPOPEN = "someftpsite.com","anonymous","qwerty@somemail.com",,1300,,1302
When FTP connection establish, G24 remains in command mode. This mode used for performing
most of FTP AT commands. Only AT+FTPLIST, AT+FTPSTOR and AT+FTPRETR commands
switch G24 to online data mode. Generally, G24 returns to command mode after the data mode
caused command execution finished, but user be able to interrupt online data mode (and close
actual FTP connection) by change DTR line status from ON to OFF, when AT&D settings = 2 or
3.
The G24 operation modes switching is shown in Figure 1-1.
Figure 1-1: G24 Operation Modes Switching
Note:
1
AT&D settings = 2 or 3. The operation closes actual FTP connection and switches G24
to command mode.
AT&D settings = 1 does not affect.
Established FTP connection can be closed when G24 is in command mode by AT+FTPCLOSE
command or by changing DTR line status from ON to OFF when data transfer operations is
performed (G24 is in online data mode).
Manage Remote File System
When FTP connection is established, the user is able to manage file system on the remote FTP
server, like create, remove, change directory, rename or delete a file. The following FTP
commands are used for remote file system management purpose.
+FTPCWD - changes working directory on remote server.
+FTPMKD - create a new directory on remote server.
+FTPRMD - removes existing directory on remote server.
+FTPPWD - returns actual working directory name from remote server.
+FTPCDUP - changes working directory on remote server up to parent directory.
+FTPDEL - delete a file on remote server.
+FTPREN - rename a file on remote server.
source control port id = 1300 (optional, custom value)
destination control port id = 21 (optional, default value)
source data port id = 1302 (optional, custom value)