User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 15
2.3.22 set ftp dir <string>
This command sets the starting directory on the FTP server, where <string> is up to 32
characters. To read/write to subfolders, use the \ character. To indicate the root direc-
tory, use a period.
Default: public
Example: set ftp dir demo // Set FTP server starting directory to
// demo
set ftp dir demo\test // Set FTP server starting directory to
// demo\test
set ftp dir . // Set FTP server starting directory to the
// root directory
2.3.23 set ftp filename <filename>
This command sets the name of the file that is transferred when issuing the ftp u com-
mand, where <filename> is the firmware image. If you specify any file other than the
firmware image, the WiFly module downloads the file and issues the UPDATE FAIL=3
error.
Default: Firmware version 4.0 and higher:
wifly3-<version>.img (RN131), wifly7-<version>.img (RN171)
Firmware lower than version 4.0:
wifly-GSX-<version>.img (RN131), wifly-EZX-<version>.img (RN171)
Example: set ftp filename my_data // Sets the firmware image to be retrieved
// via FTP as my_data
2.3.24 set ftp mode <mask>
This command sets the ftp mode, where <mask> indicates active or passive mode.
Default: 0x0
Example: set ftp mode 0x1 // Enables active FTP mode
2.3.25 set ftp remote <value>
This command sets the FTP server’s remote port number, where <value> is the port
number.
Default: 21
Example: set ftp remote 25 // Sets the FTP server’s remote port to 25
2.3.26 set ftp time <value>
The command sets the FTP timeout value, where <value> is a decimal number that is
five times the number of seconds required. The module uses this timer to close the FTP
connection automatically after the specified time.
Default: 200
Example: set ftp timer 40 // Sets a 5-second timer
set ftp timer 80 // Sets a 10-second timer