beautypg.com

2 ftp operations, 1 opening and closing an ftp connection – Telit Wireless Solutions Easy GPRS User Manual

Page 23

background image





Easy GPRS User Guide

80000ST10028 Rev. 1 - 14/03/07

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

page 23 of 37

2.2 FTP OPERATIONS



A set of AT commands is available to support the FTP activities. The fist command is called #FTPTO
(FTP Time-Out) which defines the time-out for FTP operations. The module has already a factory
default time defined that is 10 s.

If it is needed to be modified, the syntax is:

AT#FTPTO[=]

Parameter:
- time-out in 100 ms units

100..5000 - hundreds of ms (factory default is 100)

NOTE: The parameter is not saved in NVM.
NOTE: if parameter is omitted the behaviour of Set command is the same as Read command.

Example:

AT#FTPTO=1000

(set the timeout to 100sec)

OK

2.2.1 Opening and Closing an FTP Connection


With the command AT#FTPOPEN=,,, is possible to
open the FTP connection.

The parameters are:
- string type, address and port of FTP server (factory default port 21).
- string type, authentication user identification string for FTP.
- string type, authentication password for FTP.

0 - active mode (default)
1 - passive mode

In order to close the FTP connection the AT command AT#FTPCLOSE should be used.