Chapter 4 – FTP Services
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
29
#FTPPUT Put Data to Server
Definition:
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>.
Values:
Read
Parameters:
FTPPUTFILENAME
FTPPUTPATH
FTPPORT
FTPSERV
FTPTYPE
FTPMODE
FTPPW
FTPUN
Syntax:
AT#FTPPUT
Command
Possible Responses
AT#FTPPUT
Note: Start
sending data
OK_WaitingForData Note: TCP/IP stack is ready to send data from the serial port to
the remote FTP server. TCP/IP stack then immediately transfers all the data sent by
the attached host to the remote FTP server. To notify the TCP/IP stack that all data
has been sent, the attached host must send the <ETX> character.
<ETX>
Notification from host for end of data: switches from data to command mode.
OK Note: The FTP process was successfully completed.
AT#FTPPUT
#CME ERROR: 38027 Note: The address of the FTP server has not been resolved
by the secondary DNS server. 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#FTPPUT
#CME ERROR: <value> Note: The connection to the FTP server failed. See section
‘Response messages and error codes’. If an error occurs once the data transfer
started, it is preceded by
ETX
.
#VFTP Display FTP Parameters
Definition:
This command directs the TCP/IP stack to display all AT# parameters for the FTP client configuration.
Values:
Read
Parameters:
FTPSERV
FTPPORT
FTPUN
FTPPW
FTPGETFILENAME
FTPGETPATH
FTPPUTFILENAME
FTPPUTPATH
FTPTYPE
FTPMODE
Syntax:
AT#VFTP
Command
Possible Responses
AT#VFTP
Note: View FTP parameters
#FTPGETFILENAME: ““
#FTPGETPATH: “.”
#FTPMODE: 0
#FTPPORT: 21
#FTPPUTFILENAME: “Testseb3.txt”
#FTPPUTPATH: “.”
#FTPPW: “mypass”
#FTPSERV: “mytestwebsite.com”
#FTPTYPE: = 1
#FTPUN: “myname”
OK