User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 89
4.7.1 Launching a WPS Application
There are two ways to invoke a WPS function:
• Using the run wps command in the console.
• Using the ad hoc/factory reset pin (GPIO9).
To invoke a WPS function using the ad hoc/factory reset (GPIO9) mode:
3. Enable the WPS function on GPIO9 using the set sys launch wps_app com-
mand. WPS on GPIO9 is disabled by default to avoid accidentally invoking the
WPS function.
4. The WPS application is invoked when GPIO9 goes from low to high. You can
enable this mode on the RN134 and RN174 boards by installing and removing
the ad hoc/factory reset jumper or by pushing the board’s FN button.
When the WPS application launches, it negotiates the SSID and passphrase with the
AP and reboots the module to associate with the WPS-enabled access point.
By default, during the WPS process, the module prints messages on the UART as it
scans channels, detects access points, and tries to complete WPS. You can disable
these messages using the set sys print 0 command.
4.7.2 Status LEDs during WPS Process
In WPS mode, the LEDs indicate activity:
• The red LED flashes while the module is scanning for WPS-enabled access
points.
• The yellow LED goes on solid while negotiation is in progress with a WPS-
enabled access point. If the process is successful, the WPS application quits and
the module reboots.
• If the module is set to use the standard GPIO functions (i.e., not the alternate
GPIO4 functions), the green LED blinks once per second. If the alternate GPIO4
function is enabled, the green LED goes high.
4.8 AD HOC NETWORKING MODE
There are two types of networks, infrastructure and ad hoc. Infrastructure networks, in
which an access point links all Wi-Fi devices, are the most common. The access point
keeps track of devices on the local network and directs IP packets. In many cases, the
access point is also a router and forwards packets from the local network to other net-
works and the Internet. It is also very common for the access point to run a DHCP
server, which tracks and assigns IP addresses.
Ad hoc networks are point-to-point networks in that each Wi-Fi device is linked directly
to every other Wi-Fi device on the ad hoc network. There is no access point. All Wi-Fi
devices on the ad hoc network participate in keeping the network alive and each keeps
Note: If GPIO9 is high, the module boots in ad hoc or soft AP mode, depending
on the firmware version. Care must be taken to drive GPIO9 low before the
module reboots. A good indicator is the red LED on the RN134 and RN174
boards. When this LED flashes, indicating the module is scanning for a
WPS-enabled access point, you should drive GPIO9 low.