User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 31
Default: 0
Example: set wlan auth 4 // Use WPA2-PSK authentication
2.3.69 set wlan channel <value> <flag>
This command sets the WLAN channel, where <value> is a decimal number from 1 to
13 representing a fixed channel and <flag> is the optional character i (meaning imme-
diate). If you set the channel to 0, the modules performs a scan using the SSID for all
the channels set in the channel mask. The i flag allows you to create a temporary AP
mode setup without having to reboot or save the settings. See Example 2.
Default: 0
Example 1:set wlan channel 2 // Set the WLAN channel to 2
Example 2:set wlan channel 1 i
set wlan join 7
set ip address 1.2.3.4
set ip gateway 1.2.3.4
set ip netmask 255.255.255.0
set ip dhcp 4 // Use DHCP server
join <SSID> // Module goes into AP mode
2.3.70 set wlan ext_antenna <value>
This commands determines which antenna is active, where <value> is 0 (use the chip
antenna) or 1 (use the U.FL connector). Only one antenna is active at a time and the
module must be power cycled after changing the antenna setting.
Default: 0
Example: set wlan ext_antenna 1 // Use the U.FL antenna
TABLE 2-13: SET WLAN AUTH COMMAND AUTHENTICATION MODES
Value Authentication Mode
0 Open (Default)
1WEP-128
2WPA1
3 Mixed WPA1 and WPA2-PSK
4WPA2-PSK
5 Not used
6 Ad hoc mode (join any ad hoc network)
8WPE-64
Note: This command applies only to the RN131 module; it is not applicable to the
RN171. If you send this parameter to the RN171, it issues an error mes-
sage ERR: Bad Args.