Rainbow Electronics GM862-QUAD-PY User Manual
Page 34

Easy GPRS User Guide
80000ST10028 Rev. 4 - 16/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 34 of 63
GPRS Context Activation, as response gives IP of the module:
AT#SGACT=1,1
#SGACT: 193.199.234.255
OK
Opening of FTP connection:
AT#FTPTO=1000
(FTP settings of time-out)
OK
AT#FTPOPEN=”199.188.25.77”,”user”,”pass”,0
OK
In this case port of FTP server is not specified, which means that it has the default value: 21
AT#FTPTYPE=0
(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"
CONNECT
(receive the file)
Data connection will be closed automatically when the file sending is terminated:
NO CARRIER
AT#FTPCLOSE
(closing FTP connection)
OK
Deactivation of GPRS context if required:
AT#SGACT=0
OK
TIP: The #SGACT command activates the context and it is necessary to start the FTP
connection.
To get more information for other available commands on the FTP functionality please refer to the AT
Commands Reference Guide.
NOTE: FTP works only on context one (AT#SGACT=1,1)