WiFly Serial Adapter
www.rovingnetworks.com
wifly-serial-um 6/30/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 17 ~
4.5.
WLAN Parameters
set wlan channel <value>
sets the wlan channel, 1-13 is the valid range for a fixed channel. If 0 is
set, then scan is performed, using the ssid, for all the channels set in the
channel mask.
set wlan join <value>
sets the policy for automatically joining/associating with network access
points. This policy is used when the module powers up, including wake
up from the sleep timer.
Value
Policy
0
Manual, do not try to join
1
Try to join the access point that matches the stored
SSID, passkey and channel. Channel can be set to
0 for scanning. (Default)
2
Join ANY access point with security matching the
stored authentication mode. This ignores the stored
SSID and searches for the access point with the
strongest signal. The channels searched can be
limited by setting the channel mask.
3
Reserved – Not used
4
Create an Adhoc network, using stored SSID, IP
address and netmask. Channel MUST be set.
DHCP should be 0 (static IP) or set to Auto-IP with
this policy. (unless another Adhoc device can act as
DHCP server)
This policy is often used instead of the hardware
jumper to creat a custom Adhoc network
set wlan mask <value>
sets the wlan channel mask used for scanning channels with the auto-join
policy 1 or 2, used when the channel is set to 0. Value is a bit-map where
bit 0 = channel 1. Input for this command can be entered in decimal or
hex if prefixed with 0x. Default value is 0x1FFF (all channels)
set wlan phrase <string>
sets the passphrase for WPA and WPA2 security modes. 1-64 chars. The
passphrase can be alpha and numeric, and is used along with the SSID to
generate a unique 32 byte Pre-shared key (PSK), which is then hashed into
a 256 bit number. Changing either the SSID or this value re-calculates
and stores the PSK.
If exactly 64 chars are entered, it is assumed that this entry is already an
ASCII HEX representation of the 32 byte PSK and the value is simply
stored.