![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4400w/rabbitcore-rcm4400w_product-manual_3115424069.webp)
User’s Manual
61
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 _WIFI_SSID "deanap"
Now compile and run this sample program. The
#define WIFI_REGION_VERBOSE
macro will display the channel and power limit settings. The Dynamic C
STDIO
win-
dow will then display a menu that allows you to complete the configuration of the user
interface.
6.2.4.2 Wi-Fi Operation
•
WIFIPINGYOU.C
—sends out a series of pings to a RabbitCore module on an ad-hoc
Wi-Fi network.
This sample program uses some predefined macros. The first macro specifies the
default TCP/IP configuration from the Dynamic C
Lib\TCPIP\TCP_CONFIG.LIB
library.
#define TCPCONFIG 1
Use the next macro unchanged as long as you have only one RCM4400W RabbitCore
module. Otherwise use this macro unchanged for the first RabbitCore module.
#define NODE 1
Then change the macro to
#define NODE 2
before you compile and run this sample
program on the second RCM4400W RabbitCore module.
The next macros assign an SSID name and a channel number to the Wi-Fi network.
#define _WIFI_SSID "rab-hoc"
#define _WIFI_OWNCHANNEL "5"
Finally, IP addresses are assigned to the RabbitCore modules.
#define IPADDR_1 "10.10.8.1"
#define IPADDR_2 "10.10.8.2"
As long as you have only one RCM4400W RabbitCore module, the Dynamic C
STDIO
window will display the pings sent out by the module. You may set up a Wi-Fi enabled
laptop with the IP address in
IPADDR_2
to get the pings.
If you have two RCM4400W RabbitCore modules, they will ping each other, and the
Dynamic C
STDIO
window will display the pings.
•
WIFISCAN.C
—initializes the RCM4400W and scans for other Wi-Fi devices that are
operating in either the ad-hoc mode or through access points in the infrastructure mode.
No network parameter settings are needed since the RCM4400W does not actually join
an 802.11b network. This program outputs the results of the scan to the Dynamic C
STDIO
window.
Summary of Contents for RabbitCore RCM4400W
Page 1: ...RabbitCore RCM4400W C Programmable Wi Fi Core Module OEM User s Manual 019 0160 080131 F...
Page 6: ...RabbitCore RCM4400W...
Page 24: ...18 RabbitCore RCM4400W...
Page 32: ...24 RabbitCore RCM4400W...
Page 58: ...50 RabbitCore RCM4400W...
Page 102: ...94 RabbitCore RCM4400W...
Page 120: ...112 RabbitCore RCM4400W...
Page 124: ...116 RabbitCore RCM4400W...
Page 126: ......