
User’s Manual
71
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()
function call from the Dynamic C
LIB\Rabbit4000\TCPIP\
NET.LIB
library.
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
macros from the Dynamic C
LIB\Rabbit4000\TCPIP\
TCP_CONFIG.LIB
library at the beginning of your program as in the example below.
#define TCPCONFIG 1
There are two
TCPCONFIG
macros specifically set up for Wi-Fi applications with the
RCM5400W module. (
TCPCONFIG 0
is not supported for Wi-Fi applications.)
These default IP address, netmask, nameserver, and gateway network parameters are set
up for the
TCPCONFIG
macros.
#define _PRIMARY_STATIC_IP "10.10.6.100"
#define _PRIMARY_NETMASK "255.255.255.0"
#define MY_NAMESERVER "10.10.6.1"
#define MY_GATEWAY "10.10.6.1"
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—
IFC_WIFI_SSID
. This is the only mandatory parameter. Define
the
IFC_WIFI_SSID
macro to a string for the SSID of the access point in the infra-
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
determines the mode:
IFPARAM_WIFI_INFRASTRUCT
for the infrastructure mode, or
IFPARAM_WIFI_ADHOC
for the ad-hoc mode.
The default is shown below.
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCT
TCPCONFIG 1
No DHCP
TCPCONFIG 5
DHCP enabled
Содержание RabbitCore RCM5400W
Страница 1: ...RabbitCore RCM5400W C Programmable Wi Fi Core Module OEM User s Manual 019 0169 080630 A...
Страница 6: ...RabbitCore RCM5400W...
Страница 24: ...18 RabbitCore RCM5400W...
Страница 32: ...26 RabbitCore RCM5400W...
Страница 52: ...46 RabbitCore RCM5400W...
Страница 60: ...54 RabbitCore RCM4400W...
Страница 83: ...OEM User s Manual 77 APPENDIX A RCM5400W SPECIFICATIONS Appendix A provides the specifications for the RCM5400W...
Страница 96: ...90 RabbitCore RCM5400W...
Страница 114: ...108 RabbitCore RCM4400W...
Страница 118: ...112 RabbitCore RCM4400W...
Страница 120: ......