User’s Manual
51
5.5 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 Intellicom board’s RJ-45 Ethernet
connector. When the program starts running, the green LNK light on the Intellicom 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 Intellicom 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.
5.6 Running More Demo Programs With a Direct Connection
The programs STATIC.C and SSI3.C (SAMPLES\TCPIP\HTTP) demonstrate how to
make the Intellicom board be a Web server. This program allows you to turn the LEDs on
an attached Demonstration Board from the Development Kit on and off from a remote
Web browser. 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 Intellicom 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.