Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manual Do Utilizador

Página de 119
Part 1 – AT Commands for All Universal IP Devices 
 
Chapter 4 – FTP AT Commands 
Universal IP AT Commands Reference Guide (Document S000457K) 
30 
 
#FTPGET – Download Files from FTP Server   
Description:
 
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: 
The TCP/IP stack will signal the attached host of the end of the file that is being 
downloaded with a single <ETX> character. The <ETX> characters that are part of the file data 
will be shielded as <DLE><ETX>. The <DLE> characters that are part of the file data will be 
shielded as <DLE><DLE>. The attached host will need to remove the shielding <DLE> 
characters. 
Syntax:
 
AT#FTPGET 
Values: 
FTPGETFILENAME 
FTPGETPATH 
FTPPORT 
FTPSERV 
FTPTYPE 
FPTMODE 
FTPPW 
FTPUN 
FTPFILESIZE 
 
 
 
 
#FTPPUT – Upload Files to FTP Server   
Description:
 
This command sent by the attached host directs the TCP/IP stack to connect to the specified FTP 
server and to upload the data received on the serial port to the specified file on 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 send a file to a 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 PUT operation (with an automatic connect/disconnect) issued by a 
standard FTP client on a PC. The TCP/IP stack handles the global FTP put process by itself. 
 
Note:
 The TCP/IP stack will interpret only an <ETX> character as the end of the file to be 
transferred if it’s not preceded by a <DLE> character. As a consequence, the attached host must 
send <ETX> characters preceded by <DLE> characters, and it must also code <DLE> characters 
as <DLE><DLE>. 
Syntax:
 
AT#FTPPUT 
Values
:  
FTPPUTFILENAME 
FTPDIR 
FTPPORT 
FTPSERV 
FTPTYPE 
FTPMODE 
FTPPW 
FTPUN 
No default