WiSnap User Manual 4.41 05282015-ML
Page 51
To enable Access Point mode in hardware, hold GPIO9 high at 3.3 V and then reboot (or power cycle) the module. The module
boots up in Access Point mode with the DHCP server enabled.
The table below displays the default Access Point Mode Settings:
Setting
AP Mode Default
SSID
WiSnapAP-
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, Android Phones, etc.) should be
able to see the module when they scan for access points.
NOTE:
SerialIO recommends setting the WiSnap 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, SerialIO recommends setting the gateway to 0. This setting lets these smartphones route the data from Wi-Fi to the
3G or 4G WAN network.
16.1.2 Enable in Software
You enable Access Point 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:
1)
set wlan join 7 -
enable AP mode
2)
set wlan channel
<value>
-
specify the channel to create network
3)
set wlan ssid
<string>
-
set network ssid
4)
set ip dhcp 4 -
enable DHCP server
5)
set ip address
<address>
-
specify the IP address
6)
set ip net
<address>
-
specify the subnet mask
7)
set ip gateway
<address>
-
specify the gateway IP
8)
save -
save settings
9)
reboot -
reboot the module in AP mode
After rebooting, the module is in Access Point mode.
16.2 Using Access Point Mode
The following sections describe how to use Access Point mode, including connecting to the module, checking for the last device
connected over TCP, viewing associated devices, enabling the link monitor, and routing data between clients.
16.2.1 Connect to the Module
Once the module boots up in Access Point mode, any client device can associate with the network being broadcasted by the
module. Once associated, the module’s DHCP server assigns an IP address to the client device.
The default lease time is 1 day, i.e., 86,400 seconds. You can configure the lease time using the set dhcp lease
<value>
command, where
<value>
is the time in seconds. To view a list of devices associated with the module, use the
show lease
command. The command output is in the following format with commas delimiting the fields: