User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 46
Tabl e 3-1 shows the default AP mode settings.
When the module boots up in soft AP mode, other Wi-Fi-enabled devices (PCs,
iPhones, iPads, Android tablets, etc.) should be able to see the module when they scan
for access points.
3.1.1.2 ENABLE IN SOFTWARE
You enable AP mode in software using the set wlan join 7 command. You can custom-
ize 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 broadcast SSID
// (BSSID)
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 with the custom settings shown above
(SSID, channel, IP address, netmask, and gateway).
A quick method of creating a soft AP network is to use the apmode <bssid> <channel>
command, where <bssid> is the broadcast SSID and <channel> is the channel on
which the soft AP network is created. The <bssid> and <channel> parameters are
optional. If no parameters are specified, the module:
• Uses the string stored with the set opt device_id <string> command and
appends -xy, where xy is the last byte of the module’s MAC address as the SSID.
TABLE 3-1: DEFAULT AP MODE SETTINGS
Setting AP Mode Default
SSID WiFly-XXX-yy, where:
• XXX is GSX for the RN131 and EZX for the RN171
• yy is the LSB byte 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: Roving Networks recommends setting the WiFly module as the gateway
when creating a point-to-point network between devices (Wi-Fi network
only).