
Chapter 4 – FTP Services
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D) 28
#FTPGET Get Data from Server
Definition: This command, sent by the attached host, directs the TCP/IP stack to connect to the specified FTP
server and to retrieve the specified file from this server. Once the operation is completed, the TCP/IP
stack closes the FTP connection.
Once an IP link is established, the attached host can retrieve a file from an FTP server at any time
(except when the TCP/IP stack software is already in a process using TCP resources).
This command is similar to a GET operation (with an automatic connect/disconnect) issued by a
standard FTP client on a PC. The TCP/IP stack handles the global FTP process by itself.
Note: Each <ETX> character present in the payload data of the FTP flow will be coded by the TCP/IP
stack on the serial port as <DLE><ETX>. Each <DLE> character will be coded as <DLE><DLE>. The
attached host must then decode the FTP flow to remove these escape characters.
Values: Read Parameters:
FTPGETFILENAME
FTPGETPATH
FTPPORT
FTPSERV
FTPTYPE
FPTMODE
FTPPW
FTPUN
Syntax: AT#FTPGET
Command Possible Responses
AT#FTPGET
Note: Start
data reception
Ok_Info_DataBegin
The switch from command to data mode.
DATA
Note: Data transmitted from the FTP server to the TCP/IP stack is sent over the
serial port.
<ETX>
Note: Once the file transfer has finished, the TCP/IP stack sends an ETX character
over the serial port to notify the attached host of the end of file transfer:
switches from data to command mode.
OK
Note: The FTP process was successfully completed.
AT#FTPGET #CME ERROR: 38027
Note: The address of the FTP server has not been resolved by the secondary DNS
server. The TCP/IP stack is not able to reach the primary or secondary DNS
servers or a wrong FTP server address has been filled in.
AT#FTPGET #CME ERROR: <value>
Note: The connection to the FTP server failed. See section ‘Response messages
and error codes.’ If this error occurs once the data transfer started, it is
preceded by an ETX character.
Commentaires sur ces manuels