32
RabbitCore RCM2200
4.9 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 con-
nected from your computer’s Ethernet adapter to the RCM2200 board’s RJ-45 Ethernet
connector. When the program starts running, 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 window 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 message on the screen describing the operation.
4.10 Running More Demo Programs With Direct Connect
The program
STATIC.C
(
SAMPLES\TCPIP\HTTP
) demonstrates how to make the
RCM2200 board be a Web server. In order to run these sample programs, edit the IP
address as for the pingme program, compile the program and start it executing. Then bring
up your Web browser and enter the following server address: http://10.1.1.2.
This should bring up the Web page served by the sample program.
The sample program
RXSAMPLE.C
(
SAMPLES\TELNET
) allows you to communicate with
the RCM2200 board using the Telnet protocol. To run this program, edit the IP address,
compile the program, and start it running. Run the Telnet program on your PC (
Start >
Run
telnet 10.1.1.2
). Each character you type will be printed in Dynamic C’s
STDIO
window, indicating that the board is receiving the characters typed via TCP/IP.
Summary of Contents for RCM2000 Series
Page 18: ...14 RabbitCore RCM2200...
Page 26: ...22 RabbitCore RCM2200...
Page 38: ...34 RabbitCore RCM2200...
Page 40: ...36 RabbitCore RCM2200...
Page 43: ...C NONE...
Page 46: ......