
50
RabbitCore RCM3209/RCM3229
6.5 Run the
PINGME.C
Sample Program
Connect a Cat. 5 Ethernet cable from your computer’s Ethernet port to the RCM3209
board’s RJ-45 Ethernet connector. Open this sample program from the
SAMPLES\TCPIP\
ICMP
folder, compile the program, and start it running under Dynamic C. When the pro-
gram starts running, the green
LNK/ACT
LED on the RCM3209 board should be on to
indicate an Ethernet connection is made. (Note: If the
LNK/ACT
LED does not light, and
you are using a hub, check that the power is not 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 green
LNK/ACT
LED flashes on the RCM3209 board while the ping is tak-
ing 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 More Sample Programs With Direct Connect
The sample programs discussed here are in the Dynamic C
SAMPLES\RCM3209\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 state 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 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 and
wait 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 a basic server 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
single-board computers. The program sends an A/D voltage value to the second single-
board computer via Ethernet for display.
Use
ENET_MENU.C
to program the other single-board computer.
Summary of Contents for RabbitCore RCM3209
Page 1: ...RabbitCore RCM3209 RCM3229 C Programmable Module with Ethernet User s Manual 019 0165 080528 D...
Page 6: ...RabbitCore RCM3209 RCM3229...
Page 20: ...14 RabbitCore RCM3209 RCM3229...
Page 58: ...52 RabbitCore RCM3209 RCM3229...
Page 84: ...78 RabbitCore RCM3200...
Page 135: ...User s Manual 129 keyConfig continued RETURN VALUE None SEE ALSO keyProcess keyGet keypadDef...
Page 140: ...134 RabbitCore RCM3209 RCM3229...
Page 144: ...138 RabbitCore RCM3209 RCM3229...
Page 158: ...152 RabbitCore RCM3209 RCM3229...
Page 160: ......