CN1770048A - Embedded web page server - Google Patents
Embedded web page server Download PDFInfo
- Publication number
- CN1770048A CN1770048A CNA2005100301315A CN200510030131A CN1770048A CN 1770048 A CN1770048 A CN 1770048A CN A2005100301315 A CNA2005100301315 A CN A2005100301315A CN 200510030131 A CN200510030131 A CN 200510030131A CN 1770048 A CN1770048 A CN 1770048A
- Authority
- CN
- China
- Prior art keywords
- web page
- server
- embedded
- page server
- web
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to an embedded webpage server which comprises: external Flash and RAM, processor, serial controller, Ethernet controller (RTL8019AS), coupling filer and RJ45 interface. The connection relation of components: the external Flash and RAM 1 are connected with process 2, process 2 is connected with serial port 3, and processor 2 is connected with Ethernet controller (RTL8019AS) 4, Ethernet controller (RTL8019AS) 4 is connected with RJ45 interface 6 after separated by coupling filter 5.
Description
Technical field
The present invention relates to a kind of embedded web page server (Web Server), belong to the industrial control technology field.
Background technology
Along with development of computer, embedded system has become important component part in the computer realm.Embedded system is application-centered, and based on computer technology, but the software and hardware cutting adapts to the dedicated computer system that application system is strict with function, reliability, cost, volume and power consumption.Common embedded device is as PDA, mobile phone, set-top box, automobile, micro-wave oven, elevator, automatic vending machine, cash dispenser, Medical Instruments or the like.
Embedded system can realize interconnecting by various wireless or cable network connected modes, therefore, has vitality on network service market.
At present, along with Internet development, increasing industrial measurement and control equipment with network access facility as its default configuration, handle and remote monitoring with the information-distribution type of realizing equipment.
In exploitation " universal industrial protocol Ethernet Adaptation Unit " product, use more conveniently for the ease of the user, people consider to design embedded web page server (Web Server).
Web page server (Web Server) mainly is to receive the request that the IE browser sends, and then request is analyzed and is handled, and result is returned to browser in the mode of html page.
The core of web page server (Web Server) design is that request is analyzed to HTTP, by parsing to HTTP message, can determine operation and operation parameters needed that the user need finish, and then can control, to finish user's request the hardware or the software of bottom.
According to the web page server that retrieves (Web Server) data, summarize following several scheme:
1), " how to realize embedded web server .mht ", introduced the scheme that adopts the PIC16F877 microcontroller to realize embedded web server in the literary composition;
2), " the networked Interface design .htm of embedded type WEB sensor ", introduced the realization of adopting based on the networked interface of ICP/IP protocol chip stack W3100A in the literary composition, ultimate analysis the realization of WEB function of embedded type WEB sensor;
3), the scheme that realizes Web Server function under uClinux and (SuSE) Linux OS introduced respectively in " based on the realization-Embedded Application-technology world-.mht of CCIDNET of the Web Server of uClinux " and " in the industry control net based on Linux embedded http server design _ engineering _ Chinese public safety net .mht " two pieces of articles;
4), " analysis of embedded web server and research--www_guangdongdz_com meticulously builds .mht ", introduced some background knowledges and the implementation of embedded web server in the literary composition.
Though above-mentioned several Web server scheme has the characteristics of self, all there is problem in various degree, need to be improved the needs that could adapt to the Industrial Ethernet application scenario.
Summary of the invention
The object of the present invention is to provide a kind of embedded web page server, this web page server possesses good versatility and portability, by changing or increasing communication module, can support different fieldbus, or connect several different device level networks simultaneously.
For achieving the above object, technical scheme of the present invention is: web page server (Web Server) hardware configuration comprises and extends out FLASH and RAM storer, processor, serial ports controller, ethernet controller (RTL8019AS), coupling separation filter, RJ45 interface.Main being responsible for receives the request that the IE browser sends, and then request analyzed and handled, and result is returned to browser in the mode of html page.
The core of web page server (Web Server) design is that request is analyzed to HTTP, by parsing to HTTP message, can determine operation and operation parameters needed that the user need finish, and then can control, to finish user's request the hardware or the software of bottom.
The major function of this webpage server (Web Server) is:
1. real time data issue.Real time data mainly comprises the various status informations of equipment in system's operational process.Embedded web page server is published to real time data on the Internet with form web page, and dynamic real-time refreshes.The client can pass through these real-time information of browser access.
2. parameter setting.Parameter comprises operational factor and equipment status parameter, as various initial values, constant etc.After embedded web page server receives the parameter device request of client's submission, the execution parameter write operation.
3. remote live control.Remote live control allows long-distance user's respective execution mechanisms in the control system online, such as motor, solenoid valve etc.After embedded web page server receives the control operation request of distant place client submission, will issue control command and drive corresponding topworks in the supervisory system.
4. access level setting and purview certification.Have only authority to be not less than to require the client of access level, after the embedded web page server authentication, can carry out the policer operation in its extent of competence.
Beneficial effect of the present invention: this web page server possesses good versatility and portability.By changing or increasing communication module, this server can be supported different fieldbus, or connects several different device level networks simultaneously.In the code server design, realized the code structure of object-oriented style with the C language simultaneously.Like this, if require server end to possess more characteristics, only need simple modification relevant data structure, handling function and web page files to achieve the goal.Along with the hardware technology especially development of embedded OS technology, it can be applied in the exploitation of other embedded product equally.Therefore has tangible economic benefit.
Description of drawings
Fig. 1 is embedded web page server of the present invention (Web Server) hardware configuration theory diagram;
Fig. 2 is embedded web page server of the present invention (Web Server) workflow diagram;
Fig. 3 is embedded web page server of the present invention (Web Server) software configuration theory diagram.
Embodiment
Below in conjunction with drawings and Examples to the embedded web page server of the present invention detailed description of making comparisons.
With reference to Fig. 1, this is embedded web page server of the present invention (Web Server) hardware configuration theory diagram.
As shown in the figure, hardware configuration comprises and extends out FLASH RAM storer 1, processor 2, serial ports controller 3, ethernet controller (RTL8019AS) 4, coupling separation filter 5, RJ45 interface 6.
Relation between the said structure spare: extend out that FLASH RAM storer 1 is interconnected with processor 2, processor 2 is interconnected with serial ports controller 3, processor 2 is interconnected with ethernet controller (RTL8019AS) 4, ethernet controller (RTL8019AS) 4 is isolated the back, is interconnected with RJ45 interface 6 with coupling separation filter 5.
The core of this embedded web page server is that request is analyzed to HTTP, by parsing to HTTP message, can determine operation and operation parameters needed that the user need finish, and then can control, to finish user's request the hardware or the software of bottom.
With reference to Fig. 2, this is embedded web page server of the present invention (Web Server) workflow diagram.
As shown in the figure, the workflow of embedded web server is as follows: when packet passes through Ethernet interface " beginning " 7, after being transferred to " system initialization " 8 ethernet controllers, microprocessor processing, delivering to " transmitting-receiving " 9 again judges, if " transmission ", just arrive " TCP/IP packing " 10, to " Web server data processing ", to " end " 14; If " transmission ", just to " TCP/IP unpacks " 12, to " data transmission " 11, to " end " 14.Obviously, result will be undertaken by web page server (Web Server).
With reference to Fig. 3, this is the software configuration theory diagram of embedded web page server of the present invention (Web Server).
As shown in the figure, embedded web page server (Web Server) end and Web browser 15 interconnection, the other end and embedded device 20 interconnection, embedded web page server (Web Server) comprises ICP/IP protocol stack 16 and 17 interconnection of HTTP engine, HTTP engine 17 and HTML maker, 19 interconnection of format analysis device, the Web page 18 is to HTTP engine 17, and HTML maker, format analysis device 19 interconnect with embedded device 20.
Software program to embedded web page server (Web Server) further is illustrated below.
At first create an interface, and be tied to together, be changed to passive listening state subsequently, wait for the arrival of client connection request with host address.Use function socket () to create an interface respectively, bind () bind address, listen () monitors, and accept () receives and finishes.After setting up a TCP connection, function accept () returns a new socket descriptor, and task is handled this new connection with regard to creating a new subtask.The subtask is used to handle concrete HTTP request.User's HTTP request is at first resolved in the subtask.When the user asks a webpage, subtask locating file system.If this web page files exists, just it is read in internal memory and scanning from FLASH, find to have customize tag then call function handle, at last the result is returned to browser; Otherwise give a simple error messages.When the user is when uploading data, the subtask is called the respective function reading of data and is handled, and returns result and give browser.
Embedded web server possesses good versatility and portability.By changing or increasing communication module, this server can be supported different fieldbus, or connects several different device level networks simultaneously.In the code server design, realized the code structure of object-oriented style with the C language simultaneously.Like this, if require server end to possess more characteristic, only need simple modification relevant data structure, handling function and web page files to achieve the goal.
This research and development thinking is not only applicable to embedded web page server, and along with the hardware technology especially development of embedded OS technology, it can be applied in the exploitation of other embedded product equally.
Compare with general supervisory system, principal feature is that the design of its server is based on embedded technology and Web technology, on the basis of embedded real-time operating system uC/OS-II, write the cgi script that is suitable for embedded system voluntarily, make that the server volume is little, integrated level is high, thereby the hardware and software design reaches very high efficient.Software code to server carries out the solid state storage, can guarantee high-quality, high reliability.Monitoring client uses the general browser interface that the scene is monitored, and the platform that platform and server moved that browser moved is independent, thereby has realized cross-platform.
Client's (browser) initiates and sets up a TCP to server and be connected; Then, the client sends a HTTP and asks server, request comprises method, URI, protocol version and a class MIME message, after the server parses HTTP request, provide corresponding http response, response comprises brief phrase and class MIME message of protocol version, status code, explanation status code; At last, discharging TCP connects.Because HTTP is based on the network application-level protocol of connection, so we utilize TCP socket function to realize http protocol.
HTTP1.1 has proposed the notion that sustainability connects, and HTTP1.1 only sets up a TCP and connects, and repeatedly uses it to transmit a multiplexing requests/response messages, has reduced overhead.In embedded web page server, generally use the HTTP1.1 agreement.
The workflow of CGI is at first to give web page server by browser with the data transfer of user's input, web page server sets according to the data that receive and starts CGI scripting, CGI scripting reads needed data and carries out respective handling from environmental variance, export the destination file of HTML form at last, send browser back to through web page server, finally be shown to the user.Traditional cgi script separates with code server, is an executable file that meets the CGI standard, and is stored on the memory devices such as CF card, generally writes with script.The characteristics of consider that embedded web page server requirement speed is fast, function and code being simplified as far as possible all, we realize the function of originally being finished by executable file with the C function, be placed on code server inside, and directly receive data from the HTTP request message.Compare with the traditional CGI program, this method possesses following characteristics:
Do not need the standard input, the CGI function can directly get access to the information that browser is sent here;
Do not need standard output, the CGI function can directly be sent back to browser with data;
Do not need environmental variance, CGI and Web server are realized in same program, do not need environmental variance to come exchange message.
Show real time datas a large amount of in the industrial control system in webpage, conventional method is that HTML code directly is integrated in the program code, otherwise perhaps the c program code is integrated in the HTML SGML.These two kinds of methods all require the developer very familiar to the grammer details of HTML SGML.The one-sided adjustment of webpage or program structure all will cause the modification of total system, not possess dirigibility and extensibility.The marrow of HTML is this language " mark " property, and the concrete implication of various not isolabelings is to be resolved by server and browser.Therefore, when existing mark can not satisfy new application demand, can define new mark voluntarily, only need server that customize tag is resolved to the standard mark, send browser then to and get final product.
Claims (8)
1, a kind of embedded web page server (Web Server) is used for industrial control field, it is characterized in that:
Described web page server (Web Server), be to adopt embedded technology and Web technology, its hardware comprise extend out FLASH and RAM storer, processor, serial ports controller, ethernet controller (RTL8019AS), separation filter, RJ45 interface are coupled;
Relation between the member: extend out that FLASH RAM storer (1) and processor (2) are interconnected, processor (2) is interconnected with serial ports controller (3), processor (2) is interconnected with ethernet controller (RTL8019AS) (4), ethernet controller (RTL8019AS) (4) is isolated the back, is interconnected with RJ45 interface (6) with coupling separation filter (5);
Web page server mainly be responsible for to receive the request that the IE browser sends, and then request is analyzed and is handled, and result is returned to browser in the mode of html page;
The major function of its server has:
1. real time data issue, 2. parameter setting, 3. remote live control, 4. access level setting and purview certification;
Web page server is furnished with workflow and software for improving its function.
2, web page server as claimed in claim 1 is characterized in that:
Described web page server workflow is: the embedded web server program begins (7), at first does system initialization (8) arrive transmitting-receiving? (9), if send, just arrive TCP packing (10), data send (11); If receive, just unpack (12) to TCP, the WEB server data is handled (13), until finishing (14).
3, web page server as claimed in claim 1 is characterized in that:
Described software, its software frame is: an end and Web browser (15) interconnection, the other end and embedding or equipment (20) interconnection, embedded web page server (Web Server) comprises ICP/IP protocol stack (16) and HTTP engine (17) interconnection, HTTP engine (17) and HTML maker, format analysis device (19) interconnection, the Web page (18) is to HTTP engine (17), and HTML maker, format analysis device (19) interconnect with embedded device.
4, web page server as claimed in claim 1 is characterized in that:
Described software, its software flow is: at first create an interface, and be tied to together with host address, be changed to passive listening state subsequently, wait for the arrival of client connection request; Use function socket () to create an interface respectively, bind () bind address, listen () monitors, and accept () receives and finishes; After setting up a TCP connection, function accept () returns a new socket descriptor, and task is handled this new connection with regard to creating a new subtask; The subtask is used to handle concrete HTTP request; The subtask is used to handle concrete HTTP request; User's HTTP request is at first resolved in the subtask; When the user asks a webpage, subtask locating file system; If this web page files exists, just it is read in internal memory and scanning from FLASH, find that having customize tag then to call respective function handles, at last the result is returned to browser; Otherwise give a simple error messages; When the user is when uploading data, the subtask is called the respective function reading of data and is handled, and returns result and give browser.
5, web page server as claimed in claim 1 is characterized in that:
Described parameter setting and Long-distance Control, its parameter setting comprises operational factor and equipment status parameter, as various initial values, constant, after embedded web page server receives the parameter device request of client's submission, execution parameter write operation Long-distance Control; Its Long-distance Control, remote live control allows long-distance user's respective execution mechanisms in the control system online, such as motor, solenoid valve, after embedded web page server receives the control operation request of distant place client submission, will issue control command and drive corresponding topworks in the supervisory system.
6, as claim 1 or 5 described web page servers, it is characterized in that:
Operational factor during described parameter is provided with and equipment status parameter refer to various initial values, constant.
7, as claim 1 or 5 described web page servers, it is characterized in that:
Respective execution mechanisms in the described Long-distance Control refers to motor, solenoid valve.
8, web page server as claimed in claim 1 is characterized in that:
Described embedded technology and Web technology refer to and designed the cgi script that is suitable for embedded system on the bases of embedded real-time operating system uC/OS-II, make that the server volume is little, code integrated level height, thereby the hardware and software utilization factor are very high; Software code to server carries out the solid state storage, can guarantee high-quality, high reliability; Monitoring client uses the general browser interface that the scene is monitored, and the platform that platform and server moved that browser moved is independent, thereby has realized cross-platform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2005100301315A CN1770048A (en) | 2005-09-29 | 2005-09-29 | Embedded web page server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2005100301315A CN1770048A (en) | 2005-09-29 | 2005-09-29 | Embedded web page server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1770048A true CN1770048A (en) | 2006-05-10 |
Family
ID=36751385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2005100301315A Pending CN1770048A (en) | 2005-09-29 | 2005-09-29 | Embedded web page server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1770048A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008000122A1 (en) * | 2006-06-22 | 2008-01-03 | Xiamen Rico Technology Co., Ltd | A network video server |
CN102104616A (en) * | 2010-11-03 | 2011-06-22 | 深圳市科陆电子科技股份有限公司 | Method for carrying out real-time monitoring on multiple web servers in system by browser |
CN102136954A (en) * | 2011-04-26 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for monitoring network flow based on webpage realization |
CN102148844A (en) * | 2010-02-09 | 2011-08-10 | 深圳市金蝶中间件有限公司 | Memory leak positioning method, server, client and system |
CN101631107B (en) * | 2008-07-16 | 2012-02-22 | 福建升腾资讯有限公司 | Method for configuring Linux kernel based on Web method |
CN102684584A (en) * | 2012-06-08 | 2012-09-19 | 南京理工大学常熟研究院有限公司 | Remote stepping motor control system based on Ethernet |
CN103347038A (en) * | 2013-05-30 | 2013-10-09 | 上海斐讯数据通信技术有限公司 | Method of WEB server for processing http messages |
CN104915346A (en) * | 2014-03-11 | 2015-09-16 | 上海卓岚信息科技有限公司 | Web server for web modules and output control or input updating method thereof |
CN105338100A (en) * | 2015-11-18 | 2016-02-17 | 金亚科技股份有限公司 | Expansion method and system for remote control function of intelligent controller |
CN106325876A (en) * | 2016-08-29 | 2017-01-11 | 中山市天启智能科技有限公司 | Method and system for graphically programming and controlling embedded equipment on line |
CN108717285A (en) * | 2018-04-14 | 2018-10-30 | 张著岳 | The programmable logic controller (PLC) programmed by built-in web |
CN109165003A (en) * | 2018-07-26 | 2019-01-08 | 广州市迪声音响有限公司 | A kind of control device and control method of audio processor |
CN111880611A (en) * | 2020-06-19 | 2020-11-03 | 深圳宏芯宇电子股份有限公司 | Server for fast transaction and fast transaction data processing method |
CN113253672A (en) * | 2021-06-16 | 2021-08-13 | 深圳市黑电平科技有限公司 | Load management system of intelligent home based on PLC |
-
2005
- 2005-09-29 CN CNA2005100301315A patent/CN1770048A/en active Pending
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008000122A1 (en) * | 2006-06-22 | 2008-01-03 | Xiamen Rico Technology Co., Ltd | A network video server |
CN101631107B (en) * | 2008-07-16 | 2012-02-22 | 福建升腾资讯有限公司 | Method for configuring Linux kernel based on Web method |
CN102148844A (en) * | 2010-02-09 | 2011-08-10 | 深圳市金蝶中间件有限公司 | Memory leak positioning method, server, client and system |
CN102148844B (en) * | 2010-02-09 | 2014-08-27 | 深圳市金蝶中间件有限公司 | Memory leak positioning method, server, client and system |
CN102104616A (en) * | 2010-11-03 | 2011-06-22 | 深圳市科陆电子科技股份有限公司 | Method for carrying out real-time monitoring on multiple web servers in system by browser |
CN102136954A (en) * | 2011-04-26 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for monitoring network flow based on webpage realization |
CN102684584A (en) * | 2012-06-08 | 2012-09-19 | 南京理工大学常熟研究院有限公司 | Remote stepping motor control system based on Ethernet |
CN103347038A (en) * | 2013-05-30 | 2013-10-09 | 上海斐讯数据通信技术有限公司 | Method of WEB server for processing http messages |
CN104915346A (en) * | 2014-03-11 | 2015-09-16 | 上海卓岚信息科技有限公司 | Web server for web modules and output control or input updating method thereof |
CN105338100A (en) * | 2015-11-18 | 2016-02-17 | 金亚科技股份有限公司 | Expansion method and system for remote control function of intelligent controller |
CN106325876A (en) * | 2016-08-29 | 2017-01-11 | 中山市天启智能科技有限公司 | Method and system for graphically programming and controlling embedded equipment on line |
CN106325876B (en) * | 2016-08-29 | 2019-07-26 | 中山市天启智能科技有限公司 | Method, the system of a kind of programming of inline graphicsization and control embedded device |
CN108717285A (en) * | 2018-04-14 | 2018-10-30 | 张著岳 | The programmable logic controller (PLC) programmed by built-in web |
CN109165003A (en) * | 2018-07-26 | 2019-01-08 | 广州市迪声音响有限公司 | A kind of control device and control method of audio processor |
CN111880611A (en) * | 2020-06-19 | 2020-11-03 | 深圳宏芯宇电子股份有限公司 | Server for fast transaction and fast transaction data processing method |
CN113253672A (en) * | 2021-06-16 | 2021-08-13 | 深圳市黑电平科技有限公司 | Load management system of intelligent home based on PLC |
CN113253672B (en) * | 2021-06-16 | 2023-11-24 | 深圳市黑电平科技有限公司 | Intelligent household load management system based on PLC |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1770048A (en) | Embedded web page server | |
CA2385899C (en) | System and method for managing connections between a client and a server | |
TWI458314B (en) | Server system and management method thereof for transferring remote packet to host | |
US9137249B2 (en) | Local proxy system and method | |
CN1514977A (en) | Arrangement for creating multiple virtual queue pairs from compressed queue pairs based on shared attributed | |
EP3009940A1 (en) | Unified connector architecture | |
CN108028833A (en) | A kind of method, system and the relevant device of NAS data accesses | |
CN101488941A (en) | Method and system for implementing USB equipment shared using | |
CN1539109A (en) | Parser for extensible mark-up language | |
EP1545088B1 (en) | Method and apparatus for providing smart offload and upload of network data | |
CN1918886A (en) | Server-side protocol configuration of accessing clients | |
CN1628301A (en) | Method of data refreshing of a mark-up language document | |
US20170034311A1 (en) | Method for selecting between multiple RPC frameworks during a TCP/IP session | |
CN111970249B (en) | DPDK-based Modbus protocol implementation method and device | |
CN110830434A (en) | Universal transparent proxy method | |
CN1761257A (en) | Memory system based on virtual interface | |
CN1158617C (en) | Networked computers with no local operation system | |
CN1679015A (en) | System and method for tpc/ip offload independent of bandwidth delay product | |
CN105407150A (en) | Remote control method of application program | |
US20050281286A1 (en) | Storage structure and method utilizing multiple protocol processor units | |
EP2077653B1 (en) | Methods and systems for communicating with storage systems using slim IP stacks | |
CN101312412A (en) | Ethernet transmission system based on embedded technique | |
CN1305268C (en) | SOL realizing method accorded with IPMI standard | |
CN1716890A (en) | Network system and connecting method thereof | |
CN1609819A (en) | Test method for computer external equipment interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |