User Manual
Getting Started
2013 Microchip Technology Inc. DS50002183A-page 27
2.4.5 Enabling AP mode
There are two methods for enabling AP mode, hardware and software, as described in
the following sections.
2.4.5.1 ENABLE IN HARDWARE
To enable AP mode in hardware, hold GPIO9 high at 3.3V and then reboot (or power
cycle) the module. The module boots up in AP mode with the DHCP server enabled.
Table 2-2 shows the default AP mode settings.
TABLE 2-2: DEFAULT AP MODE SETTINGS
When the module boots, other Wi-Fi-enabled devices (PCs, iPhones, iPads, Android
tablets, etc.) must be able to see the module when they scan for access points.
If devices such as smartphones and tablets (iPads, Android tablets, etc.) with a WAN con-
nection associate to the soft AP network, Roving Networks recommends setting the gate-
way to 0. This setting enables these smartphones route the data from Wi-Fi to the 3G or
4G WAN network.
2.4.5.2 ENABLE IN SOFTWARE
Enable AP mode in software using the set wlan join 7 command. 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:
After rebooting, the module is in AP mode.
Note: For more details on programming/configuring the module, refer to the docu-
mentation of module used on the Support page from the Microchip web site
at http://www.microchip.com.
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
Note: It is recommended to set the RN131/171 module as a gateway when creating
point-to-point network between devices (Wi-Fi network only).
set wlan join 7 // Enable AP mode
set wlan channel <value> // Specify the channel to create network
set wlan ssid <string> // Setup 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