The Design and Realization of Embedded Modbus Communication System Based on μC/OS-Ⅱ

Author
HuQingWei
Advisor
ZengWenHai
School
Hunan University
Major
Circuits and Systems
Classification
TP316 Operating system
Degree
Master's thesis
Year
2005
Downloads
380
Citations
1

Request the full text

Abstract

Embedded software is the core of embedded products, as the basis for embedded software, embedded real-time operating system in the process of industrial development played an increasingly important role in a variety of embedded applications are becoming increasingly popular in for embedded real-time operating system research has very important significance. μC/OS- Ⅱ system is a practical and robust real-time embedded real-time operating system, is designed for embedded applications written in real-time kernel, portable, can be cured, can be cut, and its function is constantly reinforced, is currently in vigorous development stage, and has been widely used in various industries. This paper analyzes the embedded real-time operating system, the basic concepts of embedded real-time operating system, compared with the ordinary operating system task scheduling strategy, memory management, interrupt handling, mutually exclusive access to shared resources, systems and other aspects reentrancy difference, and introduces several domestic and foreign common embedded real-time operating system. Then details the open-source embedded real-time operating system kernel μC/OS- Ⅱ structure analysis time management module, task management module, signal modules, mail module, the message queue module structure and function call relationship. ΜC/OS- Ⅱ discussed the feasibility of transplanting in 8051MCU given transplantation. Use Keil C51 compiler, in the large mode, using the hardware stack and the task stack independently coexist methods specific transplantation. Designed the task stack and hardware stack data structure, a detailed description of the migration process of the work and implementation. Transplantation work is completed first with its own debugger software simulation, software simulation is passed, then the hardware simulation results show that the migration method is feasible. Finally, in the 8051MCU transplanted μC/OS- Ⅱ achieve the Modbus communication card design and PC software design. EPS interface in accordance with the requirements given in the Modbus communication system's overall design, and detailed analysis of the communication card MCU subsystem, the data acquisition subsystem, serial communication subsystem modules of software and hardware design. Program on the PC and Modbus communication card for debugging as well as Modbus communication system at work site were tested. Field tests show that, Modbus communication system development essential for the success.

Table of contents

Abstract 6-7 Abstract 7-9 Chapter 1 Introduction 9-13 1.1 Introduction 9 1.2 RTOS 9-12 1.2.1 embedded real-time operating system features 9-10 1.2.2 RTOS development status 10-11 1.2.3 RTOS application prospects 11 1.2.4 μC/OS- Ⅱ based on the Modbus communication card significance 11-12 1.3 the main research work 12-13 Chapter 2 Embedded real-Time Operating system 13-22 2.1 Introduction 13 2.2 embedded real-time operating system, the basic concepts of 13-15 2.3 embedded real-time operating system and common operating system differences 15-18 2.3. a task scheduling strategy differences 16 2.3.2 memory management differences 16-17 2.3.3 interrupt Handling differences 17-18 <br / > 2.3.4 mutually exclusive access to shared resources difference 18 2.3.5 operating system calls and system time overhead internal differences 18 2.3.6 reconfigurable systems into sex differences 18 2.4 several embedded real-time operating system introduced 18-21 2.5 using an embedded real-time operating system advantages and disadvantages 21 < br /> 2.6 Chapter Summary 21-22 Chapter 3 μC/OS- Ⅱ embedded operating system and its application in 8051 on the transplant 22-42 3.1 Introduction 22 3.2 μC/OS- Ⅱ operating system 22-31 3.2.1 μC/OS- Ⅱ role in the overall structure of each module 23-24 3.2.2 μC/OS- Ⅱ function call relationship 24-28 3.2.3 task status and task scheduling 28-31 3.3 μC/OS- Ⅱ in 8051 the transplant 31-41 3.3.1 transplantation conditions required 31-32 3.3.2 porting content 32-40 3.3.3 transplantation work problems and solutions 40-41 3.4 Summary 41-42 Chapter 4 embedded Modbus communication systems in general design and Implementation 42-64 4.1 Modbus communication system design requirements 42-43 4.1.1 Modbus communication system interface signal requirements 42 <br / > 4.1.2 Modbus communication system functional requirements 42-43 4.2 Modbus communication system Design Program 43-47 4.2.1 Modbus communication card hardware design 43-44 4.2.2 Modbus communication card software design 44-45 4.2.3 PC machine based on WINDOWS platform software design 45-47 <br / > 4.3 Modbus communication card hardware design and implementation 47-53 4.3.1 MCU subsystem 47-50 4.3.2 data acquisition subsystem 50 -52 4.3.3 serial communication subsystem 52-53 4.4 Modbus communication card software design and implementation 53-58 4.4.1 Modbus communication protocol Introduction 53-55 4.4.2 Modbus communication card task 55-58 4.5 Modbus communication system PC software design and implementation 58-60 <br / > 4.5.1 custom serial category Cserialport 58-59 4.5.2 database design 59-60 4.6 Modbus communication system debugging and testing 60 -63 4.6.1 PC machine debugging 60-61 4.6.2 Modbus communication card debugging 61-62 4.6.3 Modbus communication system field test 62-63 4.7 chapter Summary 63-64 Conclusion 64-66 References 66-69 <br / > Thanks 69-71 Appendix A ( study for a degree of academic papers published during the directory ) 71-73 Appendix B ( study for a degree in research projects during ) 73-75 Appendix C (Modbus communication card ) 75-77 Annex D ( part of the program code ) 77-82

Related dissertations

  1. Design of Embedded Digital Thermometer Based on ARM MCU and μC/OS-Ⅱ RTOS
    JiangJingMei ·Jilin University ·2004 ·Master's thesis
  2. Development of automatic focimeter
    ZhouMingZuo ·Zhejiang University ·2004 ·Master's thesis
  3. Embedded systems in the automotive headlight tester lights Positioning System
    ZhengKai ·Northwestern Polytechnical University ·2006 ·Master's thesis
  4. Embedd-system Base on μC/OS-Ⅱ
    ZhangJun ·Harbin Engineering University ·2005 ·Master's thesis
  5. DSP-based embedded real-time operating system design and application
    ZhangGuangNan ·Northwest Normal University ·2009 ·Master's thesis
  6. Effects of the Multi-National Corporation to China embedded industrial agglomeration
    ZhengLiFang ·Capital University of Economics ·2014 ·Master's thesis
  7. The Remote Wireless Control System Based on ARM Processor
    WangHui ·Nanchang University ·2014 ·Master's thesis
  8. The Research and Design of Security Monitoring System Based on Embedded and Cloud Storage
    ChenYunLong ·Wuhan University of Technology ·2013 ·Master's thesis
  9. Engine Room Monitoring System Based on the Embedded Web Server
  10. Rearch on Intelligent Monitoring Technology That Access to Internet
  11. Design of Indoor Environmental Quality Monitoring System Based on ARM
  12. Design of Industrial Equipment State Wireless Monitoring System Based on STM32
    ZhangDongSheng ·Dalian University of Technology ·2013 ·Master's thesis
  13. Design and Implementation of Intelligent Network Dome Based on DaVinci Technology
  14. 3G Agricultural Experiment Station of intelligent design and development of remote monitoring system based on
  15. Design of Human Physiological Parameters Acquisition System Based on Embedded Linux
  16. Embedded Software Design of AC Field Detection Instrument Based on ARM
  17. Design and Realization of Farm Machinery Working State Real Time Wireless Monitoring System
    WangZuo ·Harbin Engineering University ·2013 ·Master's thesis
  18. Design of Farmland Environment Remote Monitoring System Based on ZigBee Network
    GuoJia ·Henan Agricultural University ·2013 ·Master's thesis
  19. Design and Implementation of Video Capture System Based on Embedded Technology
    RanYuFeng ·Shandong University ·2013 ·Master's thesis
  20. Research of Surface Roughness Network Data Collector System Based on ARM