摘 要:隨著網(wǎng)絡(luò)的日益普及,將嵌入式系統(tǒng)接入網(wǎng)絡(luò)的想法也變得更加現(xiàn)實(shí)。介紹一種基于MicroBlaze處理器的嵌入式Web服務(wù)器的設(shè)計(jì)方法。系統(tǒng)在Virtex4 系列LX25芯片上,采用軟核處理器MicroBlaze配置核心處理器。MicroBlaze軟內(nèi)核是一種針對Xilinx的FPGA器件而優(yōu)化的功能強(qiáng)大的標(biāo)準(zhǔn)32位RISC處理器。網(wǎng)絡(luò)協(xié)議采用Xilnet,這是Xilinx公司專門針對Xilinx嵌入式系統(tǒng)應(yīng)用而設(shè)計(jì)的網(wǎng)絡(luò)通信協(xié)議,接口芯片使用LAN91C111。基于MicroBlaze的嵌入式Web 服務(wù)器能夠達(dá)到預(yù)期的效果,用戶可以通過IE瀏覽器瀏覽存儲(chǔ)在DDR SDRAM芯片中的網(wǎng)頁,由于CPU本身是以軟核的方式實(shí)現(xiàn),其功能可根據(jù)需要進(jìn)行定制,非常靈活。該Web服務(wù)器基于HTTP協(xié)議,采用TCP/IP套接字編程技術(shù)實(shí)現(xiàn),能夠?qū)崿F(xiàn)對工業(yè)現(xiàn)場的數(shù)據(jù)采集、遠(yuǎn)程監(jiān)控以及信息的交互。
關(guān)鍵詞:MicroBlaze;嵌入式Web;Xilnet;超文本傳輸協(xié)議
中圖分類號(hào):TP393.11文獻(xiàn)標(biāo)識(shí)碼:B文章編號(hào):1004-373X(2008)08-027-03
Design and Implementation of Embedded Web Server Based on MicroBlaze
QI Ming,YAO Ming
(Information Science Technology College,Xiamen University,Xiamen,361005,China)
Abstract:With the development of Internet,the idea of merging embedded system into the network becomes more reliable.This paper introduces a design way of embedded Web server that based on the MicroBlaze.The system used soft core MicroBlaze to configure it on the LX25 chip.MicroBlaze is a standard RISC processor which has stronger optimized function and is specific towards Xilinx FPGA devices.Net protocol adopted Xilnet which is designed for Xilinx embedded system′s application.Interface chip is LAN91C111.The system described in this article can reach the expected affect and users can browse the net in the SDRAM through IE.Due to the soft core implement way,it can be customized according to your own need and very flexible.The web server is implemented by TCP/IP socket program technology and based on HTTP protocol.It can complete data acquisition,remote surveillance and imformation interaction.
Keywords:MicroBlaze;embedded Web;Xilnet;HTTP
1 引 言
由于Internet技術(shù)的滲透,嵌入式系統(tǒng)正變得越來越智能化并具有越來越多的網(wǎng)絡(luò)友好特性。Web技術(shù)的飛速發(fā)展,給嵌入式系統(tǒng)進(jìn)入Internet提供絕佳的途徑。在現(xiàn)場儀表和企業(yè)設(shè)備層應(yīng)用嵌入式技術(shù)是企業(yè)監(jiān)控系統(tǒng)的發(fā)展趨勢。與現(xiàn)場總線技術(shù)相比,嵌入式技術(shù)不僅為開發(fā)者提供了大量的工具和函數(shù)庫,而且減少了傳統(tǒng)的客戶端,減少了二次開發(fā)的工作量;而把嵌入式技術(shù)和Internet技術(shù)結(jié)合起來,使得整個(gè)工控網(wǎng)絡(luò)易于和Internet實(shí)現(xiàn)無縫連接;現(xiàn)在多數(shù)企業(yè)控制網(wǎng)絡(luò)是通過專用線路進(jìn)行數(shù)據(jù)通信,其通信介質(zhì)、通信協(xié)議都是專用的,而Internet技術(shù)的滲透使嵌入式設(shè)備的遠(yuǎn)程控制和管理方式都有了改變,不再需要專用的通信線路,傳輸?shù)男畔⒁膊辉倬窒抻跀?shù)據(jù)信息。……