www.rovingnetworks.com
Version 1.32r 10/9/2012
12
RN -W IFLY -E VAL-U M
Associate with an Ad Hoc Network
The WiFly module can associate with an ad hoc network created by another device. Type the commands:
set wlan ssid my_adhoc_network
save
reboot
To associate with an ad hoc network without saving the changes to the module’s flash memory, use the
join
command,
e.g.,
join my_adhoc_network
<cr>.
If DHCP is enabled, the WiFly device obtains an IP address automatically when it associates with the ad hoc network. By
definition, auto IP sets the first two bytes of the subnet to 169.254.
xxx.xxx
. The WiFly device requires 2 to 3 seconds to
resolve the IP address.
To set the IP address statically, disable DHCP and explicitly assign the IP address:
set ip dhcp 0
set ip address 169.254.1.2
You can confirm that the device has properly associated with the ad hoc network using the
ping
keyword:
ping 169.254.1.1 10
Associate with the WiFly Module over an Ad Hoc Network from a Computer
You can associate with the ad hoc network from a computer by specifying the network name (and password, if required) in
the operating system. For example, choose Control Panel > Networking and Sharing > Networking and Sharing Center
(Windows Vista) or Control Panel > Network Connections (Windows XP). You can then view available networks and select
the name of the WiFly ad hoc network.
NOTE:
Once associated with the ad hoc network, Windows Vista may require a few minutes to allocate an IP address.
To work around this issue, assign a static IP address under
Network Settings > TCP/IP > Properties
.
Once your computer is associated with the ad hoc network, you can use the WiFly module’s IP address to open a
connection or connect using telnet as you would with an enterprise connection.
NOTE:
The WiFly module does not support ad hoc and infrastructure network modes simultaneously.
Once you have associated with the other network, you can telnet into the WiFly module to configure it. Open the telnet
connection using port 2000.
NEXT STEPS
Once you have set up the evaluation kit hardware and have gone through your initial evaluation using the instructions in
this user guide, refer to the labs in the
WiFly Training Presentation
to get started developing applications.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from