www.rovingnetworks.com
Version 1.01 9/28/2012
9
RN-XV-RD2-EVAL-UM
set wlan ssid roving1
// roving1 is the default name
set wlan pass rubygirl
// rubygirl is the default password
save
reboot
See Figure 6. You can confirm the security settings by typing
get wlan
<cr>.
Figure 6. Connect to a Secure Network
Configuration Using Ad Hoc Mode
You can configure the module over the air via an ad hoc network. Ad hoc networks are useful for point-to-point
communication. In ad hoc mode, the WiFly appears as an access point with which other Wi-Fi devices can associate.
You can turn on ad hoc mode using hardware or software configuration.
NOTE:
the WiFly module only supports the OPEN mode for ad hoc networks.
Enable Ad Hoc Mode via Hardware
To enable ad hoc mode using hardware, set GPIO9
high (3.3 V) at power up. For the RN-134 board, GPIO9 is on pin
1 on the jumper block (J2). For the RN-174 board, GPIO9 is on the J6 connector. Upon power up with GPIO9 high,
the 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
IP address:
169.254.1.1
Enable Ad Hoc Mode via Software
To enable ad hoc mode in software, you use the
set wlan
command with the
join
,
ssid
, and
chan
parameters. For
example, type the following commands in command mode:
set wlan join 4
set wlan ssid my_adhoc_network
set wlan chan 1