Design and Implementation of Internet of Things for Home Environment
Total Page:16
File Type:pdf, Size:1020Kb
Copyright is owned by the Author of the thesis. Permission is given for a copy to be downloaded by an individual for the purpose of research and private study only. The thesis may not be reproduced elsewhere without the permission of the Author. Design and Implementation of Internet of Things for Home Environment A thesis presented in partial fulfilment of the requirements for the degree of Master of Engineering in Electronics and Computer Systems Engineering at Massey University, Manawatu, New Zealand. Sean Kelly 2013 Abstract An integrated framework for smart home monitoring towards internet of things based on ZigBee and 6LoWPAN wireless sensor networks is presented. The system was developed to retrofit existing sub systems of wireless technologies in order to reduce cost, and complexity. The practical internetworking architecture and the connection procedures for reliable measurement of smart sensors parameters and transmission of sensing data via internet are presented. A ZigBee based sensing system was designed and developed to see the feasibility of the system in home automation for contextual environmental monitoring. The ubiquitous sensing system is based on combination of pervasive distributed sensing units and an information system for data aggregation and analysis. Results related to the home automation parameters and execution of the system running continuously for long durations is encouraging. The prototype system (ZigBee based) was tested to generate real-time graphical information rather than using a simulator or a test bed scenario. A trail has also been performed with 6LoWPAN technology to provide functionality as the ZigBee based system. The overall internetworking architecture describes the integration of a low power consumption wireless sensor network with the internet. The proposed prototype has advantages in terms of low cost, flexibility of usage. The design of the integrated framework provides a template for other applications related to the Internet of Things. pg. i Acknowledgements I would like to thank my family for supporting me during my course of study. I would like to thank my supervisor Prof. Subhas Mukhopadhyay for his patience and support. I would like to thank Nagender Suryadevara for his technical help and support. pg. ii Abstract .................................................................................................................................................... i Acknowledgements ................................................................................................................................. ii List of Figures ....................................................................................................................................... viii List of Tables ......................................................................................................................................... xiii 1 Introduction .................................................................................................................................... 1 1.1 Outline of Thesis ..................................................................................................................... 1 2 Literature Review ............................................................................................................................ 3 2.1 Wireless Sensor Networks integrated with Internet of Things ............................................... 3 2.2 Existing Internet of Things Systems ......................................................................................... 4 2.3 Home Automation through Internet of Things ....................................................................... 5 2.3.1 Existing Wireless Technologies used for Home Automation ........................................... 6 2.3.2 Existing Wireless Sensor Network Architectures for Home Automation ........................ 6 3 Contribution to the topic .............................................................................................................. 11 4 System Structure ........................................................................................................................... 12 4.1 Introduction .......................................................................................................................... 12 4.1.1 Integrated Platform for IoT ........................................................................................... 13 4.2 Smart sensors requirements ................................................................................................. 13 4.2.1 Signal conditioning ........................................................................................................ 14 4.2.2 Signal Input and Output Processing .............................................................................. 15 4.2.3 Network communication .............................................................................................. 15 4.3 XBee Structure ...................................................................................................................... 16 4.3.1 XBee Stack Specifications .............................................................................................. 16 4.3.2 XBee Topologies ............................................................................................................ 17 4.3.3 XBee Hardware Specification ........................................................................................ 18 4.3.4 IoT adaptation ............................................................................................................... 19 4.4 6LoWPAN Structure............................................................................................................... 19 4.4.1 6LoWPAN Stack Requirements ...................................................................................... 20 4.4.2 6LoWPAN Topologies .................................................................................................... 21 pg. iii 4.4.3 6LoWPAN Hardware Specifications ............................................................................... 21 4.4.4 6LoWPAN Hardware Options ........................................................................................ 22 4.5 IoT Gateway .......................................................................................................................... 22 4.5.1 Gateway Hardware ........................................................................................................ 22 4.5.2 WSN Interface ............................................................................................................... 23 4.5.3 IoT communication ....................................................................................................... 23 4.6 IoT Server .............................................................................................................................. 23 4.6.1 Minimum requirements ................................................................................................ 24 4.6.2 Network connectivity .................................................................................................... 24 4.6.3 Data Reception, Storage and Web server ..................................................................... 24 4.7 Summary ............................................................................................................................... 24 5 Implementation ............................................................................................................................ 26 5.1 Software Development Environment .................................................................................... 26 5.1.1 Code Composer Studio Setup – 6LoWPAN Module ...................................................... 26 5.1.1.1 Obtaining and installing Code Composer Studio ...................................................... 26 5.1.1.2 Project creation for CC430 ........................................................................................ 26 5.1.1.3 Debugging a CC430 Project ....................................................................................... 28 5.1.2 OpenWRT Toolchain with Eclipse IDE ........................................................................... 31 5.1.2.1 Windows OpenWRT Toolchain Setup ........................................................................ 32 5.1.2.1.1 Cygwin Installation .............................................................................................. 32 5.1.2.1.2 Windows configuration ....................................................................................... 34 5.1.2.1.3 OpenWRT tool chain compilation ....................................................................... 36 5.1.2.2 Eclipse ....................................................................................................................... 38 5.1.2.2.1 Required directories from the OpenWRT toolchain ........................................... 38 5.1.2.2.2 Eclipse Setup for Windows/Linux ........................................................................ 38 5.1.2.2.3 Eclipse Project Creation ...................................................................................... 39 5.1.2.2.4 Eclipse Remote Debugging .................................................................................. 42 5.1.3 Visual Studio Setup ......................................................................................................