Download Easy GPRS User Guide
Transcript
Easy GPRS User Guide 80000ST10028 Rev. 4 - 16/07/08 3.3.2 FTP file transfer Let’s suppose we want to send a file to a FTP server. Define GSM context: AT#GSMCONT=0,”IP”, "3359009000"<cr> OK GSM Context Activation, as response gives IP of the module: AT#SGACT=0,1 <cr> #SGACT: 10.137.93.60 OK Opening of FTP connection: AT#FTPTO=1000<cr> OK (FTP settings of time-out) AT#FTPOPEN=”199.188.25.77”,”userid”,”password”,0<cr> OK In this case the port of the FTP server is not specified, which means that it has the default value: 21 AT#FTPTYPE=0<cr> OK (FTP settings of file type) FTP file transfer to the server in the file named “file.txt”: AT#FTPPUT="file.txt"<cr> CONNECT (send the file) +++ NOCARRIER (escape sequence +++ to close the data connection) AT#FTPCLOSE<cr> OK (closing FTP connection) Deactivation of GSM context if required: AT#SGACT=0,0<cr> OK 3.3.3 Remote connection between two modules In this example we send data from a module using EASY GPRS to a module using EASY GSM. Configuration for the module that receives data (server): Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 51 of 63