Technical information
July 15, 2007 Using FTP with G24 1-1
Chapter 1: Using FTP with G24
FTP Connection
Overview
G24 implements FTP connection feature, based on RFC959 standard, and operates as a FTP
client. When connected to a remote FTP server, G24 is able to receive information about remote
file system, manage it and perform files transfer operations.
Manage FTP Connection
AT+FTPOPEN command is used to open a FTP connection with a remote FTP server. When
G24 performs FTP connection establish procedure, it allocates two TCP sockets. One of them is
used for FTP control channel, the other - for FTP data channel (listen mode). FTP control channel
port has default identification number (ID) - 21 for source (client) and destination (server) sides,
but user is able to configure control channel port ID for client as well as for server by pass new
source control port and/or new destination control port id as AT+FTPOPEN command optional
parameters. This is applicable, when remote FTP server able to accept FTP connection over
non-standard (other, then 21) ports. FTP data channel port has default identification number (ID)
- 20 for source (client) side, but user be able to configure data channel port id by pass new source
data port id as AT+FTPOPEN command optional parameter. This is applicable, when remote FTP
server unable to establish data connection to some port IDs. Following example shown how to
use AT+FTPOPEN command in various situations.
• To open a FTP connection with a remote FTP server, use the following settings:
AT+FTPOPEN = "someftpsite.com","anonymous","qwerty@somemail.com",,,,
destination URL = someftpsite.com (mandatory)
user = anonymous (mandatory)
password = qwerty@email.com (mandatory)
account = "" (optional, default value)
source control port id = 21 (optional, default value)
destination control port id = 21 (optional, default value)
source data port id = 20 (optional, default value)










