Wi-Fi Operation - Rabbit RabbitCore RCM5400W User Manual

C-programmable wi-fi core module
Table of Contents

Advertisement

Before you compile and run this sample program, check the TCP/IP configuration
parameters, the IP address, and the SSID in the macros, which are reproduced below.
#define TCPCONFIG 1
// #define WIFI_REGION_VERBOSE
#define PING_WHO "10.10.6.1"
#define _PRIMARY_STATIC_IP "10.10.6.170"
#define IFC_WIFI_SSID "rabbitTest"
Now compile and run this sample program. Uncomment the
macro to display the channel and power limit settings. The Dynamic C
VERBOSE
window will then display a menu that allows you to complete the configuration of the
user interface.

6.2.4.2 Wi-Fi Operation

WIFIDHCPORTSTATIC.C
tion or DHCP. The
ples of using DHCP with your application.
Before you compile and run this sample program, check the TCP/IP configuration
parameters, the IP address, and the SSID in the macros, which are reproduced below.
#define USE_DHCP
#define TCPCONFIG 1
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define IFC_WIFI_SSID "rabbitTest"
Modify the values to match your network. You may also need to modify the values for
if you are not pinging from the local subnet.
MY_GATEWAY
Now press
F9
to compile and run the sample program. When prompted in the Dynamic C
window, type 's' for static configuration or 'd' for DHCP.
STDIO
WIFIMULTIPLEAPS.C
will need two access points to run this sample program. The access points should be
isolated or on separate networks.
The sample program associates the RabbitCore module with the first access point (
defined below) with WEP key
program waits for a predefined time period, and then pings the Ethernet address of the
access point (
AP_ADDRESS_0
access point and pings its Ethernet address (
switches back and forth between the two access points.
When changing access points, first bring the
ifdown(IF_WIFI0)
Finally, bring the
IF_WIFI0
the sample program checks for status while waiting for the interface to come up or
down.
Before you compile and run this sample program, check the TCP/IP configuration
parameters, the IP address, and the SSID in the macros, which are reproduced below.
#define TCPCONFIG 1
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_WEP
User's Manual
—demonstrates the runtime selection of a static IP configura-
SAMPLES\TCPIP\DHCP.C
—demonstrates changing access points using WEP keys. You
(defined below). After associating, the sample
KEY0
). The sample program then associates with the second
. Next, change the SSID and key(s) using
interface back up by calling
#define WIFI_REGION_
sample program provides further exam-
,
,
AP_1
KEY1
AP_ADDRESS_1
interface down by calling
IF_WIFI0
ifconfig()
ifup(IF_WIFI0)
STDIO
AP_0
), and then
calls.
. Note that
65

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