Dynamic C Wi-Fi Configurations; Configuring Tcp/Ip At Compile Time - Rabbit RabbitCore RCM5400W User Manual

C-programmable wi-fi core module
Table of Contents

Advertisement

6.3 Dynamic C Wi-Fi Configurations

Rabbit has implemented a packet driver for the RCM5400W that functions much like an
Ethernet driver for the Dynamic C implementation of the TCP/IP protocol stack. In addi-
tion to functioning like an Ethernet packet driver, this driver implements a function call to
access the functions implemented on the 802.11b/g interface, and to mask channels that
are not available in the region where the RCM5400W will be used.
The Wi-Fi interface may be used either at compile time using macro statements or at run
time with the
ifconfig()
library.
NET.LIB

6.3.1 Configuring TCP/IP at Compile Time

Digi International has made it easy for you to set up the parameter configuration using
already-defined
TCPCONFIG
library at the beginning of your program as in the example below.
TCP_CONFIG.LIB
#define TCPCONFIG 1
There are two
TCPCONFIG
RCM5400W module. (
TCPCONFIG 1
TCPCONFIG 5
These default IP address, netmask, nameserver, and gateway network parameters are set
up for the
TCPCONFIG
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define _PRIMARY_NETMASK
#define MY_NAMESERVER
#define MY_GATEWAY
The use of quotation marks in the examples described in this chapter is important since the
absence of quotation marks will be flagged with warning messages when encrypted librar-
ies are used.
Wi-Fi Parameters
• Access Point SSID—
the
IFC_WIFI_SSID
structure (BSS) mode, or the SSID of the ad-hoc network in the ad-hoc (IBSS) mode.
The default is shown below.
#define IFC_WIFI_SSID "rabbitTest"
• Mode—
IFC_WIFI_MODE
IFPARAM_WIFI_INFRASTRUCT
for the ad-hoc mode.
The default is shown below.
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCT
User's Manual
function call from the Dynamic C
macros from the Dynamic C
macros specifically set up for Wi-Fi applications with the
is not supported for Wi-Fi applications.)
TCPCONFIG 0
No DHCP
DHCP enabled
macros.
"255.255.255.0"
"10.10.6.1"
"10.10.6.1"
. This is the only mandatory parameter. Define
IFC_WIFI_SSID
macro to a string for the SSID of the access point in the infra-
determines the mode:
for the infrastructure mode, or
LIB\Rabbit4000\TCPIP\
LIB\Rabbit4000\TCPIP\
IFPARAM_WIFI_ADHOC
71

Advertisement

Table of Contents
loading

Table of Contents