Design of Embedded WEB Server Based on LINUX

Publisher:Enchanted2021Latest update time:2013-03-01 Source: dzscKeywords:LINUX  S3C2410 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  1 Introduction

  The advent of the PC era has led to the emergence of information products, and the combination of the Internet and information products is a trend of development today. The emergence of embedded Internet technology just caters to this trend.

  Due to the penetration of Internet technology, embedded systems are becoming more and more intelligent and have more and more network-friendly features. This paper mainly designs and tests the embedded Web server technology. The function of the Web server is to *client service requests and provide corresponding services according to the type of client requests. Embedded Web server refers to the introduction of Web server into the embedded device on site and resides in a limited code space. In the current embedded application field, most embedded systems are transformed into embedded Web servers. Web servers based on embedded devices can provide a unified browser-based operation and control interface to any legitimate user who accesses the network where it is located. At this time, the browser becomes the front-end control panel of the device.

  In the management and interaction of embedded devices, Web-based applications have become the mainstream. This program structure is the B/S structure that everyone is very familiar with, that is, running a Web server that supports scripts or CGI functions on the embedded device, which can generate dynamic pages. On the user side, the embedded device can be managed and monitored only through a Web browser, which is very convenient and practical.

  2 System Hardware and Architecture

  2.1 Hardware Design Platform

  The hardware platform of this system is shown in Figure 1. This hardware system has a simple structure and low cost. It can be directly connected to the Internet without a PC. On the client, a standard browser can be used to communicate with the embedded Web server through the Internet, successfully replacing a dedicated PC server (with a dedicated interface card and Ethernet interface card) or a dedicated communication chip. It conveniently realizes the needs of many embedded devices to directly interconnect with the Internet at a low cost.

Hardware Platform

Figure 1 Hardware platform.

  2.2 Architecture of embedded web server

  As shown in Figure 2, in this design, the client uses a web browser to communicate with the web server. The HTTP protocol is used in the web server. HTTP is a simple protocol that completes only one request per connection. Before the client exchanges data with the web server, it first establishes a connection using TCP/IP. The server program establishes a TCP type SOCKET and communicates on port 80. After receiving the request from the user, the server parses the HTTP protocol header of the client request, analyzes the client's request, and returns the corresponding data according to the client's request.

Architecture diagram

Figure 2. Architecture diagram.

  3 Technical Analysis and Implementation

  3.1 Software requirements and functional requirements

  According to the requirements of this design, the software requirements process is shown in Figure 3. In the figure, the user as the core needs to complete the corresponding 7 requirements. Specifically: the client obtains the file list of the current directory of the server; obtains the specified file according to the requirements, and sends the file requested by the client to the client; the client sends the requested HTML type file to the client according to the requirements; the user obtains a plain text file; obtains a JPG image file; obtains a GIF image file; and finally processes and parses the user request, parsing the request information into the requested command, the requested file name, and the requested file type.

  According to the above requirements, the specific data flow to achieve this process is shown in Figure 4. The structure of the entire system is shown in Figure 5. [page]

Software Requirements

Figure 3 Software requirements.



  As can be seen from the figure: the main program first establishes the environment settings and sets the signal processing method, establishes a listening TCP stream SOCKET and binds port 80, then receives a connection request, transmits the request to the connection processing module for processing, and continues*.

  3.2 Algorithm Implementation

  The algorithm flow for implementing this design is shown in Figure 6.


  4 Testing

  First, we need to build an embedded development environment based on S3C2410, burn the compiled booloader, ARML inux kernel and ramdisk into Flash, compile the data acquisition and marquee applications into dynamic links, and use the arrmv41-unknown-linuxgcc compiler when compiling. Generally, as long as we compile on the PC platform, we can modify the makefile slightly. The web server and other files such as dynamic link libraries must be in the same directory. When running, start the design server first, dynamically load the relevant drivers, enter the IP address of the embedded system on the PC browser, and the collected data can be dynamically displayed on the web page. At the same time, the working status of the remote device can be controlled through the control buttons on the web page.

  This design is mainly to realize the dynamic display of the school's homepage. Enter http://192.168.0.115 (115 is the IP address of the UP-AMR2410-S experimental board) in the desktop browser, and observe the connection request results in the client's browser and the print information of the server on the development board. See Figure 7.

Machine test results

Figure 7: Test results of this machine.

  5 Conclusion

  Embedded Web server is a key component for realizing the interconnection between embedded system and Internet through Web. It directly affects the quality and efficiency of network application system operation. Research on it is of great significance to the development of Internet technology. This work proposes a design method of embedded Web server based on ARM-Linux operating system. The embedded Web server has the advantages of low cost, good openness, strong portability, etc., which is convenient for later maintenance and upgrading. Since the designed embedded Web server is a separate module and provides a standard interface, it can be easily applied to other embedded devices (such as smart home appliances, field nodes, etc.) with only a few modifications to the software, which has certain promotion value.

References:

[1]. PC  datasheet http://www.dzsc.com/datasheet/PC+_2043275.html.

Keywords:LINUX  S3C2410 Reference address:Design of Embedded WEB Server Based on LINUX

Previous article:Power quality online monitoring system based on GPRS technology
Next article:Cache mechanism and its principle that should be paid attention to in embedded programming

Recommended ReadingLatest update time:2024-11-16 15:54

Design of three-lead remote ECG monitoring system based on S3C2410
1 Introduction With the improvement of people's living standards and the acceleration of the pace of life, the incidence of cardiovascular diseases has risen rapidly and has become one of the main factors threatening human health. Electrocardiogram is the main basis for the treatment of such diseases. It h
[Medical Electronics]
Design of three-lead remote ECG monitoring system based on S3C2410
Design of fire information transmission gateway based on ARM
0 Introduction Fire is a major form of urban disasters. It has increasingly become an important disaster that affects social and economic development and people's lives. At present, the main method used by cities to prevent fires is to install automatic fire alarm systems and their linkage fir
[Security Electronics]
Design of fire information transmission gateway based on ARM
Linux mainline officially supports the Saifang JH7100 chip
Recently, the Linux 5.17 stable version was officially released, and its mainline support for RISC-V has also been updated. The main changes are: Support RISC-V sv48 Supports Saifang Technology JH7100 RISC-V SoC Support for KVM Supervisor Binary Interface v0.2 Support THP migration At this point, Saifang Tec
[Embedded]
Linux mainline officially supports the Saifang JH7100 chip
ffmpeg ported to arm s3c2410
First of all, I need to explain that since I only need to do video acquisition on arm, I did not port other encoding and decoding libraries. Once this is done, it is easy to load those libraries and compile! arm-linux-gcc version: arm-linux-gcc-3.3.2.tar.bz2 I uploaded one, and there are many on the Internet: do
[Microcontroller]
My Journey in Embedded Linux - Analysis of the Working Principle of ARM MMU
1. The Origin of MMU     Many years ago, when people were still using DOS or older operating systems, computer memory was very small, generally calculated in K units. Correspondingly, the program size at that time was not large, so although the memory capacity was small, it could still accommodate the programs at that
[Microcontroller]
The linux-3.0 kernel is transplanted to the fl2440 development board (using s3c2410 as the template)
1. Create a new kernel folder to store kernel files $ mkdir kernel   2. Enter the kernel, upload and decompress the compressed file $cd kernel $ tar -xjf linux-3.0.tar.bz2   3. Enter linux-3.0 cd linux-3.0   4. Modify the makefile and configure the CPU type and cross-compiler (lines 195, 196)  ARCH ?=arm  CROSS_COM
[Microcontroller]
Application design of serial communication based on Linux environment
  0 Introduction   In the data acquisition system, since the single-chip microcomputer focuses on control and has weak data processing capabilities, it is cumbersome to operate the collected data. If the communication with the host computer is carried out through the serial port, the design efficiency can be improve
[Microcontroller]
Application design of serial communication based on Linux environment
Research on Data Transmission between GPS Module and ARM-Linux Platform
This paper mainly studies the problem of asynchronous serial transmission between GPS module and ARM-Linux platform for data transmission , uses multi-threaded programming technology to realize GPS signal acquisition and processing, and introduces a method for converting WGS coordinates to local coordinate
[Microcontroller]
Research on Data Transmission between GPS Module and ARM-Linux Platform
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号