Download Print this page

Multitech SocketModem iCell MTSMC-G2-IP At Commands Reference Manual page 30

Universal ip

Advertisement

Part 1 – AT Commands for All Universal IP DevicesChapter 4 – FTP Commands
#FTPGET – Download Files from FTP Server
Definition:
Syntax:
Values:
#FTPPUT – Upload Files to FTP Server
Definition:
Syntax:
Values:
Default
Value: None
#FTPGETPATH – Set Path to Get a File from the FTP Server
Definition:
Syntax:
Values:
Default:
Universal IP AT Commands Reference Guide (Document S000457G)
Downloaded from
Elcodis.com
electronic components distributor
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.
AT#FTPGET
FTPGETFILENAME
FTPGETPATH
FTPPORT
FTPSERV
FTPTYPE
FPTMODE
FTPPW
FTPUN
FTPFILESIZE
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>.
AT#FTPPUT
FTPPUTFILENAME
FTPDIR
FTPPORT
FTPSERV
FTPTYPE
FTPMODE
FTPPW
FTPUN
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 /
Set/Get File:
AT#FTPGETPATH="<value>"
View Value:
AT#FTPGETPATH? or AT#VFTP, AT#VALL
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.
None
30

Advertisement

loading
Need help?

Need help?

Do you have a question about the SocketModem iCell MTSMC-G2-IP and is the answer not in the manual?

Subscribe to Our Youtube Channel