Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manuale Utente

Pagina di 119
Part 1 – AT Commands for All Universal IP Devices 
 
Chapter 4 – FTP AT Commands 
Universal IP AT Commands Reference Guide (Document S000457K) 
31 
 
#FTPGETPATH – Set Path to Get a File from FTP Server 
Description:
 
In order for the TCP/IP stack software to get a file from the FTP server, the TCP/IP stack software 
must know the path of the relevant file. For example: ftp.companyx.com/wireless/WPST or, if you 
at in the root ftp.companyx.com, you can then simply type / 
Syntax:  
AT#FTPGETPATH="<value>"  
 
 
AT#FTPGETPATH? Read or display the current setting (or AT#VFTP, AT#VALL). 
Values:
 
Alpha-numeric ASCII text string up to 120 characters.  
 
Note: 
Depending on the FTP server, the value can be used for getting a file from the root 
directory of the FTP server. No default. 
 
 
 
#FTPPUTPATH – Set Path to Send Files to FTP Server 
Description:
 
In order for the TCP/IP stack software to send a file to the FTP server, the TCP/IP stack software 
must know the path of the relevant file. For example: ftp.companyx.com/wireless/WPST or, if you 
at in the root ftp.companyx.com, you can then simply type / 
Syntax:  
AT#FTPPUTPATH="<value>" 
 
 
AT#FTPPUTPATH? Read or display the current setting (or AT#VFTP, AT#VALL). 
Values:
 
Alpha-numeric ASCII text string up to 120 characters.  
 
Note: 
Depending on the FTP server, the value can be used for getting a file from the root 
directory of the FTP server. No default. 
 
 
 
#FTPAPPEND – Append Data to Server   
Description:
 
This command sent by the attached host directs the TCP/IP stack to connect to the specified FTP 
server and to append 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:
 
Certain conditions must be met in order to use this command. First, the FTP server must support 
this command as some servers do and some servers don't. Also, the client performing the 
APPEND operation must read/write to the FTP server as well.  
Syntax:
 
AT#FTPAPPEND 
 
 
 
#FTPNETWORKTIMER – 
FTP Client Network Transmit Safety Timeout Value
 
Description:  
This parameter determines the inactivity time in seconds of the TCP TX buffer. 
 
Note:
 This command is for all devices except the SocketWireless Wi-Fi (MT810SWM-IP)
 
Syntax: 
AT#FTPNETWORKTIMER=<parameter1> 
Values: 
0-65535 – the time in seconds the client will wait for the TCP available TX buffer to be greater 
than 0. A setting of 0 will disable the function. 
Responses: 
\r\n#FTPNETWORKTIMER: VALUE1\r\n 
\r\nOK\r\n 
\r\nERROR\r\n 
Command Example(s): 
send:  AT#FTPNETWORKTIMER=100\r 
reply: \r\nOK\r\n 
send:  AT#FTPNETWORKTIMER?\r 
reply: \r\n#FTPNETWORKTIMER: 100\r\n 
reply: \r\nOK\r\n