Rabbit RabbitCore RCM5400W User Manual page 79

C-programmable wi-fi core module
Table of Contents

Advertisement

These macros specify the WEP keys to use for WEP encryption. These keys can be
either 40-bit or 104-bit (i.e., 5 bytes or 13 bytes). They must be defined as a comma-
separated list of byte values.
Note that you do not necessarily need to define all four WEP keys. You may typically
just define one key, but make sure it matches the key used on all other devices, and set
IFC_WIFI_WEP_KEYNUM
If both
IFC_WIFI_WEP_KEY#_BIN
for a particular key, the hex version will be used.
• Use WPA encryption.
The following macro must also be used to compile WPA functionality into the Wi-Fi
driver. This is necessary to enable TKIP encryption.
#define WIFI_USE_WPA
• Set WPA passphrase—
passphrase on your access point. It may also point to a variable.
Define an ASCII passphrase here, from 1 to 63 characters long. An example is shown
below.
#define IFC_WIFI_WPA_PSK_PASSPHRASE "now is the time"
If possible, you should use
WPA_PSK_PASSPHRASE
• Set WPA hexadecimal key—
digits that matches the 256-bit (64-byte) hexadecimal key used by your access point.
Specify a 64 hexadecimal digit (256 bits) key here. This key will be used and will over-
ride any passphrase set with the
example hex key shown below
#define IFC_WIFI_WPA_PSK_HEXSTR \
"57A12204B7B350C4A86A507A8AF23C0E81D0319F4C4C4AE83CE3299EFE1FCD27"
is valid for the SSID
Using a passphrase is rather slow. It takes a Rabbit 5000 more than 20 seconds to gen-
erate the actual 256-bit key from the passphrase. If you use a passphrase and
WIFI_VERBOSE_PASSPHRASE
corresponding to that passphrase and SSID.
• Authentication algorithm—
authentication modes used.
The default shown below allows enables both open-system authentication and shared-
key authentication.
#define IFPARAM_WIFI_AUTH_ANY
User's Manual
to point to the correct key.
and
IFC_WIFI_WEP_KEY#_HEXSTR
IFC_WIFI_WPA_PSK_PASSPHRASE
IFC_WIFI_WPA_PSK_HEXSTR
to set the key.
IFC_WIFI_WPA_PSK_HEXSTR
IFC_WIFI_WPA_PSK_PASSPHRASE
and the passphrase
"rabbitTest"
, the Wi-Fi library will helpfully print out the hex key
IFC_WIFI_AUTHENTICATION
are defined
is a string that matches the
instead of
IFC_WIFI_
is a string of hexadecimal
macro. The
"now is the time"
#define
can be used to specify the
.
73

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RabbitCore RCM5400W and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents