www.rovingnetworks.com
Version 1.0r 9/21/2012
43
RN -W IFLYCR -U M
Enabling AP mode
There are two methods for enabling AP mode, hardware and software, as described in the following sections.
Enable in Hardware
To enable AP mode in hardware, hold GPIO9 high at 3.3 V and then reboot (or power cycle) the module. The module
boots up in AP mode with the DHCP server enabled.
NOTE:
Refer to the documentation for your module on the Support page of the Roving Networks web site at
http://rovingnetworks.com/Support_Overview
for more details on programming/configuring the module.
Table 15 shows the default AP mode settings.
Table 15. Default AP Mode Settings
Setting
AP Mode Default
SSID
WiFlyAP-
XX
, where
XX
is the last two bytes of the module’s MAC address
Channel
1
DHCP server
Enabled
IP address
1.2.3.4
Netmask
255.255.255.0
Gateway
1.2.3.4
When the module boots, other Wi-Fi-enabled devices (PCs, iPhones, iPads, Android tablets, etc.) should be able to see the
module when they scan for access points.
NOTE:
Roving Networks recommends setting the WiFly module as the gateway when creating a point-to-point
network between devices (Wi-Fi network only).
If devices such as smartphones and tablets (iPads, Android tablets, etc.) with a WAN connection associate to the soft AP
network, Roving Networks recommends setting the gateway to 0. This setting lets these smartphones route the data from
Wi-Fi to the 3G or 4G WAN network.
Enable in Software
You enable AP mode in software using the
set wlan join 7
command. You can customize network settings such as the
SSID, channel, and IP address in software to create a custom AP mode. For example, the following commands create a
custom AP mode in software:
set wlan join 7
// Enable AP mode
set wlan channel
<
value
>
// Specify the channel to create network
set wlan ssid
<
string
>
// Set up network SSID
set ip dhcp 4
// Enable DHCP server
set ip address
<
address
>
// Specify the IP address
set ip net
<
address
>
// Specify the subnet mask
set ip gateway
<
address
>
// Specify the gateway
save
// Store settings
reboot
// Reboot the module in AP mode
After rebooting, the module is in AP mode.