Specifications

Getting Started 33
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 10.1.1.2 and 255.255.255.248 given above for a
direct connection. Compile the program and start it running under Dynamic C. The cross-
over cable is connected from your computers Ethernet adapter to the RCM3000 boards
RJ-45 Ethernet connector. When the program starts running, the green LNK light on the
RCM3000 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 RCM3000 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
RCM3000 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 RCM3000 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 Cs
STDIO window, indicating that the board is receiving the characters typed via TCP/IP.