Font Size: a A A

Based Ucos_ii Smart Windows System Design

Posted on:2008-06-13Degree:MasterType:Thesis
Country:ChinaCandidate:Y Q HeFull Text:PDF
GTID:2208360242466407Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the improving of standard of living, the demand for inhabitancy quality is rising. Sine American build the first Intelligent Building in 1980s, the other country begin to following in succession. Now Intelligent Building is a earmark/symbol of modern building and a large number of corporations involved in intellectual building products appeared in china.Embedded System is the core technique for design of intelligent products. In abroad, special in American and Japanese, Embedded System development have reached a very high level. But domestic technology of Embedded System is not perfect. Most of the developed system developed by domestic companies adopt foreground/background system. The proportion of Intelligent Building products, which developed by transplanting operational system to CPU, is not large. Now the research of Embedded Operating System is the mainstream of system development. This dissertation achieved transplanting of real time operational system to CPU, and designed a muti-function Smart Window system.This system composed of motor driver module, key-press module, infrared receiver module, gas detection module, humidity measurement module, alarm, GSM (Global System For Mobile Communication) module and so on. Motor driver module supply energy for window's on and off; Key-press module sent key-press information/signal to CPU to control window's on and off; Infrared receiver module receive infrared remote control signal to control window's on and off; Gas detection module detect the concentration of gas ,when the is exceed the limited value it sent signal to CPU and then motor open the window; Humidity measurement module measure the humidity of air ,when it reach a setting value it sent signal to CPU and then motor open the window; alarm module is used to check if there is thief in house, if there is ,then sent a message to host by GSM module and close up window by motor module.CPU and operating system is key for achieving above functions. This system use AT89S51 Single-chip of ATMEL Company. 51 Single Chip System is most common CPU, which has advantages of cheaper and complete data. Real time operating system use UCOS_II which is an open- source operating system and have a good transplantation because of programmed by ANSI C. But UCOS_II can not transplant on AT89S51 Single-chip directly because that AT89S51 Single-chip only have a program memory of 4k and date memory of 128B which can not meet the desire of transplantation. To solve this problem, this system expands program memory and date memory to 64k and 32k.After transplanting the Real-time Operating System UCOS_II on AT89S51 Single-chip in development of system, we can divide the function of smart window to several small and single tasks, then to program for every task. This method simple the development of software, make the system easy to maintain, curtailed the development of software, strengthen the reliability of system. Compare to traditional foreground/background system, this system have a lot of advantages. Except function of sending short message, this system has achieved all the functions we needed and have a good operation.This smart window system has a good background of application. Excellent stability and function Extension are the advantages of this system; it can be a good reference for development and production of intellectual building products.
Keywords/Search Tags:Embedded System, real time operating system, foreground/background system, Smart Window
PDF Full Text Request
Related items