Rcm5400W Sample Programs - Rabbit RabbitCore RCM5400W User Manual

C-programmable wi-fi core module
Table of Contents

Advertisement

The data passed to the callback function are ephemeral since another scan may occur.
Thus, the data need to be used (or copied) during the callback function.
While waiting for user input, it is important to keep the network alive by calling
tcp_tick(NULL)

6.2.5 RCM5400W Sample Programs

The following sample programs are in the Dynamic C
folder.
—This program demonstrates a basic controller running a Web page.
BROWSELED.C
Two "device LEDs" are created along with two buttons to toggle them. Users can use
their Web browser to change the status of the lights. The DS2 and DS3 LEDs on the
Prototyping Board will match those on the Web page. As long as you have not modified
the
TCPCONFIG 1
your Web browser to bring up the Web page served by the sample program. Remember
to configure the access point to match the default settings of the
http://10.10.6.100.
Otherwise use the TCP/IP settings you entered in the
Options > Project Options menu
—This program demonstrates how to perform the CPU-intensive process
PASSPHRASE.C
of converting an ASCII passphrase into a WPA PSK hex key.
For security reasons, the mapping function is deliberately designed to be CPU-intensive
in order to make a dictionary-based attack more difficult. It can take on the order of 40
seconds to perform the 4096 iterations on the RCM5400W. Since this may be an unac-
ceptable amount of time to "block" the application program, a method is provided to
split up the computation.
As you compile and run this sample program, there is no network activity. You will
only notice that some information is printed out in the Dynamic C
—This program demonstrates ICMP by pinging a remote host. It will flash
PINGLED.C
LED DS2 on the Prototyping Board when a ping is sent and it will flash LED DS3
when a ping is received.
Before you compile and run this sample program, change
want to ping. You may modify
milliseconds between the outgoing pings.
Uncomment the VERBOSE define to see the incoming ping replies.
68
regularly.
macro in the sample program, enter the following server address in
.
PING_DELAY
SAMPLES\RCM5400W\TCPIP\
TCPCONFIG 1
in the "Defines" tab in the Dynamic C
PING_WHO
define to change the amount of time in
macro.
window.
STDIO
to the host you
RabbitCore RCM5400W

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