Method for using CGI technology for achieving dynamic web server in no-operation system

An operating system and server technology, applied in the direction of program control devices, etc., can solve the problems of only static web pages, increased cost, power consumption complexity, and no web functions, and achieves clear division, high operating efficiency, and algorithm implementation. simple effect

Active Publication Date: 2014-01-15
山东华辰泰尔信息科技股份有限公司
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, traditional devices with single-chip microcomputers or Cortex-M3ARM CPUs generally do not implement web functions or can only implement static web pages; while devices with dynamic web page support generally support embedded operating systems with mature CPUs. web server (such as boa), which will inevitably increase the cost, power consumption and complexity exponentially

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for using CGI technology for achieving dynamic web server in no-operation system
  • Method for using CGI technology for achieving dynamic web server in no-operation system
  • Method for using CGI technology for achieving dynamic web server in no-operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] A method utilizing CGI technology to realize a dynamic web server in a non-operating system device, comprising steps as follows:

[0053] Among them, the implementation of this method includes the following modules: HTTP analysis and package module (http.c), web server general scheduling module (web_server.c), web page file definition module (web_page.c), CGI file analysis and function analysis module (cgi_parser.c) and CGI function implementation module (cgi_fun). The HTTP protocol analysis and group package module are used to analyze the HTTP protocol; the web server total scheduling module is used for the scheduling of the entire web server, including searching for corresponding files and error handling according to the URI; the CGI file analysis and function The CGI file parsing module in the parsing module is used to parse the CGI file, and analyzes the name and parameters of the CGI function embedded in the tag in the CGI file; the CGI function parsing module par...

Embodiment 2

[0068] A method for implementing a dynamic web server using CGI technology in a device without an operating system as described in Embodiment 1, the difference is that the method also includes an AJAX effect realization method: the AJAX effect means that no manual refresh is required The entire page, but the query parameters are automatically sent by the browser, and refreshed and displayed in some areas of the page; the real-time display of the device running time in this method is realized by using AJAX; the javascript file get_time.js contains a timer, and every 1 second to send a query request to the page specified by the web server, and after the web server responds, get_time.js will refresh the result to the specified area of ​​the page in the background.

[0069] The implementation of get_time.js is as follows:

[0070]

[0071]

[0072] The web server file sent by AJAX is defined by the url variable, here it is get_time.cgi, and then the get_time.cgi file will us...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for using a CGI technology for achieving a dynamic web server in a no-operation system. The method includes the following steps that firstly, an HTTP parsing and group packaging module processes a network package received by HTTP service; then, a web server general dispatch module starts to search for arrays in a webpage file definition module and looks for a file requested by a URI according to the parsed network parameter URI; secondly, a CGI file is processed through a CGI file parsing and function parsing module and a CGI function achieving module. The method is performed in a singe chip microcomputer or an ARM CPU device, wherein the singe chip microcomputer or the ARM CPU device are free of operating systems, file systems and web bank supporting, and limited in internal storage. The simple and modularized method is used for enabling the device with a simple CPU only to achieve the dynamic web server function and achieve the AJAX effect, and for improving capacity for dynamic interaction between a user and the device.

Description

technical field [0001] The invention relates to a method for realizing a dynamic web server by using CGI technology in a device without an operating system, and belongs to the technical field of embedded Internet devices. Background technique [0002] With the development of the Internet of Things and the popularization of networking, especially web applications, the requirements for networking and intelligence of equipment are getting higher and higher. How to use a simple method to allow simple devices to access the Internet and manage and configure them through the web will be a difficult problem we face. [0003] In the prior art, traditional devices with single-chip microcomputers or Cortex-M3ARM CPUs generally do not implement web functions or can only implement static web pages; while devices with dynamic web page support generally support embedded operating systems with mature CPUs. web server (such as boa), which will inevitably increase the cost, power consumption...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 李幸福马中骏张会昌张鹏李宁肖计伟杨善松
Owner 山东华辰泰尔信息科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products