User's Manual

WiFly GSX
www.rovingnetworks.com WiFlyRN171-um 2/23/2011
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 •info@RovingNetworks.com
~54~
From command mode, the module is configured for adhoc mode using the join command. You will also
need to set the ssid and channel.
setwlan join 4
setwlanssid my_adhoc_network
setwlanchan 1
Turn off DHCP and set the IP address and netmask so other devices know where to connect to the adhoc
WiFly GSX. Since auto IP fixes the first two bytes of the IP address you want to use the netmask of
255.255.0.0 so that other device connecting to the module can be reached. Alternatively you can set the
netmask to a smaller subnet if the other device’s IP addresses are begin statically to the same subnet as the
adhoc device
setip address169.254.1.1
setip netmask255.255.0.0
setip dhcp0
Be sure to save your configuration, then upon reboot the module will be in adhoc mode.
To associate with an adhoc network from another WiFly device:
setwlanssidmy_adhoc_network
reboot
or alternatively you can use the join command to associate with the adhoc network. Remember to
disassociated using the leave command if you are previously associated to another network.
joinmy_adhoc_network
If you leave DHCP service enabled the WiFly device will get an IP address using auto IP when associating
with the adhoc network. By definition auto IP fixes the first two bytes of subnet to 169.254.xxx.xxx. The
WiFly device takes about two to three seconds to resolve the auto IP address.
Alternatively you can statically set the IP address by disabling the DHCP service and explicitly assigning
the IP address.
setipaddress169.254.1.2
setipdhcp0
You can confirm the device has properly connected to the adhoc network using the ping command.
ping 169.254.1.1 10
To use associate with the WiFly adhoc network from another computer