Research on Distributed Real-time Measurement and Control System Based on Linux Operating System

Author
WeiJianCheng
Advisor
ChenZengHan
School
Chongqing University
Major
Electrical Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2005
Downloads
272
Citations
0

Request the full text

Abstract

At present,PC-based real-time measurement and control system is one of the important developing derections of real-time system. As universal operating systems on PC, DOS and Windows have much disadvantage in implementing the problem of real-time and multitask. Additionally,the commercial operating system are much expensive and keep secret their source codes from public although they have good performance,that causes many inconveniences to the development of real-time systems. The emergence of a free software Linux operating system gives us a chance to change this situation. this thesis expands my research: applying Linux to an industrial PC real-time measurement and control system,which is centered on improving real-time performance and solving the multitask problem. Paper firstly analyses the real-time performance of Linux kernel, the disadvantage of Linux used in real-time system is obtained; Tnternal modification and external modification are two methods for improving real-time performance of Linux,Paper analyses and compares these two methods and real-time Linux with the two methods . RTLinux is abtained through using the method of external modification to modify the Linux.In the chapter three,the implement principle of RTLinux is deeply analysed,and the key technology of RTLinux,software emulating the hardware interrupt control, scheduler of real-time tasks,real-time timer,the mechanism of inter-process communication,is in detail researched.next,the interrupt latency time and scheduling accuracy are tested,the result of test show that RTLinux can satify the requirement of hard real-time environment.At the same time,the principle of software design for RTLinux application is analysed. RTLinux is successfully applied to a pratical industrial real-time measurement and control system in the chapter four. the hardware buliding and software coding are implemented.RTLinux devides the system into real-time tasks and common tasks.Because of the high resolution of real-time timer,the real-time tasks are set as periodic,and using the RM schedule algorithm to schedule the real-time tasks.real-time tasks implements the data sample, handle and output.the common tasks is linux user application program,it implements the data save,display and management,and so on. deeply analysing the RM schedule algorithm and schedulability tests under RM algorithm,and using the RM algorithm to design a testing program,testing and analyising the schedulability and real-time performance of the system based on RTLinux through the testing program.The result of test is satified to the hard real-time requirement of application. Chapter five firstly analyses the serial communication under Linux OS in detail,next,building on a small distributed monitor system through the RS-485 bus on the basis of the IPC real-time system is discussed. the functions of user management,history reports,status display as well as reports printing are implemented in this monitor system. research result show that it is possible to apply linux to industrial measurement and control system,RTlinux can not only ensure the real-time quality of real-time task,but also these tasks can use Linux function so that real-time systems have good foundation to develope the functions.

Table of contents

Chinese Abstract 4-6 Abstract 6-10 1 Introduction 10-14 1.1 research background and significance 10-11 1.2 domestic and foreign research status 11-13 1.2.1 domestic research 11-12 1.2.2 foreign Research 12-13 1.3 thesis work done 13-14 2 LINUX kernel analysis and real-time reconstruction 14-24 2.1 LINUX operating system kernel 14-16 2.1.1 Linux system architecture 14 2.1.2 Linux kernel composition 14-16 2.2 LINUX process Scheduling mechanism 16-19 2.2.1 scheduling based 16-17 2.2.2 scheduling opportunity 17 2.2.3 scheduling policy 17-19 2.3 LINUX kernel in real-time applications lack 19-20 2.4 LINUX real-time transformation 20-22 2.4.1 Linux internal real sexual transformation 20-21 2.4.2 Linux external real-time transformation 21-22 2.5 chapter Summary 22-24 3 RTLINUX principle and programming interfaces 24-36 3.1 Why choose RTLINUX 24 3.2 RTLINUX features and implementation of principles 24-31 3.2.1 RTLinux features 24-26 3.2.2 RTLinux design ideas 26 3.2.3 RTLinux implementation principle 26-31 3.3 RTLINUX real test 31-32 3.4 RTLINUX programming structure 32-34 3.4.1 RTLinux programming interface (API) 32-33 3.4.2 RTLinux application design principles 33-34 3.5 Summary 34-36 4 build real-time monitoring and control system based on RTLINUX 36-62 <br / > 4.1 for real-time monitoring and control system requirements 36 4.2 build based on the IPC control system RTLINUX 36-38 4.2.1 IPC control system hardware structure 36-37 4.2.2 Measurement and Control System based on RTLinux overall design 37-38 4.3 IPC control system hardware description 38-43 4.3.1 switch input / output board 38-40 4.3.2 analog Input card 40-41 4.3.3 timer / counter Board 41 -43 4.4 IPC control system software design 43-55 4.4.1 software planning 43-44 4.4.2 software design process description 44-52 4.4.3 program analysis and program flow 52-55 4.5 IPC control system real-time analysis and testing 55-61 4.5.1 real-time scheduling theory 55-57 4.5.2 real-time performance test methods and implementation 57-58 4.5.3 test data analysis 58-61 <br / > 4.6 chapter Summary 61-62 5 serial communication with the DCS system design 62-72 5.1 serial communication describes 62 5.2 LINUX system serial communication 62-66 5.2.1 Linux system Serial resource 62 5.2.2 Linux system serial communication describes the correlation function 62-66 5.3 RS-485 -based DCS system 66-67 5.3.1 system network topology 66 5.3.2 communication mechanism 66-67 5.3.3 data communication protocols 67 5.4 DCS system software design 67-71 5.4.1 -slave communication program design 68-69 5.4.2 host monitoring program design 69-71 5.5 chapter Summary 71-72 6 summarizes 72-74 Thanks 74-76 References 76-78 Appendix 78-85 originality statement 85 dissertation copyright attorney 85

Related dissertations

  1. Design and Implementation of Host Control Software in Spaceborne SAR Imaging System
    WangLei ·Institute of Computing Technology ·2004 ·Master's thesis
  2. A Research of Scheduling Method Based on the Real-Time Linux
    LiuLi ·Shenyang University of Technology ·2006 ·Master's thesis
  3. Research and Realization of Linux Real-time Scheduling Algorithm and Test Bench
    YangLong ·Dalian University of Technology ·2005 ·Master's thesis
  4. Research on Development Strategy for Distributed Control System of Hollysys Company
  5. Application of Distributed Control System to the Power Plant
    WangLiMing ·Harbin Engineering University ·2009 ·Master's thesis
  6. The Development of Configuration Software for Monitoring and Controlling Based on C#
    WangGuang ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. The Programing and Development of Automatic Control System for Alpha Gypsum Powder Production Line
    ZuoXingFei ·University of Jinan ·2013 ·Master's thesis
  8. Design and Realization of Distributed Control System Based on Industrial Ethernet
    WuQiong ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  9. Research and Application of Temperature Control System Based on Wireless Network
    TianLinLin ·Donghua University ·2014 ·Master's thesis
  10. Research on Distributed Control System of Batch Dyeing
    FanJinLong ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  11. Performance Analysis of EPL and Its Application in DCS System
    TanQu ·Zhejiang University ·2014 ·Master's thesis
  12. The Design of the System of the Intelligent Creel Robot
    GuYingJia ·Donghua University ·2013 ·Master's thesis
  13. AUV Control System Based on Multi-sensors
    WangGang ·Harbin Engineering University ·2013 ·Master's thesis
  14. Design and Implementation of Static Gesture Recognition System Based on FPGA
    ZhaoYuZuo ·Northeastern University ·2013 ·Master's thesis
  15. Research on the Scheduling Algorithms in Real-Time Multimedia Systems
  16. Energy-efficient Real-time Scheduling for Multi-core and Multiprocessor System
  17. Research and Realization of Time Synchronization Protocol in Distributed Control Systems
  18. Design and Implementation of Vibration Spectrum Analyzer
    WangSheng ·Zhejiang University of Technology ·2013 ·Master's thesis
  19. Research and Implementation of SUPMAX800Functions for300MW-level Thermal Power Unit
  20. On the Modularization of Coal-fired Power Plant Control System
    HuangSuWen ·Zhejiang University ·2014 ·Master's thesis