WiSnap User Manual 4.41 05282015-ML
Page 50
With firmware version 2.22 and higher, the module can scan for networks while in ad hoc mode. Issuing the scan command
temporarily disables ad hoc mode while the module is scanning. Ad hoc mode is restored automatically when the scan
completes. If you are connected to the module over telnet, the scan result is sent over telnet and ad hoc mode is restored.
15.5 Enable Ad Hoc Mode in Hardware
To enable ad hoc mode using hardware, set GPIO0 high (3.3V) at power up. For the RN134 board, GPIO9 is on pin 1 on the
jumper block (J2). For the RN174 board, GPIO9 is on the J6 connector. Upon power up with GPIO9 high, the WiSnap module
creates an ad hoc network with the following settings:
SSID
:
WiFly-GSX-
XX
, where
XX
is the final two bytes of the device’s MAC address
Channel:
1
DHCP:
OFF
IP address:
169.254.1.1
Netmask:
255.255.0.0
With the ad hoc jumper in place, these settings override any current saved configuration settings.
16 Access Point Networking Mode
SerialIO WiSnap modules support several methods for configuring Wi-Fi networks. In addition to infrastructure mode, hot spot
mode, and Ad-Hoc mode (2.36 firmware or earlier), modules with firmware version 2.45 can support access point (AP) mode.
Currently, Access Point mode acts as a replacement to Ad-Hoc mode.
Access Point Mode provides many advantages over ad-hoc mode. In Access Point mode:
The module creates a soft AP network to which Android devices (smartphones and tablets) can join. At the time this
document was authored, android devices do not fully support ad-hoc networking.
The module runs a DHCP server and issues IP addresses to up to seven clients, which is much faster than automatic IP
in Ad-Hoc mode.
iOS devices prioritize Access Points over Ad-Hoc networks.
The module supports routing between clients
Before enabling AP mode, you must load firmware that supports it. You can get your version by typing
ver
while in CMD mode.
You must change the version to 2.45 to use AP mode. You change the module’s firmware image using the boot image
<value>
command. After you change the boot image, you MUST reset the module back to the factory defaults using the
factory RESET
and
reboot
commands. You can obtain the firmware images from the update FTP site. See “Upgrading Firmware via FTP” for
instructions on how to download and install the firmware. Please note that initiating a
factory RESET
will result in “breaking”
the embedded genuine WiSnap license and may cause compatibility issues with other SerialIO products.
The following sections describe how to use AP mode with WiSnap products, including configuring the module to act as an
Access Point, enabling Access Point mode in hardware and software, and sending data to the module from a remote host.
16.1 Enabling AP Mode
There are two methods for enabling AP mode, hardware and software, as described in the following sections.
16.1.1 Enable in Hardware