Development of an Embedded Software Platform Based on μC/OS-Ⅱ and Application for Intelligent Flowmeter

Author
HuaLiang
Advisor
YangShiXi
School
Zhejiang University
Major
Mechanical Manufacturing and Automation
Classification
TH814 Flow Meter
Degree
Master's thesis
Year
2004
Downloads
366
Citations
3

Request the full text

Abstract

The trend of field-bus at factory field asks the embedded systems of field devices and instruments to become more intelligent and more powerful. This article discusses the building of an embedded software platform based on μC/OS-II core, which is aimed at instruments used at industry control field. μC/OS~II is an open source real-time operating system (RTOS) core. Our extensions for μC/OS~II include kernel extension, TCP/IP protocol stack, file system, shell and function-library. At the application layer, three TCP/IP application modules are designed. They are WEB active page service, FTP client, MODBUS/TCP service. The system is designed at ARM7TDMI core micro-controller S3C4510B, which is very suitable for net application. This platform is light-weighted, high real-time, and easy to port. It provides a fast prototype system for device design.As an application example, the second section mainly discusses the design of intelligent flowmeter. Working theory of flowmeter and electronic hardware are explained. After porting the platform and designing software for flow calculation and display, the basic functions of flowmeter are realized. On this base, WEB application functions are specified, including data display and parameter setting using WEB active pages. To manage flowmeters on net, console program at PC is also designed. It communicates with flowmeters using MODBUS/TCP protocol.Contents of this paper as follow:Chapter One: Firstly, introduces the development of embedded system and its hardware and software; Secondly, according the requirement of embedded system at industrial field, the project, creating an embedded software platform, is raised. Finally, detail discuss about the project is carried out to setup the special object and content.Chapter Two: Firstly, introduces embedded operating system. Secondly, introduces the characters of μC/OS-II. Finally, discusses the following parts of μC/OS-II in detail, task management, task communication and memory management.Chapter Three: Mainly discusses how to set up hardware and software of the system, including hardware system, development environment, porting μC/OS-II and system test. The problems of bootrom, code-remap and code-copy are discussed in detail.Chapter Four: introduces the design of several extension modules for μC/OS-II. They are kernel extension, TCP/IP protocol stack, file system module and shell module. Details of design frames and key points are explained.Chapter Five: On the net application layer, tree modules are designed. They are WEB server, ftp client and MODBUS/TCP server. Key parts of protocols are explained. Frames of realization are discussed.Chapter Six: On the net application layer, tree modules are designed. They are WEB server, ftp client and MODBUS/TCP server. Key parts of protocols are explained and frames of realization are discussed.Chapter Seven: Summarizes the work of this article, discusses the achievements and shortages, and makes a future sight of further research.

Table of contents

First chapter 9-18 1.1 embedded systems development 9-14 1.1.1 embedded systems Profile 9-10 1.1.2 The embedded microprocessor development status 10-11 1.1.3 embedded operating system development 11-13 1.1.4 embedded systems in industrial control developments in the field 13-14 120 subjects research background and significance 14-16 1.2.1 subject proposed 14 1.2.2 goal of the research 14-15 1.2.3 research significance 15-16 1.3 topics of specific tasks and arrangements 16-18 <br / > analysis of the second chapter of embedded operating systems and μC/OS- Ⅱ 18-26 2.1 embedded operating system introduced 18-19 2.2 on μC/OS- Ⅱ embedded operating system 19-20 2.3 on μC/OS- II analysis 20-25 2.3.1 to on μC/OS- II Task Manager -22 2.3.2 on μC/OS- II of event management 22-24 2.3.3 to on μC/OS- II memory management 24 2.3. 4 μC/OS- Ⅱ search skills task 24-25 2.4 Summary 25-26 the construction and development of the third chapter of embedded systems underlying 26-42 3.1 software platform design ideas 26-27 3.1.1 RTOS-based embedded system framework 26 3.1.2 System Design specification 26-27 3.2 hardware platform 27-30 3.2.1 hardware platform of analysis and selection 27-28 3.2.2 of S3C4510B microcontroller 28 3.2.3 of S3C4510B architecture describes 28-30 3.3 development environment to establish 30-33 3.3.1 development tools introduced 30-31 3.3.2 VxWorks, Introduction 31-32 3.3.3 bootrom generation 32-33 3.4 initialization transplantation procedures and μC/OS- Ⅱ 33-38 3.4.1 initialization procedure 33-36 3.4.2 on μC/OS- Ⅱ transplantation 36-38 3.5 System Performance Testing 38-41 3.6 Summary 41-42 Chapter μC/OS- Ⅱ expansion module is designed 42-61 4.1 Overview 42 4.2 kernel extension 42-45 4.2.1 kernel process 42-43 <br / 4.2.2 The timer mechanism 43-44 4.2.3 Dynamic Memory Management 44-45 4.3 TCP / IP protocol stack to achieve 45-50 < br /> 4.3.1 TCP / IP protocol Introduction 45-46 4.3.2 Implementation of LwIP About 46-47 4.3.3 Implementation of LwIP transplantation 47 - 49 4.3.4 Implementation of LwIP use 49-50 4.4 file system design and realization of 50-55 4.4.1 file system design goals 50 4.4.2 file system management 50-52 4.4.3 sim_ext2 file format 52-55 4.5 shell design and achieve 55-58 4.5.1 the shell of the function 55 4.5.2 the shell realization 55-58 4.6 system overall research 58-60 4.7 Summary 60-61 the fifth chapter of the network application module design 61-73 5.1 embedded WEB server 61-66 5.1.1 Introduction of the HTTP protocol 61-63 5.1.2 Embedded WEB server design 63-64 5.1.3 dynamic web services achieve 64-66 5.2 FTP client program 66-68 5.2.1 of the FTP protocol Introduction 66-67 5.2.2 FTP client the client program to achieve 67-68 5.3 embedded MODBUS / TCP server 68-72 5.3.1 the MODBUS / TCP Profile 68-69 <br / 5.3.2 MODBUS / TCP protocol 69-71 5.3.3 MODBUS / TCP protocol to achieve 71-72 5.4 Chapter Summary 72-73 < br /> Chapter VI smart meter design 73-84 6.1 Intelligent Flowmeter 73-75 6.1.1 Intelligent Flowmeter Overview 73-74 6.1.2 Intelligent Flow meter measurement principle 74-75 6.1.3 Design requirements 75 6.2 Hardware circuit design 75-80 < br /> 6.2.1 hardware circuit framework 75-76 6.2.2 sensor signal acquisition 76-78 6.2.3 LCD display module to achieve 78 -79 6.2.4 I ~~ 2C module to achieve 79-80 6.3 software design 80-82 6.3.1 System Migration 80 - 81 6.3.2 flow calculation and display of 81 6.3.3 network functions to achieve 81-82 6.4 PC-side communications and control 82 -83 6.5 Summary 83-84 Chapter VII Summary and Outlook 84-86 7.1 summarize 84-85 7.2 Looking 85-86 References 86-90 Appendix 90-92 Master during the published 92-93 < br /> thank 93

Related dissertations

  1. μC/OS-Ⅱ-based Recording Player Software Design and Implementation
  2. The Design of an Wireless Image Transmission System Based on WIFI
    WangJing ·Xi'an Optics and Fine Mechanics ·2013 ·Master's thesis
  3. Microprocessor Protection Algorithm Based on HHT and Its Platform Development
  4. Study on Embedded Sleep Monitor and Alarm System
  5. Study on the Embedded Equipment Monitoring Platform Based on μC/OS-Ⅱ and LwIP
    LuXu ·Chongqing University ·2013 ·Master's thesis
  6. The Research and Design of Embedded Fresh Air Monitoring System Based on ARM
  7. Research and Development of Automatic Control System on Integrated Sub-packaging and Packaging Machine
    YangKai ·Huaqiao University ·2012 ·Master's thesis
  8. The Research of Time Synchronization System Based on IEEE1588
    ZouLei ·Nanjing Forestry University ·2012 ·Master's thesis
  9. The Reserch and Design of Network Protocol Module of the Intelligent Business Terminal
  10. The Research and Development of Web Server Based on Embeded System
    LiWei ·Nanjing Forestry University ·2008 ·Master's thesis
  11. Research and Implementation of Embedded Modbus/TCP Protocol
    ZhangYiNan ·Zhejiang University ·2008 ·Master's thesis
  12. Development of EDSL Modem Based on SOPC
    YuanMingJin ·Ocean University of China ·2007 ·Master's thesis
  13. Based embedded network protocol stack μC/OS- Ⅱ of research
  14. Application of Embedded Technology and CPLD Technology in the Design of LED Display
    ZhengJinKe ·Wuhan University of Technology ·2006 ·Master's thesis
  15. Study and Realization of the Ethernet Control System and Embeeded Intelligent Node
  16. Wireless Data Terminal Based on Embedded System
  17. Research of Embedded TCP/IP Protocol Stack Based on μC/OS-Ⅱ
    WangLi ·Wuhan University of Technology ·2006 ·Master's thesis
  18. Development of Power Parameters Measuring Instrument
  19. The Embedded System Hardware Platform Based on PROFIBUS-PA Protocol
    GaoZhenJiang ·Beijing Jiaotong University ·2009 ·Master's thesis
  20. The Research of Embedded Ethernet Technology
    KongQingRong ·Harbin Engineering University ·2008 ·Master's thesis