Easy GPRS User Guide
80000ST10028 Rev. 0 - 02/01/07
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 25 of 35
Example of an FTP file download from the server:
Define PDP contest:
AT+CGDCONT=1,”IP”, "internet.wind.biz"<cr>
OK
GPRS Context Activation, as response gives IP of the module:
AT#GPRS=1<cr>
+IP: 193.199.234.255
OK
Opening of FTP connection:
AT#FTPTO=1000<cr> (FTP settings of time-out)
OK
AT#FTPOPEN=”199.188.25.77”,”user”,”pass”,0<cr>
OK
In this case port of FTP server is not specified, which means that it has the default value: 21
AT#FTPTYPE=0<cr> (FTP settings of file type)
OK
AT#FTPCWD="incoming" (change working directory if requiered)
OK
In order to get the list of files on the working directory from the server AT command AT#FTPLIST
should be used.
Downloading FTP file “file.txt” from the server:
AT#FTPGET="file.txt"<cr>
CONNECT
(receive the file)
Data connection will be closed automatically when the file sending is terminated:
NO CARRIER
AT#FTPCLOSE<cr> (closing FTP connection)
OK
Deactivation of GPRS context if required:
AT#GPRS=0<cr>
OK
TIP: The #GPRS command activates the context and it is necessary to start the FTP
connection.