
66
RabbitCore RCM5400W
You do not need to configure the SSID of your network since that iis done from the
access point names.
Now configure the access to the two access points.
// First Access Point
#define AP_0 "test1"
#define AP_0_LEN strlen(AP_0)
#define MY_ADDRESS_0 "10.10.6.250"
// use this static IP when connected to AP 0
#define PING_ADDRESS_0 "10.10.6.1" // address on AP 0 to ping
#define KEY_0 "0123456789abcdef0123456789"
// Second Access Point
#define AP_1 "test2"
#define AP_1_LEN strlen(AP_1)
#define MY_ADDRESS_1 "10.10.0.99"
// use this static IP when connected to AP 1
#define PING_ADDRESS_1 "10.10.0.50"// address on AP 1 to ping
#define KEY_1 "0123456789abcdef0123456789"
#define IFC_WIFI_SSID AP_0
#define _PRIMARY_STATIC_IP MY_ADDRESS_0
Modify the access point names and keys to match your access points and network.
•
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\Rabbit4000\TCPIP\TCP_
CONFIG.LIB
library.
#define TCPCONFIG 1
Use the next macro unchanged as long as you have only one RCM5400W 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 RCM5400W RabbitCore module.
The next macros assign an SSID name and a channel number to the Wi-Fi network.
#define IFC_WIFI_SSID "rab-hoc"
#define IFC_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 RCM5400W 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 RCM5400W RabbitCore modules, they will ping each other, and the
Dynamic C
STDIO
window will display the pings.
Содержание 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: ......