Appendix A – Getting Started Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
47
FTP: Download / Upload Files
Upload a file to an FTP Server: AT#FTPPUT
Commands
Responses
AT#FTPSERV=”pop3.domain.com”
Note: FTP server used
OK
AT#FTPUN= ”ftplogin”
Note: FTP username
OK
AT#FTPPW = ”ftppassword”
Note: FTP password
OK
AT#FTPPUTFILENAME=”upload.text”
Note: Name of the file that will be written in
the FTP server
OK
AT#FTPPUTPATH=”.”
Note: Path in the server where the file will be
written
OK
AT#FTPPUT
Note: FTP put
OK_Info_WaitingForDate
Note: Switch from command to data mode. The host can send
the data that will compose the file. (Data not echoed).
To notify the end of data, the host has to send the [ETX]
character (CTRL+C on the keyboard). This character is echoed.
OK
Note: End of data notified
OK
Download a file from an FTP Server: AT#FTPGET
Commands
Responses
AT#FTPSERV=”pop3.domain.com”
Note: FTP server used
OK
AT#FTPUN= ”ftplogin”
Note: FTP username
OK
AT#FTPPW = ”ftppassword”
Note: FTP password
OK
AT#FTPGETFILENAME=”upload.text”
Note: Name of the file stored in the FTP
server
OK
AT#FTPGET
Note: FTP get
OK_Info_DataBegin
Note: Switch from command to data mode. The data is sent over
the serial port
Note: To end of data is notified by the [ETX] character sent over
the serial port. It switches from data to command mode.
Character is echoed.
OK