A review of embedded web server technology and its application in power systems

Publisher:Tiger8Latest update time:2012-06-01 Source: 电网技术 Keywords:Embedded Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction
With the development of modern communication technology, network technology, especially Web technology based on TCP/IP communication protocol, has been widely used and popularized. The HTTP hypertext transfer protocol, FTP file transfer protocol, Telnet remote login protocol and SMTP mail protocol, which are built on the basis of TCP/IP protocol, constitute the core of Web technology. More importantly, these protocols are open, standard and independent of system platform. With the existing network hardware foundation, it is very convenient to build Internet/Intranet network system based on TCP/IP network protocol. Web technology allows users in any location to access the network through Web browsers and access various information published by Web servers, thus realizing the interconnection around the world [1]. Web browsers use HTML hypertext model language based on HTTP hypertext protocol. Its standardized interface expression is independent of the client hardware and software platform, which greatly saves the maintenance work of client human-machine interface and the training cost of users. In traditional Web applications, Web servers often coexist with database systems or file systems in a high-performance computer system. The database server is the information source of the Web server, and the Web server is the information publishing center of the system. It receives requests from browsers and generates new pages according to the requests and sends them to Web browsers to complete the transmission of information within the network. The information retrieved by the Web server comes from the database system, and the real-time requirements are not high, which can meet the requirements of conventional query and retrieval systems.
In order to improve production efficiency and management level, remote monitoring and production process control systems are very suitable for applying Web technology to directly monitor the operation of field equipment from the browser. However, as a task-oriented system with high real-time requirements, it is necessary to solve the real-time problems, system structure problems and security problems based on Web applications. As a new technology that combines Web technology and the characteristics of field work requirements, embedded Web server technology is a good solution.
This paper analyzes and introduces embedded Web server technology, and explores its application examples and application prospects in power systems.
2 Embedded Web Server Technology
2.1 Overview
Embedded Web Server (EWS) refers to the introduction of Web servers into field test and control equipment. With the support of corresponding hardware platforms and software systems, traditional test and control equipment is transformed into Internet-based network test and control equipment with TCP/IP as the underlying communication protocol and Web technology as the core [2,3]. Compared with traditional Web applications, the EWS system simplifies the system structure and integrates information collection and information release into field measurement and control equipment. With the standard interface form and communication protocol, the Web server embedded in the device can provide a unified browser-based operation and control interface to any legitimate user connected to the network where it is located. The browser becomes the front-end control panel of the device [4]. Due to the openness and independent platform characteristics of Web technology, the design and maintenance workload of the software system and communication system is greatly reduced, the cost of personnel training is saved, and the management level of field testing and control equipment is improved.
2.2 Hardware structure of EWS
The hardware system of EWS is a microprocessor or microcontroller system that includes Web communication functions [3]. It can be directly integrated with the front-end application system or connected to the application system through a field bus. Its hardware structure diagram is shown in Figure 1.

A complete EWS hardware system must have FLASH ROM memory to store the system kernel of the real-time operating system, TCP/IP protocol stack, and various Web documents; DRAM memory for use during system operation; Ethernet interface to achieve connection with the Internet/Intranet; hardware of the front-end application system to complete the application functions in the traditional sense; and the microprocessor is responsible for the overall operation and management.
Considering the cost-effectiveness, the hardware structure of EWS cannot be very complex, and the hardware resources are also very limited. The space of FLASH ROM is generally 2~4M, and the storage space of DRAM is generally 8~16M. The system kernel of the real-time operating system, TCP/IP protocol stack, and various Web documents must be written into ROM and loaded into DRAM for operation, which puts high demands on the EWS software system.
2.3 EWS software system
The EWS software system consists of five parts [5]: ① HTTP engine; ② virtual file system; ③ configuration module; ④ security module; ⑤ application interface module. Its composition is shown in Figure 2.

The HTTP engine is responsible for responding to user requests, accessing static data information through the virtual file system, and obtaining dynamic data information through the application program interface.
The virtual file system provides virtual file services for EWS. The virtual file system uses data structures to store information such as file size and modification time. For the dynamic information required to store HTML files, a data structure is established to save the pointer of the script and the name of the function called by the script. Through the virtual file system, Java, GIF, PDF, HTML and text files are compiled into codes recognized by the Web server, independent of the specific file system.
The configuration module allows system administrators to set EWS parameters from any standard Web browser. The configuration environment variables defined in the system startup include the number of concurrent connections, Socket port, host name, root file path, default initial file, inactive timeout and time zone, etc.
The opening of the configuration module to standard browsers makes security issues more important, especially the access to the configuration and control information of network devices has become the focus of security protection. The security module protects sensitive information by defining security domains on the server and defining usernames/passwords for each security domain. Encryption measures can also be taken for request data to achieve security protection functions.
The application interface module implements data exchange with the embedded application system. In EWS, the application interface communicates with the embedded operating system to configure, monitor and control the embedded system, and is the core of the EWS software system. The common application interface modules are CGI (Common Gateway Interface), SSI (Server Side Include) and HCPA (HTML-to-C Preprocessor Approach). [page]
2.4 Information flow analysis based on different application interfaces
Through the application interface module, various data information can be dynamically exchanged with the embedded system. Under different interface forms, the information processing method and information flow path are quite different [3, 6, 7].
(1) Information flow analysis based on the CGI interface form
CGI provides EWS with a channel to execute external programs. The CGI program is compiled into an executable file and run on the server. Its information flow diagram is shown in Figure 3. EWS calls the corresponding CGI program according to the user's request, and EWS encapsulates the dynamic information obtained by the CGI program into a page and sends it to the user's browser.
The CGI interface is the simplest implementation solution in the EWS system, but it must be executed before the result can be seen, and the programming is complex. Therefore, for embedded application systems, the program must be written into the Flash memory before online testing can be performed, which will greatly increase the difficulty of development and maintenance.

(2) Information flow analysis based on the SSI interface form
The SSI interface method stores HTML pages with embedded scripts in the EWS. The EWS will start the script engine according to the user's request and call the corresponding HTML page with script code. The script engine interacts with the embedded system and replaces the script code part with actual data. Finally, the EWS sends the replaced HTML page to the client. The specific information flow diagram is shown in Figure 4.
The SSI interface is simpler than the CGI interface and is easy to develop, but the operation of the script engine will inevitably affect the performance of the embedded system. In addition, the mapping of scripts and script names to function and variable names in the embedded software system will consume the precious storage space of the EWS.

(3) Information flow analysis based on HCPA interface form
This interface form is similar to SSI. First, a Web page with C source code is generated. The C source code is marked and can be easily and efficiently interfaced with the embedded software system. The processing process is shown in Figure 5. The preprocessor compresses the Web source page, extracts parameter tags, parses the HTML page, and finally generates C code. The C compiler connects and compiles the generated C code, the C code on the Web side, and the C code of the application system into an executable file. The executable file is stored in the memory of the EWS, and its information flow diagram is similar to the information flow diagram under the CGI interface.

The processing and parsing process of the preprocessor greatly reduces the running load of the EWS system, while the embedded C code and HTML page parsing method provide great flexibility for the development of embedded systems. It combines the advantages of efficient operation of the CGI method and the quick development of the SSI method, and is suitable for the development of small and efficient embedded application systems.
2.5 Key issues in implementing EWS
(1) Resource allocation issues
A good EWS design must be a system solution that reasonably allocates system resources. The main consideration here is the allocation of system hardware resources. Hardware resources mainly include CPU computing resources and system storage space resources.
Since the CPU of EWS also bears the computing and control tasks of the application system itself, the EWS process must use as little CPU computing resources as possible, especially for real-time monitoring devices. The operating system generally allocates low-level threads to EWS without affecting the performance of the system itself. At the same time, EWS adopts the HTTP 1.1 communication protocol and explicitly introduces a buffer control mechanism, which can effectively reduce the CPU load. Establishing a single continuous connection for multiple HTTP transactions instead of establishing a separate TCP connection for each HTTP request can also improve network and system performance.
The allocation of storage space mainly solves the problem of reducing the amount of software code. The HCPA interface solution analyzed in the previous section can use the generated executable file to reduce code redundancy and occupy as little storage space as possible. The simplified real-time operating system kernel and TCP/IP protocol stack can also reduce the amount of storage space required. The efficient TCP/IP protocol stack and Web server software only occupy about 48k ROM and 16k RAM storage space.
At the same time, for different application systems, the overall resource allocation of the EWS system must also be considered. EWS realizes network control of field devices, but it does not mean that every embedded device in the system must become a Web server. In areas where devices are relatively concentrated, it is possible to consider establishing an independent EWS system, communicating with a certain number of embedded devices through the field bus, and becoming a common Web server for these devices, so that a better combination design can be obtained between system cost and performance.
(2) Security issues
Due to the openness and standardization of Web technology, its advantages are sometimes also disadvantages, that is, visitors must be distinguished, otherwise the security of the system will be unpredictable. An EWS system without detailed security and confidentiality measures is an incomplete system. The possible security strategies currently available are as follows [4]:
​​1) Closed-loop network access strategy: Limit network access to the Intranet. Remote monitoring, diagnosis, and even remote control and parameter setting can be performed through a browser on any PC in the network. At the same time, the network is closed, and all possible attack points are limited to the network.
2) Callback strategy: When a user accesses device resources in the network by dialing a phone outside the Intranet, a high level of security is provided through an authorized call-back connection. "Call-back" ensures that only authorized phone connections can access resources within the Intranet. At the same time, the phone number must be kept confidential to prevent malicious calls from blocking the access channel and causing errors such as "denial of service".
3) Read-only access strategy: For critical and sensitive information, an important security measure is to mark it as read-only, especially for access requests from IP addresses outside the Intranet. In this way, users can view the status of the embedded system from anywhere and take timely measures when problems arise.
4) Password and firewall policy: If you want to enable users at any location to control and set parameters of the embedded system, you must introduce firewall technology into the Intranet gateway. If necessary, you must also integrate it into the EWS to filter out external data flows according to the rules. At the same time, all data transmission must be encrypted, and all points that may be attacked must be accessed with the correct username and password. [page]
(3) Real-time issues
In order to solve the shortcomings of traditional Web technology in real-time performance, EWS provides a software and hardware platform for real-time access. EWS uses a microprocessor of 16 bits or more, contains a large RAM storage space, supports multi-level interrupts, and has good real-time response performance. The software system with a real-time operating system (such as pSOS, QNX, VxWork, etc.) as the core provides TCP/IP protocol support, which can implement HTTP Server functions and fully meet the real-time requirements of EWS [8]. The main measure to improve the real-time performance of the system is to reduce the occupation of system resources. The relevant measures are analyzed in the resource allocation problem in this section.
Corresponding to the real-time performance of EWS itself is the real-time performance problem of the communication system connected to EWS. The current solution is to use fieldbus technology to improve the real-time performance of communication. With the maturity of broadband IP network technology with differentiated services, the real-time performance of the communication system will not become a bottleneck affecting the real-time response performance of the EWS system.
3 Application of embedded Web server technology in power systems
The power system is a complex system that includes the production, transmission and use of electric energy. Various production equipment is widely distributed in various regions, with many types and huge numbers of equipment. The monitoring, diagnosis and maintenance of these equipment have become an important part of improving the system management level. After the equipment transformation, the hardware foundation and information network construction of the power system have been greatly improved, which has laid a good foundation for the application of EWS technology in the power system. The following are examples of the application of EWS technology in the power system:
(1) Application of network video monitoring based on EWS technology in the power system [9]
The principle of remote network video monitoring based on embedded Web server technology is to build an embedded Web server in the video server and use an embedded real-time operating system. The video signal transmitted by the camera is digitized and compressed by an efficient compression chip, and then transmitted to the built-in Web server through the internal bus. Users on the network can directly use the browser to view the camera image on the Web server. Authorized users can also control the movement of the camera pan/tilt lens or operate the system configuration. The system is mainly used in unmanned substations, integrated monitoring systems of power bureaus/power plants, on-site production dispatching and command systems, and emergency response to disasters and emergencies to ensure the reliable operation of equipment in the monitoring area and the safety of personnel. Compared with traditional monitoring systems, it has the advantages of cost saving, plug-and-play, high performance, independent network environment and flexible access to equipment.
(2) Application of remote monitoring and fault diagnosis based on EWS technology in power systems
There are three strategies for combining Web technology with monitoring and fault diagnosis technology: device-side embedded Web server system, service-based Web server system and comprehensive multi-Web server system. Among them, the device-side embedded Web server system places the Web server at the device and integrates it with the device. Users monitor the device status through a Web browser and can control the data collection method of the device through browser programming. By reasonably allocating computing tasks, the powerful computing power of the client can be fully utilized to reduce the computing load on the device. Properly combining Web technology with the monitoring and fault diagnosis technology of the device will break through the relatively closed conceptual framework of monitoring and fault diagnosis, which is an improvement of the equipment monitoring and fault diagnosis technology.
(3) Application of protection and control equipment based on EWS technology in substation automation systems [4, 10]
Applying EWS technology to the protection and control equipment of substations will lead to a change in the operation and maintenance mode of traditional substation automation. The real-time information of the system in EWS is obtained through a Web browser, thereby realizing remote real-time control, adjustment and maintenance. The functions that can be realized by the substation automation system based on EWS technology include: dynamic publishing
of real-time data and historical data, parameter setting function, remote implementation control function, file download and upload function, email alarm function, access level setting and authority authentication function, PPP dial-up Internet access and other functions. At present, the "REF542 plus" new generation of integrated protection and control relays developed by ABB has integrated EWS technology, which can realize real-time control based on browsers or local control devices. The "DF 3600" system developed by Dongfang Electronic Information Industry Co., Ltd. in China can also achieve similar functions.
Due to the importance of safe operation of power systems, the actual application of EWS technology in field monitoring and control equipment is gradually deepening and expanding. With the application of TCP/IP technology in substation communication systems, especially the application of broadband TCP/IP technology with differentiated services to the communication between the device layer and the interval layer, the real-time requirements can be met, and the advantages of EWS technology can be more fully utilized to improve the level of remote monitoring and control.
4 Conclusion
This paper analyzes and introduces the main contents of embedded Web server technology, and illustrates its application in power systems with examples. With the maturity and development of embedded Web server technology, its wide application will greatly improve the performance of measurement and control equipment and fundamentally change the operation and management of equipment. In the field of power systems, new monitoring and control systems based on embedded Web server technology will effectively reduce system operation and maintenance costs and improve system management level, and have broad application prospects in power systems.

References

[1] Comer DE (USA). Internetworking with TCP/IP (Volume 1) [M]. Beijing: Electronic Industry Press, 1998.
[2] ZiLOG Inc. Introduction to embedded webservers [OL/D]. http://www.zilog.com/docs/ez80, 2002.
[3] SSV Software Syestems. Web server for embedded systems [OL/D]. http://www.dilnetpc.com, 2002.
[4] Tabara D, Rijanto H, Sabbattini B. Embedded Web technology: adding a new dimension to protection and control [J]. ABB Review, 2001, (2): 16-19.
[5] Hong- Taek Ju, Embedded Web server architecture for Web-based element and network management [D]. Thesis of DP&NM Lab, CSE, POSTECH, Korea, 2001.
[6] Agranat LD. Engineering Web technologies for embedded applications[J]. Internet Computing, 1998, (3).
[7] Coelho CN, da Silva DC, Padrao WC. Reengineering embedded systems for the internet[C]. 15th Triennial World Congress, Barcelona, ​​Spain, 2002 IFAC.
[8] Li Nong. Application of Internet technology for embedded system[J]. Measurement and Control Technology, 2000, 19(4): 15-16.
[9] Yuan Yi. A remote video surveillance system based on embedded Web server technology[J]. Power System Technology, 2000, 24(5): 71-73.
[10] Chen Zhong, Zheng Shixiong, Sun Yanming. Web based telemonitoring and telediagnosis strategies[J]. Journal of South China University of Technology (Natural Science Edition), 2002, 30(6): 30-32.

Keywords:Embedded Reference address:A review of embedded web server technology and its application in power systems

Previous article:Design of Embedded Frequency Meter
Next article:Analysis and implementation of bootloader based on Mpc823e

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号