User`s manual

104 RabbitCore RCM3400
C.5 Run the PINGME.C Sample Program
Connect the crossover cable from your computers Ethernet port to the RJ-45 Ethernet
connector on the RCM3400 Prototyping Board. Open this sample program from the
SAMPLES\TCPIP\ICMP folder, compile the program, and start it running under Dynamic C.
When the program starts running, the green LNK light on the RCM3400 Prototyping
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.10.6.100
or by Start > Run
and typing the entry
ping 10.10.6.100
Notice that the red ACT light flashes on the RCM3400 Prototyping 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.
C.6 Running Additional Sample Programs With Direct Connect
The sample programs discussed here are in the Dynamic C SAMPLES\RCM3400\TCPIP\
folder.
BROWSELED.C—This program demonstrates a basic controller running a Web page.
Two “LEDs” are created on the Web page, and two buttons on the Prototyping Board
then toggle them. Users can change the status of the lights from the Web browser. The
LEDs on the Prototyping Board match the ones on the Web page. As long as you have
not modified the
TCPCONFIG 1 macro in the sample program, enter the following
server address in your Web browser to bring up the Web page served by the sample pro-
gram.
http://10.10.6.100
Otherwise use the TCP/IP settings you entered in the TCP_CONFIG.LIB library.
MBOXDEMO.C—Implements a Web server that allows e-mail messages to be entered
and then shown on the LCD/keypad module.
PINGLED.C—This program demonstrates ICMP by pinging a remote host. It will flash
LEDs DS1 and DS2 on the Prototyping Board when a ping is sent and received.
SMTP.C—This program allows you to send an E-mail when a switch on the Prototyp-
ing Board is pressed. Follow the instructions included with the sample program.