Rabbit RabbitCore RCM5400W User Manual page 75

C-programmable wi-fi core module
Table of Contents

Advertisement

PINGLED_STATS.C
receiver/transmitter statistics in the Dynamic C
Before you compile and run this sample program, change
want to ping. You may modify
milliseconds between the outgoing pings.
Modify the value in the
ing of the statistics. Also review the
which affect the number of samples to gather and create a bar graph display instead of a
numeric display.
Uncomment the
VERBOSE
PINGLED_WPA_PSK.C
Protected Access with Pre-Shared Key). WPA is a more secure replacement for WEP.
The implementation in the sample program supports use of the TKIP (Temporal Key
Integrity Protocol) cypher suite.
The sample program uses macros to configure the access point for WPA PSK, specify
the TKIP cypher suite, assign the access point SSID, and set the passphrase.
#define WIFI_USE_WPA
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_TKIP // Define cypher suite
#define IFC_WIFI_SSID "parvati"
#define IFC_WIFI_WPA_PSK_PASSPHRASE "now is the time"
The next macro specifies a suitable pre-shared key to use instead of the passphrase. The
key may be entered either as 64 hexadecimal digits or as an ASCII string of up to 63
characters.
#define IFC_WIFI_WPA_PSK_HEXSTR
TIP: There is a good chance of typos since the key is long. First, enter the key in this
sample program macro, then copy and paste it to your access point. This ensures that
both the RCM5400W and the access point have the same key.
TIP: For an initial test, it may be easier to use the 64 hex digit form of the key rather than
the ASCII passphrase. A passphrase requires considerable computation effort, which
delays the startup of the sample program by about 30 seconds.
Change
PING_WHO
change the amount of time in milliseconds between the outgoing pings.
Uncomment the
VERBOSE
Once you have compiled the sample program and it is running, LED DS2 will flash
when a ping is sent, and LED DS3 will flash when a ping is received.
User's Manual
—This program is similar to
PING_DELAY
MOVING_AVERAGE
GATHER_INTERVAL
define to see the incoming ping replies.
—This program demonstrates the use of WPA PSK (Wi-Fi
// Bring in WPA support
to the host you want to ping. You may modify
define to see the incoming ping replies.
, but it also displays
PINGLED.C
STDIO
window.
PING_WHO
define to change the amount of time in
macro to change the moving average filter-
and
GRAPHICAL
to the host you
macros,
to
PING_DELAY
69

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

Table of Contents