46 RabbitCore RCM30006.10 Run the PINGME.C Sample ProgramConnect the crossover cable from your computer’s Ethernet port to the RCM3000 board’sRJ-45 Ethernet connector. Open this sample program from the SAMPLES\TCPIP\ICMPfolder, compile the program, and start it running under Dynamic C. When the programstarts running, the green LNK light on the RCM3000 board should be on to indicate anEthernet connection is made. (Note: If the LNK light does not light, you may not have acrossover 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.10.6.100or by Start > Runand typing the entryping 10.10.6.100Notice that the red ACT light flashes on the RCM3000 board while the ping is takingplace, and indicates the transfer of data. The ping routine will ping the board four timesand write a summary message on the screen describing the operation.6.11 Running More Sample Programs With Direct ConnectThe sample programs discussed here are in the Dynamic C SAMPLES\RCM3000\TCPIP\folder.• BROWSELED.C—This program demonstrates a basic controller running a Web page.Two “LEDs” are created on the Web page, with two buttons to toggle them. Users canchange the status of the lights from the Web browser. The LEDs on the PrototypingBoard match the ones on the Web page. As long as you have not modified theTCPCONFIG 1 macro in the sample program, enter the following server address in yourWeb browser to bring up the Web page served by the sample program.http://10.10.6.100.Otherwise use the TCP/IP settings you entered in the TCP_CONFIG.LIB library.• ECHOCLIENT.C—This program demonstrates a basic client that will send a packet andwait for the connected server to echo it back. After every number of sends and receives,transfer times are shown in the STDIO window.Use ECHO_SERVER.C to program a server controller.• ECHOSERVER.C—This program demonstrates This program demonstrates a basicserver that will echo back any data sent from a connected client.Use ECHO_CLIENT.C to program a client controller.• ENET_AD.C—This program demonstrates Ethernet communication between two sin-gle-board computers. The program sends an A/D voltage value to the second controllervia Ethernet for display.Use ENET_MENU.C to program the other single-board computer.Downloaded from Elcodis.com electronic components distributor