參數(shù)資料
型號: 101-0452
廠商: Rabbit Semiconductor
文件頁數(shù): 60/100頁
文件大?。?/td> 0K
描述: KIT DEV RABBIT RCM2100 INTL
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore 2000
主要目的: *
嵌入式: *
已用 IC / 零件: HYDRA
主要屬性: *
次要屬性: *
已供物品: HYDRA 裝置,存儲卡,空白試驗(yàn)卡,鼠標(biāo),鍵盤,游戲鍵盤,視頻和 USB 線纜,電源和 CD 等
56
RabbitCore RCM2100
6.10.2 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 sample program ETHCORE1.C. Press F9 to compile and run the program.
TIP: This program will be more interesting to observe if LEDs DS4 and DS5 are installed
on 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 11 should appear.
Figure 11. 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.
Program Description
This program begins to show the range of applications for an Ethernet-enabled embedded
system controller, so let’s look closely at its operation.
As with PINGLED.C, several network addresses must be defined before this application
can work. The TCPCONFIG 1 macro in the sample program provides default settings for
MY_IP_ADDRESS
, which is the address of the RCM2100 module, MY_NETMASK, and
MY_GATEWAY
(which needs to be defined if you wish to reach the system from outside the
local network). These TCP/IP settings can be changed as needed in the TCP_CONFIG.LIB
library.
相關(guān)PDF資料
PDF描述
VE-J7X-EZ-F1 CONVERTER MOD DC/DC 5.2V 25W
EVAL-ADF4360-8EBZ1 BOARD EVALUATION FOR ADF4360-8
VE-J7X-EY-S CONVERTER MOD DC/DC 5.2V 50W
MCP73213-B6SI/MF IC LI-ION/LI-POLY CTRLR 10-DFN
VE-J7W-EZ-F4 CONVERTER MOD DC/DC 5.5V 25W
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10-104520-08P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-08S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-25S 制造商:Amphenol Aerospace 功能描述:PLUG