28
802.11b (Wi-Fi) Add-On Kits
4.3 Configuration Information
4.3.1 Network/Wi-Fi Configuration
Any device placed on an Ethernet-based Internet Protocol (IP) network must have its own
IP address. IP addresses are 32-bit numbers that uniquely identify a device. Besides the IP
address, we also need a netmask, which is a 32-bit number that tells the TCP/IP stack what
part of the IP address identifies the local network the device lives on.
The sample programs supplied with the Wi-Fi Add-On Kits configure the RabbitCore or
PowerCore modules with a default
TCPCONFIG
macro from the
TCP_CONFIG.LIB
library in the
LIB\TCPIP
directory. This macro allows specific IP address, netmask, gate-
way, and Wi-Fi parameters to be set at runtime. Change the network settings to configure
your RabbitCore or PowerCore with your own Ethernet settings only if that is necessary to
run the sample programs; you will likely need to change some of the Wi-Fi settings.
•
Network Parameters
These lines contain the IP address, netmask, nameserver, and gateway parameters.
#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"
There are similar macros defined for the various Wi-Fi settings.
•
Ad-Hoc Mode or Infrastructure Mode
The
_WIFI_MODE
macro is used to select the ad-hoc mode (
WIFICONF_ADHOC
) or the
infrastructure mode (
WIFICONF_INFRASTRUCT
). The example shows a configuration
for the infrastructure mode.
#define _WIFI_MODE WIFICONF_INFRASTRUCT
•
SSID Service Access Point Name
The
_WIFI_SSID
macro sets the name of the BSS access point you prefer to connect to
when operating in the infrastructure mode. The SSID name is a string of 0–32 charac-
ters, and restricts the connection to a specific service when specified. The channel is
chosen automatically. The example shows the default case where no specific service is
specified.
#define _WIFI_SSID ""
•
Wireless Network Settings
The
_WIFI_OWNCHANNEL
and the
_WIFI_OWNSSID
macros set the name of the IBSS
you create, and is usually specified when you plan to use the ad-hoc mode. The SSID
name is a string of 1–32 characters, and the channel number is 0–14.
#define _WIFI_OWNCHANNEL "10" // Channel "0" through "14"
#define _WIFI_OWNSSID "RabbitTest" // String specifying your BSS
Summary of Contents for RCM3000
Page 8: ...4 802 11b Wi Fi Add On Kits ...
Page 28: ...24 802 11b Wi Fi Add On Kits ...
Page 56: ...52 802 11b Wi Fi Add On Kits ...
Page 60: ...56 802 11b Wi Fi Add On Kits ...
Page 68: ...64 802 11b Wi Fi Add On Kits ...
Page 78: ...74 802 11b Wi Fi Add On Kits ...
Page 80: ...76 802 11b Wi Fi Add On Kits ...
Page 82: ...78 RabbitCore RCM3800 ...
Page 86: ......