Run The Pingme.c Sample Program; Running More Sample Programs With Direct Connect - Rabbit RabbitCore RCM3000 Getting Started Manual

C-programmable module with ethernet
Hide thumbs Also See for RabbitCore RCM3000:
Table of Contents

Advertisement

4.10 Run the PINGME.C Sample Program

Connect the crossover cable from your computer's Ethernet port to the RCM3000 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
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
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.11 Running More Sample Programs With Direct Connect

The sample programs discussed here are in the Dynamic C
folder.
—This program demonstrates a basic controller running a Web page.
BROWSELED.C
Two "LEDs" are created on the Web page, with two buttons to 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
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
—This program demonstrates a basic client that will send a packet and
ECHOCLIENT.C
wait for the connected server to echo it back. After every number of sends and receives,
transfer times are shown in the
Use
ECHO_SERVER.C
—This program demonstrates This program demonstrates a basic
ECHOSERVER.C
server that will echo back any data sent from a connected client.
Use
ECHO_CLIENT.C
—This program demonstrates Ethernet communication between two sin-
ENET_AD.C
gle-board computers. The program sends an A/D voltage value to the second controller
via Ethernet for display.
Use
ENET_MENU.C
34
light on the RCM3000 board should be on to indicate an
LNK
LNK
light flashes on the RCM3000 board while the ping is taking
window.
STDIO
to program a server controller.
to program a client controller.
to program the other single-board computer.
SAMPLES\TCPIP\ICMP
light does not light, you may not have a
SAMPLES\RCM3000\TCPIP\
TCP_CONFIG.LIB
library.
RabbitCore RCM3000

Advertisement

Table of Contents
loading

Table of Contents