2 ftp file transfer, 3 remote connection between two modules – Rainbow Electronics GM862-QUAD-PY User Manual

Page 51

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 4 - 16/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 51 of 63

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>

(FTP settings of time-out)

OK

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>

(FTP settings of file type)

OK

FTP file transfer to the server in the file named “file.txt”:
AT#FTPPUT="file.txt"<cr>
CONNECT

(send the file)

+++

(escape

sequence

+++ to close the data connection)

NOCARRIER

AT#FTPCLOSE<cr>

(closing FTP connection)

OK

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):

Advertising