Research on Improving Embedded Linux Real-time Performance and Its Application in a Measurement and Control System
- Author
- YuanHuiJian
- Advisor
- ChenZengHan
- School
- Chongqing University
- Major
- Electrical Engineering
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 249
- Citations
- 2
Abstract
With the rapid development of computer hardware and software technology,embedded system has been used in indurstrial measurement and control field step by step because of its low-power、small-size、high-integration prior to general computer. Generally, indurstrial measurement and control system meet to rigid requirement in real-time performace,but most commercial operating systems used currently are foreign and expensive.Especially key technology is mastered by the foreigners .That is dangerous to our national security and our national development is restricted.Otherwise,the other operating systems are too simple,so it is disadvantage to develop complicated embedded system conveniently and agilely. The emergence of embedded Linux operating system based on ARM gives us a chance to change this situation. The embedded system has two aspect advantage ,include ARM about low-power、small-size and high-integration and Linux about free、public source codes and complicated function.So it is accepted widely as a excellent embedded system by most developers.However,common embedded Linux system based ARM does not meet to the requirement in real-time performance about measurement and control system application studied in this papar. Consequently, the author focuses on improvement of real-time performance in embedded Linux system and development of real-time measurement and control system.Firstly,embedded system is introduced in the papar,contrasted and analyzed especially in real-time performance. Otherwise,feasibility and significance are gived about improvement of real-time performance in embedded Linux system.Secondly, ARM series processor is introduced and the evidence that chose S3C2410 processor is gived. And then, principle of pulse width modulation timer as the source of operating system clock is analyzed.Thirdly,principle of system clock、interrupt processing and scheduler in the embedded Linux system based S3C2410 has been studied.And embedded Linux deficiency in real-time performance is summarized.Then key technology improving real-time performance currently is presented . At last, aiming at characteristic and real-time performance requirement of a practical measurement and control system based on embeded Linux, the author of this papar present scheme about Linux system clock granularity modification、reasonable cooperation between software and hardware and adding real-time tasks to kernel.At the same time,non-real-time tasks are as common user application process of embedded Linux operating system.The scheme given above improves the timer resolution of the operating system, when it improves the preemption ability of real-time tasks.But the scheme does not bring CPU too much burden. A real-time measurement and control system is developed based on the scheme. By testing, the measurement and control system has been authenticated to meet demand of real-time performance. And running in reality , the measurement and control system has also good stability.So the scheme is feasible.On the side, ARM embedded chip is core of the hardware platform,part of the papar cite some ground codes analyzed and modified.Because the length of the papar is limited,ARM instruction is not telled of.If you need learn about it detailedly,please read ARM data file.so sorry to your trouble for it.
Table of contents
Chinese Abstract 3-4
English summary 4-9
1 Introduction 9-14
1.1 research background and significance 9-10
1.2 related Research 10-14
1.2.1 domestic research 10-11
1.2.2 China Research 11-12
1.2.3 of this thesis completed work 12-14
the
ARM-based embedded industrial processors Profile 14-25
2.1 the ARM About 14-18
2.1.1 ARM-Advanced RISC Machines 14
the
characteristics of 2.1.2 ARM microprocessor 14
2.1.3 ARM microprocessor architecture 14-17
2.1.4 ARM microprocessor series 17-18
2.2 the ARM embedded measurement and control system and the traditional industrial control computer monitoring and control system 18-19
Application Selection
2.3 ARM microprocessors 19-20
2.3.1 ARM microprocessor core selection 19
2.3.2 system operating frequency 19
2.3.3-chip peripheral circuits select 19-20
2.4 Samsung S3C2410 processor 20-24
2.4.1 Samsung S3C2410 chip resources introduced 20
2.4.2 Samsung S3C2410 clock management 20-21
2.4.3 Samsung S3C2410 PWM timer introduce 21-24
2.5 This chapter Summary 24-25
3 Embedded Linux kernel analysis and real-time 25-44
3.1 embedded Linux operating system in the field of industrial control applications analysis 25
3.2 embedded Linux kernel and hardware clock 25-26
3.2.1 Real Time Clock 26
3.2.2 programmable interval timer 26
3.3 embedded Linux operating system on the system clock setting 26-33
3.3.1 to guide part 26-29
3.3.2 operating system start-up and system clock settings 29-33
3.4 S3C2410-based embedded Linux interrupt handling 33-36
3.4.1 embedded Linux low-level interrupt handler 34-35
3.4.2 embedded Linux high-level interrupt handler 35-36
3.5 embedded Linux process scheduler 36-41
3.5.1 the basic concepts of the process 36-37
3.5.2 process address space 37
3.5.3 process control 37-39
3.5.4 process scheduling 39-41
3.6 embedded Linux real-time applications in less than 41-42
3.7 embedded Linux real-time enhancements of two ideas 42-43
3.8 This chapter Summary 43-44
the
enhanced real-time embedded Linux system and monitoring and control systems 44-58
4.1 system clock granularity modify 44-46
4.2 interrupt real-time analysis of the system real-time performance improved 46-47
the
of 4.2.1 embedded Linux interrupt disable and enable 46
of 4.2.2 embedded Linux interrupt handling features and real-time 46-47
4.3 real-time task scheduling 47-49
4.4 monitoring and control system of real-time monitoring and control tasks part processing 49
4.5 measurement and control system hardware block diagram 49-51
4.5.1 Measurement and Control System Timer / Counter Board 50-51
4.6 monitoring and control system real-time task of software design 51-52
4.7 display tasks MiniGUI-based monitoring and control system software design 52-56
4.7.1 based on MiniGUI graphic show introduced 53-54
4.7.2 stateWinProc function 54-56
4.8 kernel cuts compiler and programming 56-57
4.8.1 kernel cuts 56
4.8.2 kernel compile 56
4.8.3 kernel programming 56-57
4.9 real-time test 57
4.10 This chapter Summary 57-58
the
serial communication with DCS system, 58-68
5.1 serial communication introduced 58
5.2 RS-485-based DCS system 58-59
5.3 embedded Linux system serial communication 59-65
5.3.1 embedded Linux system RS-485 communication principle 59-60
the MAX485 chip driver
5.3.2 embedded systems introduced 60
The the
of 5.3.3 embedded Linux system serial communication userland program introduced 60-64
5.3.4 communication mechanism 64
5.3.5 Data communication protocol 64-65
5.4 DCS system software design 65-67
5.4.1 the slave communication program designed 65-66
5.4.2 host monitoring program design 66-67
5.5 This chapter Summary 67-68
6 Summary and Outlook 68-69
Acknowledgements 69-70
the
References 70-73
the
Appendix: catalog of papers published by the author during the master's degree 73
Related dissertations
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
- The Research of Embeded Intelligent Household Based on ARM
- Research on the Digital Controller and PID Parameter Tuning of the Proportional Valve
- Research on Intelligent Home Furnishing system based on Android
- Design of Cutting Robot System Platform Based on ARM
- AGV car design and development of image recognition and motion control technology based on
- Research and Implementation of Intelligent Regulator Based on ARM
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- Research and Design of Embedded Network Video Surveillance System Based on ARM
- Design and implementation of the embedded terminal based on Qt multimedia player
- The Research of Secure Routing Protocols in Ad Hoc Networks and Its Implementation on Embedded Systems
- The Design and Implementation of Data Terminal and Sensor Network Gateway of Mesh Emergency Network in Mine
- Theoretical Research on Image Transmission System Basedon ARM and Bluetooth Technology
- Design and Implementation of Video Surveillance Systems Based on Android Smartphones
- The Design of Reconfiguration of FPGA Based on ARM in a Long Distance