Getting Started Manual
Using the TCP/IP Features
4–5
In this case, the gateway is not used and is com-
mented out. The IP address of the board is defined
to be 10.1.1.2. The IP address of you PC can be
defined as 10.1.1.1.
4.7
How to Set Up your
Computer’s IP Address For
Direct Connect
When your computer is connected directly to the
RCM2200 board via an Ethernet connection, you
need to assign an IP address to your computer. To
assign the PC the address 10.1.1.1 with the subnet-
mask 255.255.255.248 under Windows 98, do the
following.
Click on
Start > Settings > Control Panel
to
bring up the Control Panel, and then double-click
the Network icon. In the window find the line of the
form
TCP/IP > Ethernet adapter name
. Dou-
ble-click on this line to bring up the TCP/IP proper-
ties dialog box. You can edit the IP address directly
and the subnet mask. (Disable “obtain an IP address
automatically.”) You may want to write down the
existing values in case you have to restore them
later. It is not necessary to edit the gateway address
since the gateway is not used with direct connect.
The method of setting the IP address may differ for
different versions of Windows, such as 95, NT or
2000.
4.8
Run the
PINGME.C
Demo
In order to run this program, edit the IP address and
netmask in the
PINGME.C
program
(
SAMPLES\TCPIP\ICMP
) to the values given
above (10.1.1.2 and 255.255.255.248). Compile the
program and start it running under Dynamic C. The
crossover cable is connected from your computer’s
Ethernet adapter to the RCM2200 board’s RJ-45
Ethernet connector. When the program starts run-
ning, the green LNK light on the RCM2200 board
should be on to indicate an Ethernet connection is
made. (Note: If the LNK light does not light, you
may not have a crossover cable, or if you are using a
hub perhaps the power is off on the hub.)
The next step is to ping the board from your PC.
This can be done by bringing up the MS-DOS win-
dow and running the pingme program:
ping 10.1.1.2
or by
Start
>
Run
and typing the entry
ping 10.1.1.2
Notice that the red ACT light flashes on the
RCM2200 board while the ping is taking place, and
indicates the transfer of data. The ping routine will
ping the board four times and write a summary mes-
sage on the screen describing the operation.
RCM2200
User’s PC
Ethernet
crossover
cable
IP 10.1.1.1
Subnet mask
255.255.255.248
#define MY_IP_ADDRESS "10.1.1.2”
#define MY_NETMASK "255.255.255.248”
Direct Connection PC to RCM2200 Board
Board
Содержание RCM2200
Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet Getting Started Manual 019 0096 010501 B...
Страница 22: ...3 6 Software Installation Overview RabbitCore RCM2200...
Страница 31: ...C NONE...
Страница 34: ......