www.rovingnetworks.com
Set the WiFly module’s IP address and n
address, use 255.255.0.0 as the netmask
also set the netmask to a smaller subnet if the other device’s IP addresses begin statically
ad hoc device.
set ip address 169.254.1.1
set ip netmask 255.255.0.0
Turn off DHCP so that the module does not attempt to obtain an IP address from another device
set ip dhcp 0
Save your configuration and reboot. The module
Figure 7. Enable Ad Hoc Network Mode
Associate with an Ad Hoc Network
The WiFly module can associate with an ad hoc network c
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
command, e.g.,
join my_adhoc_network
If DHCP is enabled, the WiFly device obtains
By definition, auto IP sets the first two bytes of
seconds to resolve the IP address.
To set the IP address statically, disable DHCP
set ip dhcp 0
set ip address 169.254.1.2
Version 1.01 9/28/2012
RN-XV
IP address and netmask. Because automatic IP assignment fixes the first two bytes of the IP
as the netmask so that other devices connecting to the module can be reached. You can
set the netmask to a smaller subnet if the other device’s IP addresses begin statically at the same subnet as
HCP so that the module does not attempt to obtain an IP address from another device.
reboot. The module will be in ad hoc mode. See Figure 7.
Mode
The WiFly module can associate with an ad hoc network created by another device. Type the commands:
an ad hoc network without saving the changes to the module’s flash memory, use
join my_adhoc_network
<cr>.
, the WiFly device obtains an IP address automatically when it associates with the ad
the first two bytes of the subnet to 169.254.
xxx.xxx
. The WiFly device requires
the IP address statically, disable DHCP and explicitly assign the IP address:
10
XV-RD2-EVAL-UM
the first two bytes of the IP
to the module can be reached. You can
the same subnet as the
reated by another device. Type the commands:
an ad hoc network without saving the changes to the module’s flash memory, use the
join
with the ad hoc network.
requires 2 to 3