The Key Technology Research on Smart Home System Based on ZigBee Wireless Network

Author
HanShuangShuang
Advisor
ChenWanZhong
School
Jilin University
Major
Signal and Information Processing
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2009
Downloads
770
Citations
7

Request the full text

Abstract

Smart home refers to the combination of the subsystems related to household livelihood using advanced computer technology、network communication technology and integrated wiring technology.Through the overall management, home life will be more comfortable and convenient. Generally,smart home system can be divided into three parts:external network、gateway and internal network.The subject of this article came from project of Jilin Provincial Science and Technology Department and named "Research on key technology of network digital home(20060531)". We introduced advanced embedded Ethernet technology and ZigBee technology to build up a smart home system based on ZigBee wireless network, deeply studied on some key technologies such as wireless networking for household appliances、embedded gateway and local and remote control. The smart home system could meet the basic need of users, within the family, users could change the state of electric appliances by the infrared remote controller;in the remote user center,the user could observe and control status of household appliances.The system mainly included ZigBee wireless network,terminal control unit,gateway(module of Ethernet--serial interface)and remote user center. Among it, ZigBee wireless network was made up of a network coordinator and eight terminal nodes(including wall light, ceiling light,table lamp, television,curtains, air condition,acoustics and pendant lamp of adjustable brightness).ZigBee wireless network constituted home internal network using mesh network,the switch status information of home internal electric appliances and the lighting brightness information of sitting room pendant lamp could be transmitted in the network freely. ZigBee was set up based on the IEEE802.15.4 standard,with some characteristics of small system spending, large network capacity, high scalability and easy to transplant,and so on.ZigBee chip used by system was CC2430,which was produced by Texas Instruments, CC2430 integrated ZigBee radio frequency (RF)front end,memory and microcontroller in a single chip, it would be able to send and receive signals combined with a few external components.Terminal control unit mainly responded to infrared control command and remote user center control command. Infrared remote controller chip was SAA3010T type, the processor of terminal control unit used AT89S51 microcontroller, integrated infrared receiver connected with P3.3 port of MCU (INT1), CC2430 connected with AT89S51 through the serial port. AT89S51 controlled the switch status of home appliances and the lighting brightness according to the received information.Gateway (module of Ethernet--serial interface) was a network connection device which connected home internal network with external network, and made internal network access to external network.Gateway connected internal network by serial interface of the network coordinator, connected external Ethernet through RJ-45 interface, mainly achieved data conversion between Ethernet and serial interface, completed communication between Ethernet and home internal network. Gateway in the system used a 16 bit MCU--MC9S12NE64 as processor which was made in Freescare company, MC9S12NE64 could match TCP/IP protocol stack, and provided RS232 interface, also could achieve data conversion and transmission between Ethernet and serial interface, directly supplied efficient support for specific applications.The implementation of system’s communication protocol was key importance to data transmission.The interior of gateway needed to embed TCP/IP protocol to meet that system could connect with Internet; home internal network was ZigBee protocol based on IEEE802.15.4; In addition, in order to enable data transmission security,reliability,bit error rate and retransmission rate lower, we also needed to constitute user’s protocol.OpenTCP faced to embedded system, was an open source rightsizing TCP/IP protocol stack. Gateway mainly provided bidirectional data transmission,TFTP、HTTP and other application layer protocol in OpenTCP was not necessary,this paper removed all the application layer protocol, leaving only TCP,IP,ICMP and ARP key protocol, application layer directly faced to user program, the cost of system greatly decreased. ZigBee is a wireless communication protocol which is established based on IEEE802.15.4 standard, using hierarchy structure, the key part of ZigBee protocol stack is network layer, the main responsibility of network layer includes providing mechanism of devices leaving and joining the network, also providing route and security mechanism of data frame transmission. The network layer of ZigBee coordinator is responsible for starting a new network, the formation of network included a number of steps, such as network address distribution, setting up new network, allowing devices to join network, devices joining network, devices quiting network and sending and receiving data,and so on.The user’s protocol frame was composed of frame header, data and end of frame, it could be divided into uplink frame and downlink frame according to the functions of frame.Uplink frame mainly transmitted the number of electric appliances and status data of electric appliances or brightness data of lighting,downlink frame mainly transmitted the number of electric appliances and command words.Remote user center achieved the interaction between system and user,which existed in a remote computer in the form of visual interface service program, remote user center received and send IP packets of TCP protocol to accomplish Ethernet communication, thus to achieve controlling household appliances.The main designing language of remote user center used Visual Basic programming language, according to the functional requirements for users, the interface included network communication module, remote control module, remote calling module, graphic display module and other module,and so on, the remote control module could be divided into switch control of terminal electric appliances and brightness control of lighting.In this paper, the application scheme of a smart home system based on ZigBee wireless network was proposed, achieving controlling various of status of household appliances through two access mode, respectively,the home local place and remote. The system introduced ZigBee technology of communication reliability and easy expansion, completing wireless networking communication of household appliances; introduced Ethernet solution scheme of single chip MC9S12NE64 terminal node which was low cost,low consumption,coupled with the extended RS232 interface, it was more suitable upgrading and regeneration of similar systems;infrared technology and remote control were applied in domestic life at the same time, providing users with a more convenient way of life,achieving the real low cost home networking, intelligent management. The development of smart home will not only bring easeful and comfortable life, but also promote the development of social high-new science and technology.

Table of contents

Summary 4-8 Chapter 1 Introduction 8-12 1.1 Introduction 8 1.2 subject background and significance 8-9 1.3 at home and abroad of the status quo and development 9-10 1.3.1 foreign status quo 9-10 1.3.2 Status in China 10 1.4 thesis research 10-12 Chapter 2, System Design 12-18 2.1 system features an overview of 12-13 2.2 communication protocol selection 13-16 2.3 overall implementation 16-17 2.4 Summary 17-18 Chapter 3 system hardware design 18-28 3.1 ZigBee wireless network 18-21 3.1.1 the CC2430 MCU and memory subsystems 18-19 3.1.2 CC2430 RF and analog transceiver 19-21 3.2 terminal control unit hardware design 21-23 3.2.1 terminal electrical switching control unit 21 3.2.2 Lighting control unit hardware design 21-23 3.3 embedded gateway hardware design 23-27 3.3.1 MC9S12NE64 introduced 23-24 3.3.2 Gateway Interface design 24-27 3.4 remote users center 27 3.5 Summary 27-28 Chapter 4 Systems Communication Protocol 28-44 4.1 OpenTCP Agreement and crop transplant 28-32 4.1.1 OpenTCP agreement 28-29 4.1.2 OpenTCP of is the reduction and transplantation 29-32 4.2 ZigBee protocol stack to achieve 32-42 4.2.1 ZigBee protocol stack Overview 32- 4.2.2 IEEE802.15.4 introduced 32-34 4.2.3 ZigBee network layer 34-41 4.2.4 ZigBee application layer 41-42 4.3 user protocol implementation 42-43 4.4 Summary 43-44 Chapter 5 System Software Design 44-54 5.1 terminal control unit software design 44-46 5.1.1 infrared remote control decoding part 44-45 5.1.2 electrical terminal control section 45-46 5.2 embedded gateway software design 46-49 5.2.1 MC9S12NE64 programming 46 5.2.2 Ethernet driver design 46-49 5.3 remote users center software design 49-53 the 5.3.1 networks is communication module 50-51 5.3.2 remote control module 51 5.3.3 Remote Call Module 51-52 5.3.4 graphical display module 52 5.3.5 other modules 52-53 5.4 Summary 53-54 Chapter 6, system testing and installation 54-64 6.1 system testing 54-61 6.1.1 System infrared remote test 54 6.1.2 system of wireless network testing 54-56 6.1.3 gateway function test 56-59 6.1.4 remote-user center test 59-61 6.2 system installation 61-63 6.2.1 System hardware installation 61-62 6.2.2 system software installation 62-63 6.3 Summary 63-64 Chapter 7 Summary and outlook 64-66 7.1 full-text summary 64-65 7.2 Development and Prospect of 65-66 References 66-69 during the research work for Master 69-70 thank 70-71 tutor and author 71-72 Summary 72-74 Abstract 74-77

Related dissertations

  1. Design of Smart Home System Based on Ethernet and ZigBee
    XuWan ·Taiyuan University of Technology ·2012 ·Master's thesis
  2. The Design of Smart Home Based on Zigbee and Ethernet
    LiuGuang ·Dalian University of Technology ·2012 ·Master's thesis
  3. Research on Smart Home System Based on Zigbee
  4. The Embedded Smart Home System Based on QT and GSM
    WuTong ·Hebei University of Technology ·2012 ·Master's thesis
  5. Embedded System Applications in the Smart Home
    MingHang ·Hubei University ·2013 ·Master's thesis
  6. The Research on Service Algorithm Based on User Behaviors in the Smart Home
    LiuHao ·Hunan University ·2013 ·Master's thesis
  7. The Research and Design of Smart Home System Terminal Controller Based on ZigBee
    CheXiLong ·Chang'an University ·2013 ·Master's thesis
  8. Design and Implementation of the Smart Home System
  9. Design and Implementation of Internet of Things Prototype System for Smart Home
  10. Research and Design of Smart Home System Based on ZigBee Technology and Face Recognition
    ZhouXianEn ·Donghua Polytechnic University ·2013 ·Master's thesis
  11. Design and Implementation of Smart Home System Based on Internet of Things
  12. The Design of Smart Home Based on Zigbee
    OuYangWuLin ·Zhejiang University of Technology ·2013 ·Master's thesis
  13. Communication of DC Micro_Grid and It's Energy Management System
    ShenChuZuo ·Yangzhou University ·2013 ·Master's thesis
  14. Design and Implementation of Infrared Transponder in Smart Home Based on ZigBee
    YuanMengJue ·Chang'an University ·2013 ·Master's thesis
  15. Information Security Research of Smart Home Safeguard System Based on ZigBee
  16. Design of Coal Mine Safety Monitoring System Based on Internet of Things
    LiMaoDong ·Taiyuan University of Technology ·2013 ·Master's thesis
  17. A Design and Implementation of Smart Home System and the Coordinator Node
  18. The Design of Modular Smart Home Control System Based on ARM9
    CheXiaoWei ·Southwest Jiaotong University ·2013 ·Master's thesis
  19. Design and Implementation of Smart Home System Based on ARM
    YanHaiYang ·Harbin Institute of Technology ·2013 ·Master's thesis
  20. Research and Design of Smart Home Gateway Based on Embedded Technology
    LiLingLing ·West China University ·2013 ·Master's thesis