User’s Manual
47
6.9 Run the
PINGME.C
Sample Programs
Connect the crossover cable from your computer’s Ethernet port to the RCM2200 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 program
starts running, the green
LNK
light on the RCM2200 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 RCM2200 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.
6.10 Running More Sample Programs With Direct Connect
The sample programs discussed here are in the Dynamic C
SAMPLES\RCM2200\
folder.
•
CONSOLE.C
—Demonstrates the features of
ZCONSOLE.LIB
command-oriented con-
sole library. This program is also run in conjunction with
SERDCLIENT.C
or
SPCLI-
ENT.C
.
•
ETHCORE1.C
—Creates two “devices” (lights) and two “buttons” in the Web browser to
toggle them. Users can change the status of the lights. If the RCM2200 is plugged into
the
MASTER
slot on the Prototyping Board, the lights on the Prototyping Board will
track the ones in the Web browser. 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.
•
MYECHO.C
—Operates RCM2200 as a basic server. When a client connects, echoes
back any data sent by the client.
•
SERDCLIENT.C
—Demonstrates the ability of a Rabbit-based target board to update
files on the Web server of the RCM2200 board it is connected to via Serial Port D. This
program is run in conjunction with
CONSOLE.C
.
•
SPCLIENT.C
—Demonstrates the ability of a Rabbit-based target board to update files
on the Web server of the RCM2200 board it is connected to via the slave port. This pro-
gram is run in conjunction with
CONSOLE.C
.
Summary of Contents for RabbitCore RCM2200
Page 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet User s Manual 019 0097 090417 G...
Page 6: ...RabbitCore RCM2200...
Page 36: ...30 RabbitCore RCM2200...
Page 42: ...36 RabbitCore RCM2200...
Page 66: ...60 RabbitCore RCM2200...
Page 76: ...70 RabbitCore RCM2200...
Page 80: ...74 RabbitCore RCM2200...
Page 86: ...80 RabbitCore RCM2200...
Page 90: ......