User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 87
4.6.2 Creating Files on the FTP Server
Once the module is configured to connect to the FTP server, it can create files on the
FTP server. To create a file, you use the ftp put <filename> command, where <file-
name> is up to 64 bytes. This command creates a file on the FTP server with the name
<filename> and prints the open string on the UART. By default, the open string is
*OPEN*. After you see *OPEN* on the UART, you can begin writing data in to the file.
There are two options to close the file:
• Send the close string, which is *CLOS* by default.
• Use the FTP close timer with the command set ftp timer <value>. Once you finish
writing to the file, this timer begins counting down and closes the file when the
timer gets to zero. The timer is one eighth of <value>. For example, to set a 5-sec-
ond timer, the command is set ftp timer 40.
The open and close stings are configurable using the following commands:
set comm open <string> // Set the open string
set comm close <string> // Set the close string
EXAMPLE 4-17: PUT FILE ON FTP SERVER
4.6.3 Retrieving Files from the FTP Server
The module can retrieve files from the FTP server. The retrieved file is not stored in
module’s flash memory; the module acts as a transporter and passes the file over the
UART interface as the file is being transferred.
To retrieve a file from the FTP server issue the ftp get <filename> command. The mod-
ule prints the open string on the UART and the file begins transferring from the FTP
server to the module. When the file transfer complete, the module prints the close string
indicating the file is transferred and the FTP connection is closed.
EXAMPLE 4-18: RETRIEVE FILE FROM FTP SERVER
4.7 WI-FI PROTECTED SETUP (WPS)
Wi-Fi Protected Setup (WPS) is a standard for easy and secure establishment of a
wireless home network. This standard was created by the Wi-Fi Alliance and officially
launched on January 8, 2007.
The goal of the WPS protocol is to simplify the process of configuring security on wire-
less networks. The protocol is meant to allow home users who know little of wireless
security and may be intimidated by the available security options to configure Wi-Fi
Protected Access, which is supported by all newer Wi-Fi certified devices (but not older
Wi-Fi devices).
ftp put demo.txt // Upload the file demo.txt
set ftp timer 40 // Close the connection 5 seconds after
// file uploads
ftp get demo.txt // Download the file demo.txt from the
// FTP server