www.rovingnetworks.com
Version 1.0r 9/21/2012
31
RN -W IFLYCR -U M
set wlan key <
value
>
This command sets the 128-bit WEP key, where <
value
> is EXACTLY 26 ASCII chars (13 bytes) in hex without the
preceding 0x. Hex digits greater than 9 can be either upper or lower case. If you are using WPA or WPA2, enter a
pass phrase with the
set wlan passphase
command.
Default:
Not applicable
Example:
set wlan key 112233445566778899AABBCCDD
// Sets the passkey
NOTE:
The module only supports open mode, 128-bit keys for WEP. WEP-128 shared mode is not supported
because it is easily compromised and has been deprecated from the WiFi standards.
set wlan linkmon <
value
>
This command sets the link monitor timeout threshold, where <
value
> is a decimal number representing the number
of failed scans before the module declares
AP is Lost
and de-authenticates. If you set this parameter to 1 or more, the
module scans once per second for the access point with which it is associated. The module re-attempts the
association based on the join policy setting. Roving Networks recommends setting the threshold to 5 attempts,
because some access points do not always respond to probes. If you do not set this parameter, there is no way to
detect that an access point is no longer present until it becomes available again (if ever).
Default:
0 (disabled)
Example:
set wlan linkmon 5
// Set the number of scan attempts to 5
set wlan mask <
mask
>
This command sets the WLAN channel mask, which is used for scanning channels with auto-join policy 1 or 2, where
<
mask
> is a hex number (bit 0 = channel 1). Reducing the number of channels scanned for association increases
battery life. This setting is used when the channel is set to 0.
Default:
0x1FFF (all channels)
Example:
set wlan mask 0x0421
// Scans for channels 1, 6, and 11
set wlan phrase <
string
>
This command sets the passphrase for WPA and WPA2 security modes, where <
string
> is 1 to 64 characters
(64 bytes). The passphrase is alphanumeric, and is used with the SSID to generate a unique 32-byte pre-shared key
(PSK), which is then hashed into a 256-bit number. When you change either the SSID or the passphrase, the module
re-calculates and stores the PSK.
If you enter exactly 64 characters, the module assumes that the passphrase is an ASCII hex representation of the
32-byte PSK, and the value is simply stored.
For passphrases that contain spaces, use the replacement character
$
instead of spaces. For example
my pass word
becomes
my$pass$word
. You can change the replacement character using the
set opt replace
command.
Default:
rubygirl
Example:
set wlan phrase my_password
// Sets the phrase to my_password