Remote Control System Based on μC/OS-Ⅱ

Author
MaZuo
Advisor
HuangDao
School
East China University of Science and Technology
Major
Control Science and Engineering
Classification
TP872 Remote control signal, the remote control and signaling systems
Degree
Master's thesis
Year
2011
Downloads
94
Citations
0

Request the full text

Abstract

In recent years, the embedded systems have been used widely in the control field.μC/OS-Ⅱis a famous open source operating system, but it has no network abilities. LwIP is an open source TCP/IP stack, its design emphasis is to use as little RAM as possible while can still support most functions of the TCP/IP stack. This feature makes LwIP stack work well in an embedded system. SoμC/OS-Ⅱand LwIP together can give the ability of network to the embedded systems whose resource is very limited. In most cases, the control programs designed forμOS-Ⅱhave to be compiled with the OS files, after downloaded into an embedded system, they are hard to change. If you need some complex control features, you have to design a big and comprehensive system, or download different programs according to needs.Firstly, this paper gives some study on the core module, task management module, synchronization and communication module, memory management module and the transplantation interface in theμC/OS-Ⅱ, after that, it discusses how to transplantμC/OS-Ⅱto ARM 9.Secondly, this paper studies the overall structure, memory management and the API in the LwIP.Thirdly, a driver of the DM9000 is designed for LwIP, and the operating system simulation layer in the LwIP is completed using the API provided byμC/OS-Ⅱ, after these, the LwIP can work onμC/OS-Ⅱ.Fourthly, a server in the embedded system and a client in PC are designed, the server and the client can communicate with each other using some special messages. The client can not only control the server to run programs received through net, but can also control and query the states of the running programs in the embedded system.Finally, some test operations are carried out to prove that the system can work well and the flexibility is enhanced significantly.

Table of contents

Abstract 5-6 Abstract 6-9 Chapter 1 Introduction 9-16 1.1 research background and significance 9 1.2 Research 9-14 1.2.1 Embedded Processor Research 9-10 1.2.2 Embedded Operating System Research 10-13 1.2.3 Embedded TCP / IP protocol stack Research 13-14 1.3 research content 14-15 1.4 Hardware Platform Overview 15 1.5 This paper is organized 15-16 Chapter 2 μC/OS- Ⅱ principle and transplantation 16-28 2.1 μC/OS- Ⅱ structural analysis 16-25 2.1.1 kernel 16-22 2.1.2 Task Manager 22 2.1.3 Tasks synchronization and communication 22-24 2.1.4 Memory Management 24-25 2.1.5 transplantation Interface 25 2.2 μC/OS- Ⅱ on ARM 9 Porting 25-27 2.3 Chapter Summary 27-28 Chapter 3 LwIP protocol stack principle and structure 28-36 3.1 LwIP protocol stack overall framework 28-29 3.2 LwIP protocol stack structure analysis 29-34 3.2.1 LwIP memory management 29-31 3.2.2 ARP achieve 31-32 3.2.3 IP implementation 32 3.2.4 UDP achieve 32-33 3.2.5 TCP implementation 33-34 3.2.6 protocol stack API implementation 34 3.3 Chapter Summary 34-36 Chapter 4 LwIP protocol stack transplant 36-47 4.1 LwIP operating system emulation layer to achieve 36-40 4.2 NIC driver design and the combination with LwIP 40-46 4.2.1 Design of the interface file 40-42 4.2.2 Driver Design and Implementation 42-46 4.3 Chapter Summary 46-47 Chapter 5 Control Module principle and implementation 47-60 5.1 communication message format 47-48 5.2 server program 48-58 5.2.1 relocatable ELF file format 48-50 5.2.2 relocatable ELF file statically linked 50-52 5.2.3 relocatable ELF file Dynamic Link 52-53 5.2.4 dynamic control structure of the program 53 5.2.5 Dynamic control program execution environment 53-55 5.2.6 transmission control message processing module 55-56 5.2.7 Status Inquiry message processing module 56-57 5.2.8 Operational Control message processing module 57-58 5.3 client 58-59 5.4 Summary 59-60 Chapter 6 test program design and implementation 60-66 6.1 μC/OS- Ⅱ transplantation test 60 6.2 LwIP network function test 60-62 6.3 remote control function test 62-65 6.4 Chapter Summary 65-66 Chapter 7 Summary and Outlook 66-68 7.1 Summary 66 7.2 Prospects 66-68 References 68-72 Thanks 72

Related dissertations

  1. The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
  2. The Design of an Wireless Image Transmission System Based on WIFI
    WangJing ·Xi'an Optics and Fine Mechanics ·2013 ·Master's thesis
  3. Design of Wireless Sensor Network System Based on Multi-sensor
    XuJiaDong ·University of North ·2014 ·Master's thesis
  4. A Large Parking Area Guidance System Based on STM32
  5. Research and Development of the Register Real-Time Monitoring System Based on F28M35x
  6. Embedded Web Monitoring System Based on ARM and μC/OS-Ⅱ
    LvYiHui ·Nanchang University ·2012 ·Master's thesis
  7. Automatic Testing System on the Calorific Value of Fuel Gas Based on ARM
  8. The Design of Energy Collector System Based on AT91RM9200
  9. RTU Design of Irrigation Information Collection System
  10. Design and Realization of the Cortex-M3Based Peirpherals Control System in On-board Video Server
    QiLiNa ·WRI ·2012 ·Master's thesis
  11. Design of Portable Flue Gas Analyzer Controller Based on ARM
    LiChao ·Xi'an Technological University ·2012 ·Master's thesis
  12. The Design of Chip Inductor Winding Machine Embedded Control System Based on ARM
    LingJiaWu ·South China University of Technology ·2012 ·Master's thesis
  13. Research and Implementation of Smart Valve Controller with High Cost Performance and Remote Network Control
  14. Design of Embedded Web Server Based on Cortex-M3
    CaiXiongFei ·Zhejiang University of Technology ·2013 ·Master's thesis
  15. Research and Realization of RTU Networking Based on LwIP Protocol Stack
    ChenChen ·Xi'an University of Petroleum ·2011 ·Master's thesis
  16. LwIP Transplantation and Application Research of Embedded WEB Based on Cortex-M3
    HuYiWan ·Nanchang University ·2013 ·Master's thesis
  17. Research and Application of Embedded System of Smart and Portable Automatic Weather Station
  18. The Research and Realization of the Embedded Home Gateway
  19. Research and Application of FPGA Remote Upgrade
    XiongJie ·Chongqing University ·2013 ·Master's thesis
  20. Research and Implementation of Embedded Modbus/TCP Protocol
    ZhangYiNan ·Zhejiang University ·2008 ·Master's thesis