User’s Manual
41
WIFI_ETHERNET_COMBO.C
This sample program shows how to use Wi-Fi and Ethernet interfaces simultaneously. The
sample program shows how to listen for connections on two sockets on two IP addresses
specified in the sample program. A Telnet connection to either IP address will echo back
each character you type in the Telnet window.
To run this sample program, you will need a RabbitCore or PowerCore module with Eth-
ernet. Connect the RJ-45 jack to a PC with a crossover cable or to an Ethernet hub with a
straight-through cable. Figure 17 shows how to identify the two cables based on the wires
in the transparent RJ-45 connectors.
Figure 17. How to Identify Straight-Through and Crossover Ethernet Cables
Ethernet cables and a 10Base-T Ethernet hub are available from Z-World in a TCP/IP tool
kit. More information is available at
www.zworld.com
.
You may use the same PC that is running the sample program and is connected to the Rabbit-
Core or PowerCore module via the programming cable. You will have to configure the
PC’s network interface card and IP address as explained in Section 4.3.2, “PC/Laptop/
PDA Configuration.” Remember to use a different IP address (for example 10.10.6.102) if
you already configured another device with 10.10.6.101.
To run this sample program, you will need an access point and PC/notebook (infrastructure
mode) or a notebook with 802.11b wireless compatibility working in the ad-hoc mode. By
default, encryption is turned off by the
_WIFI_WEP_FLAG
flag in the
TCPCONFIG 9
macro used in the sample program and defined in the Dynamic C
TCP_CONFIG.LIB
library, and the
_WIFI_MODE
macro is set to the infrastructure mode. If you are using the
ad-hoc mode, you will need to change
WIFICONF_INFRASTRUCT
to
WIFICONF_ADHOC
in the following line in the Dynamic C
TCP_CONFIG.LIB
library.
#define _WIFI_MODE WIFICONF_ADHOC
Crossover
Cable
Straight-
Through
Cable
Same
color order
in connectors
Different
color order
in connectors
Содержание RCM3000
Страница 1: ...802 11b Wi Fi Add On Kits for RabbitCore and PowerCore Modules User s Manual 019 0092 051130 D ...
Страница 8: ...4 802 11b Wi Fi Add On Kits ...
Страница 28: ...24 802 11b Wi Fi Add On Kits ...
Страница 56: ...52 802 11b Wi Fi Add On Kits ...
Страница 60: ...56 802 11b Wi Fi Add On Kits ...
Страница 68: ...64 802 11b Wi Fi Add On Kits ...
Страница 78: ...74 802 11b Wi Fi Add On Kits ...
Страница 80: ...76 802 11b Wi Fi Add On Kits ...
Страница 82: ...78 RabbitCore RCM3800 ...
Страница 86: ......