34
RabbitCore RCM2100
4.7 Sample Program: EthCore1.c
The RCM2100 modules with Ethernet ports can act as micro Web page servers, with
dynamic interaction between the controller and the web pages. This sample program dem-
onstrates how a web page can be used to both monitor and control an RCM2100 module.
Compile & Run Program
Open the source file
EthCore1.c
, located in the
Samples\RCM2100
folder. Edit the
three
#define
values near the beginning of the file to represent valid network addresses
for your setup.
Press
F9
to compile and run the program.
NOTE: The RCM2100 must be connected to a network as described in Section 2.3.3,
”Connect Ethernet Network Cable,” in order for this program to work.
TIP: This program will be more interesting to observe if LEDs DS4 and DS5 are installed
in the Prototyping Board.
When the program starts, LEDs DS2, DS3 and DS5 will be lit, and DS4 will be dark.
Open a web browser and enter the IP address you defined for the RCM2100 module in the
program in the address window. A page like that shown in Figure 8 should appear.
Figure 8. Browser screen for Sample Program
EthCore1.c
.
Clicking on each of the button images in the browser window will toggle the state of the
associated LED image, and will toggle the state of the corresponding LED on the Proto-
typing Board. Since the web page is generated by the RabbitCore module (using Dynamic
HTML), the LED image and the corresponding LED’s real state will always be in step.
Содержание RCM2100
Страница 1: ...RabbitCore RCM2100 C Programmable Module with Ethernet Getting Started Manual 019 0093 010915 C...
Страница 28: ...24 RabbitCore RCM2100...
Страница 43: ...C NONE CONFORMAL COATING BATTERY BACK UP BANK SELECT...
Страница 45: ...B NONE B NONE...
Страница 47: ......