Run The Pingme.c Sample Program; Running Additional Sample Programs With Direct Connect - Rabbit Core RCM3700 User Manual

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

6.5 Run the PINGME.C Sample Program

Connect the crossover cable from your computer's Ethernet port to the RCM3700 board's
RJ-45 Ethernet connector. Open this sample program from the
folder, compile the program, and start it running under Dynamic C. When the program
starts running, the green
Ethernet connection is made. (Note: If the
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 yellow
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.

6.6 Running Additional Sample Programs With Direct Connect

The sample programs discussed here are in the Dynamic C
and the
SAMPLES\RCM3720\TCPIP\
The program
BROWSELED.C
server. Two "LEDs" are created on the Web page, along with two buttons to toggle them.
Users can change the status of the lights from the Web browser. The LEDs on the Proto-
typing Board match the ones on the Web page. As long as you have not modified the
macro in the sample program, enter the following server address in your
TCPCONFIG 1
Web 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
The optional LCD/keypad module (see Appendix C) must be plugged in to the RCM3700
Prototyping Board when using this sample program. The sample program
implements a Web server that allows e-mail messages to be entered and then shown on the
LCD/keypad module. The keypad allows the user to scroll within messages, flip to other
e-mails, mark messages as read, and delete e-mails. When a new e-mail arrives, an LED
(on the Prototyping Board and LCD/keypad module) turns on, then turns back off once the
message has been marked as read. A log of all e-mail actions is kept, and can be displayed
in the Web browser. All current e-mails can also be read with the Web browser.
The sample program
flash LEDs DS1 and DS2 on the Prototyping Board when a ping is sent and received.
RabbitCore RCM3700 User's Manual
light on the RCM3700 module should be on to indicate an
LINK
light flashes on the RCM3700 module while the ping is taking
ACT
folders.
demonstrates how to make the RCM3700 board be a Web
demonstrates ICMP by pinging a remote host. It will
PINGLED.C
SAMPLES\TCPIP\ICMP
LNK
light does not light, you may not be using
SAMPLES\RCM3700\TCPIP\
TCP_CONFIG.LIB
library.
MBOXDEMO.C
72

Advertisement

Table of Contents
loading

Table of Contents