A Solution for Home Security a Thesis Submitted In

Total Page:16

File Type:pdf, Size:1020Kb

A Solution for Home Security a Thesis Submitted In CALIFORNIA STATE UNIVERSITY, NORTHRIDGE Embedded System: A Solution for Home Security A thesis submitted in partial fulfillment of the requirements For the degree of Master of Science in Computer Science By Roland Lee Hern December 2013 The graduate thesis of Roland Lee Hern is approved: ______________________________________ _________________ Professor R. Covington Date ______________________________________ _________________ Professor J. Noga Date ______________________________________ _________________ Professor J. Wiegley (Chair) Date California State University, Northridge. ii Acknowledgements I would like to acknowledge my first programming teacher, Ron Miller for the logic and the fundamentals of computer programming that I still utilize today. I am forever grateful to you, Kiddo. I wish to thank my chair, Professor Wiegley for your support and guidance. I also wish to thank my committee members, Professor Noga, and Professor Covington for your patience and contributions to my education. They have always been greatly appreciated. Thank you to Dr. Melissa Midzor for opportunity and encouragement that know no limits. Thank you to my mother-in-law, Claire, for your support and encouragement. Thank you to my father, Ben. Your support made this possible. Finally and most importantly, I wish to thank my wife, Deb. I have accomplished a difficult goal but I did not accomplish it alone. Sharing a brain, love, sense of humor, and life with you made this possible. iii Table of Contents Signature page ..................................................................................................................... ii Acknowledgements ............................................................................................................ iii List of Figures ..................................................................................................................... v Abstract .............................................................................................................................. vi Introduction ......................................................................................................................... 1 Communication Technologies ............................................................................................ 3 X10 / INSTEON .............................................................................................................. 3 Z-Wave .......................................................................................................................... 10 ZigBee / XBee ............................................................................................................... 14 Hardware ........................................................................................................................... 17 iDigi® Gateway Development Kit ................................................................................ 17 ConnectPort X4 ......................................................................................................... 17 XBee Smart Plug ....................................................................................................... 18 XBee Light/Temperature Sensor ............................................................................... 18 Embedded System ......................................................................................................... 21 Rabbit® MiniCore® RCM6700 ................................................................................ 21 External Hardware ..................................................................................................... 24 Cloud Environments ......................................................................................................... 27 iDigi® Device Cloud ..................................................................................................... 27 Google Appspot.com Cloud .......................................................................................... 33 Rabbit Security System ..................................................................................................... 36 Conclusion ........................................................................................................................ 39 References ......................................................................................................................... 40 Appendix A – Rabbit Security Controller Code ............................................................... 42 Appendix B – ConnectPort X4 Update Code ................................................................... 56 Appendix C – ConnectPort X4 Configuration File........................................................... 63 Appendix D – Google Appspot Tutorial Code ................................................................. 65 iv List of Figures Figure 1 – System Architecture .......................................................................................... 2 Figure 2 – AC Transmit Timing [4] .................................................................................... 6 Figure 3 – Two-phase Home INSTEON Installation [4] .................................................... 8 Figure 4 – Z-Wave ZM5304 Serial Interface Module with Antenna ............................... 12 Figure 5 – Z-Wave protocol stack [6] ............................................................................... 13 Figure 6 – Z-Wave protocol frame structure [6] ............................................................... 13 Figure 7 – Outline of the ZigBee Stack Architecture [7].................................................. 15 Figure 8 – ZigBee General Application Frame Format [7] .............................................. 16 Figure 9 – ConnectPort X4 ............................................................................................... 17 Figure 10 – XBee Sensor and Smart Plug ........................................................................ 18 Figure 11 – Sample “idigi_dia.html” Local Website ........................................................ 20 Figure 12 – Rabbit MiniCore RCM6700 .......................................................................... 21 Figure 13 – Assembled Rabbit with IO board attached .................................................... 22 Figure 14 – iDigi Device Cloud – iDigi Manager Pro ...................................................... 27 Figure 15 – iDigi Device Cloud – XBee Networked Devices .......................................... 28 Figure 16 – iDigi Device Cloud – Add Device Alarms .................................................... 28 Figure 17 – API Explorer .................................................................................................. 29 Figure 18 – Sample iDigi Development Kit Website ....................................................... 33 Figure 19 – Sample Google Chart's .................................................................................. 34 Figure 20 – Google App Engine Launcher ....................................................................... 35 Figure 21 – Rabbit remotely responding to iDigi Cloud commands ................................ 36 Figure 22 – Rabbit responding to local commands .......................................................... 38 v Abstract Embedded System: A Solution for Home Security By Roland Lee Hern Master of Science in Computer Science The objective of this thesis is to present the reader with the latest advances in home automation technologies with an emphasis on security. The X10/INSTEON, Z- Wave and ZigBee/XBee technologies are examined for their usefulness in constructing a subscription based residential security system. The central control unit of this security system is an iDigi Rabbit RCM6700 embedded system. The application running on the Rabbit demonstrates this embedded system’s ability to monitor and control attached devices. The Rabbit application also communicates with another application running on Google’s Appspot.com cloud environment through the iDigi’s device cloud environment to provide the user with system interactivity and system status. vi Chapter 1 Introduction Home automation is the introduction of technology to make a living environment more convenient. The brain of the system is the central control unit that is programmed to monitor and control devices around the home. As the home automation industry has grown, so have the number of devices that can be controlled. Light fixtures, television and audio systems, major appliances, thermostats, cameras, motion sensors, door sensors and many more devices can be purchased with the goal of incorporating them into a home automation system. These devices can be adjusted, turned on/off by the system, or programmatically controlled when other events occur. The user can make changes to these devices using either an application running on a smartphone, a touchpad mounted on the wall, or a website that can be accessed anywhere in the world. These remote controls allow the user to interact with the system to gain system status or make changes to it. Until the 1990s, the idea of home automation was the stuff of science fiction, but as the price of microprocessors has decreased, and the availability of wireless technology devices has increased, that dream has become a reality in many homes. Currently 1.7 million homes have an automation system installed, so the market has room for growth. According to a poll of online users interested in home automation, 62% of
Recommended publications
  • Internet of Things Network Study
    Internet of Things Network Study By Masters in Embedded and Cyber-Physical Systems Research Advisor Dan Cregg Team members Ta-Yu Chiu Neha Sadhvi Yidi Fan Ricky Yang Contents 1.Thesis Statement 3 2. Introduction 3 3. Objectives 3 4. Equipment and Devices 3 5. Network Protocols in Study 4 6. Testing Environment 6 7. Number of devices under Test 6 8. Network Layer Frequency 6 9. Physical Layer Frequency 6 10. Test Setup 7 11. Results 8 12. Constraints 13 13. Conclusion 14 14. References 14 15. Acknowledgements 15 16. Contacts 15 1.Thesis Statement As the use of smart embedded devices grows in our daily life, current networking technologies are expected to be strained beyond their original intent. Consumers face unacceptable performance as nodes are increased and network bandwidth is consumed in physically constraining environments. Various network types and use cases, thus, are explored to determine current failure points in common IoT home smart devices. 2. Introduction At the time of this report, there has been an unprecedented uptake in the use of ‘smart’ devices in the home. The introduction of voice recognition platforms such as Google Home and Amazon Alexa has fueled the use of small, inexpensive, connected sensing and control devices. Controls for Heating and Air Conditioning have been popular, as well as various sensors for doors, windows, etc.. Perhaps the most pervasive has been the acceptance of these types of systems for lighting control. Due to the sheer number of nodes available in a home, lighting nodes to be controlled is very large. This research will focus on various types of network technologies with the goal of physically simulating small to large sets of devices to determine acceptable response time.
    [Show full text]
  • Required Submission Information for Each Award
    I. Market Overview The network system protocols market closely follows the trends in home and building automation markets. Home and building controls can effectively be performed through wireless and powerline platforms. In addition, several manufacturers produce systems based on proprietary protocols. Any changes in the home or building automations markets have a direct impact on the market demand for these platforms. The residential segment forms a major portion of the application for these platforms, driven by a growing awareness about the benefits rendered through home automation. In 2005, revenues for the North American home automation market were estimated at $1,268.9 million and the market is expected to witness steady growth in the future. As a result of this, the protocols market is also experiencing healthy growth. Another crucial trend in this industry is the developing shift from proprietary platforms to open ones, which offers interoperability and more flexibility to end- users. The industry is also witnessed an increasing interest in wireless solutions, which in turn has driven the markets for radio frequency (RF) platforms. Although wireless solutions have been able to make some headway in the home automation market, some critics remain unconvinced of their effectiveness in terms of reliability. On the other hand, powerline communication offers more reliability and an extended reach. Hence, there is a need for simple and affordable protocol that can offer the benefits of both RF and powerline platforms. Moreover, the use of this open platform is likely to enable end-users to choose from a range of products, which is not feasible when using native or proprietary platforms.
    [Show full text]
  • Zigbee, Bluetooth LE, Enocean, Wavenis, Insteon and UWB *Ms
    Proc. of the Intl. Conf. on Recent Trends In Computing and Communication Engineering -- RTCCE 2013 Copyright © Institute of Research Engineers and Doctors. All rights reserved. ISBN: 978-981-07-6184-4 doi:10.3850/ 978-981-07-6184-4_60 A Comparative Study of Wireless Technologies: Zigbee, Bluetooth LE, Enocean, Wavenis, Insteon and UWB *Ms. Harneet kaur, #Ms. Sukesha Sharma Abstract-The major design challenge of home automation is to powered and battery less with low power radio frequency choose best standard for controlling devices in existing home (RF). Radio frequency having a biggest advantage over environments without any changes in infrastructure. In recent infrared (IR) that new devices can easily be added or removed years Zigbee was the promising technology for home from the network. Individual devices forming a network and automation. But, nowadays there are some other standards all are working together in harmony. After forming a network which give their best for controlling home devices. This paper presents an overview of different wireless communication there are certain events that takes place like manual events, standards by comparing their main features in terms of various timed events and triggered events. All devices are connected metrics such as range, frequency band, maximum node count, to common network and controlled by a central regulation security, and cost. and control unit. There are three types of controls systems such as: -Individually control system: Only one appliance or function Keywords: Wireless technologies, Bluetooth LE, Zigbee, is controlled in these systems. For example a remote control Enocean, Insteon, Wavenis, UWB. unit. -Distributed control systems: Controller elements are not in Introduction central location in these systems, they are distributed In today’s life because of huge amount of standards available throughout the network and controlled by one or more in the market choosing the best one is the biggest challenge.
    [Show full text]
  • Home Control Assistant Version 12 Appendixes
    Home Control Assistant Version 12 Appendixes WWW.HCATech.com The information contained in this document is subject to change without notice. Advanced Quonset Technology, Inc. provides this information “as is” without warranty of any kind, either expressed or implied, but not limited to the implied warranty of mechantability and fitness for a particular purpose. Advanced Quonset Technology, Inc. may improve or change the product at any time without further notice; this document does not represent a commitment on the part of Advanced Quonset Technology, Inc. The software described in this document is furnished under a license agreement or nondisclosure agreement. The software may be used or copied only in accordance with the terms of the licensing agreement. Windows is a registered trademark, and Windows NT is a trademark of Microsoft Corporation. All other product names and services identified in this document are trademarks or registered trademarks of their respective companies and are used throughout this document in editorial fashion only and for the benefit of such companies. No such uses, or the use of any trade name, is intended to convey an endorsement or other affiliation with Advanced Quonset Technology, Inc. © 2001-2013 Advanced Quonset Technology, Inc. All rights reserved. Printed in the U.S.A. November 15, 2013 Appendix 1 HCA versions and Interface Support..........................................................................................................1 Appendix 2 CM11 / CM15 ............................................................................................................................................3
    [Show full text]
  • Spec Sheet Universal Devices ISY994
    ISY994 Series Gateways Energy Management and Building Automation System Main Features • Autonomous & self contained - no connection to cloud services necessary • Securely accessible from any mobile or desktop browser using TLS, with full support for x509 certificates. • Certified OpenADR 2.0a & 2.0b VEN • Meets applicable requirements of Dept. of Homeland Security: SCADA 1.8 • Available with ZigBee, Z-Wave, and INSTEON wireless protocols • Uses off-the-shelf sensors and devices • Extensible with software modules for weather, network resources, security interfaces, and more. • Fully upgradeable without site visits • Open and robust application programming interface (API) Description Available in a variety of low cost configurations, the ISY994 Series energy management and automation controller provide power and flexibility perfect for middle market, small, and medium business needs. Using open standards, the ISY994 provides building owners, contractors, and project leads the flexibility to automate a variety of every day tasks. Capable of communicating with a wide variety of off-the- shelf devices such as thermostats, lighting, IoT devices, and loads using ZigBee, Z-Wave, or Insteon, in addition to IP and direct contacts. The ISY994 series can read energy consumption from individual devices using Z-Wave, ZigBee, and AMI smart meters and report the data using OpenADR by simply dragging and dropping devices into the reporting group. Unlike other solutions that use “the cloud” to process and store events, the ISY994 allows users to keep their information private by processing events, states, and triggers with the ISY and behind the firewall, and yet accessible from a variety of devices. Ordering Information Not relying solely on cloud services means your building is fully under your control during ISY|994|i|Zw|IR|PRO service outages, and shields you from the perils of stranded assets if cloud providers can no longer Module: PRO – Professional Series support customers in the future.
    [Show full text]
  • Serialinc 2410S
    SeriaLinc ® INSTEON to 2-Way RS-232 Serial Converter Model : 2410S SeriaLinc Owner’s Manual TABLE OF CONTENTS ABOUT SERIALINC ..................................................................................................................................... 3 Key SeriaLinc Features ............................................................................................................................. 3 What is Included with SeriaLinc ................................................................................................................ 3 System Requirements ............................................................................................................................... 3 WHAT IS INSTEON? .................................................................................................................................... 4 INSTALLATION ............................................................................................................................................ 4 Preparing to Install SeriaLinc..................................................................................................................... 4 Creating a CSV File ................................................................................................................................... 5 Installing SeriaLinc .................................................................................................................................... 6 ADVANCED FEATURES ............................................................................................................................
    [Show full text]
  • Wireless Home Automation Networks: a Survey of Architectures and Technologies
    Wireless Home Automation Networks: A Survey of Architectures and Technologies Carles Gomez and Josep Paradells Presented by Deepen Solanki and Aishwarya Rao Table of Contents 1. Introduction to WHANs 2. Solutions for WHANs a. ZIGBEE b. Z - WAVE c. WAVENIS d. INSTEON e. IP BASED 3. Discussion 4. Conclusion INTRODUCTION - WHANs WHAN Connectivity Monitoring Control Sensors Actuators ● Remote Control of Devices - Appliances ● Remote Care - wearables, fall detection ● Smart Energy Monitoring - HVAC, usage patterns ● Security Systems - burglar alarm, smoke detection INTRODUCTION - WHANs Characteristics ● High node density - (100s) ● Multipath environment - multiple reflective surfaces ● Interference - Bluetooth devices, microwave ovens ● Multihop communications - combating range ● Self-healing network - mobile devices ● Various traffic patterns - P2P, P2MP, MP2P ● Quick results - emergency situations ● Internet connectivity - Remote monitoring ● Highly constrained nodes - memory, processing power SOLUTIONS FOR WHANs ● ZigBee ● Z-Wave ● INSTEON ● Wavenis ● IP Based Solutions ZIGBEE (2004) ● Low Data Rate - 20, 40, 250kbps ● Short Range - 10 to 100m ● Bands - 868MHz / 915MHZ / 2.4GHz ● DSSS ● Device types Coordinator End device Router Beacon ● Channel access ● Profiles Beaconless ● Tree, Mesh ZigBee Home Automation Public Application Profile ZigBee Smart Energy Profile Z-WAVE (1999) ● Reliable transmission of short messages from a control unit to one or more nodes in the network ● 868.42 MHz in Europe, 908.42 MHz in US, 2.4GHz* ● Low data rate
    [Show full text]
  • Eadl 101 Part 2
    Mobile Device Based EADL • Cellphone / tablet is center of user interface • Typically require Wi-Fi / internet access • Apple, Google, and Microsoft Oh My! Mobile Device Based EADL • Not going to discuss mounting here, but it is an important piece of the puzzle. Mobile Device Based EADL • Pros – Cost efficient and aesthetically appealing – Natural language voice recognition – Modern home automation tech • Cons – Scanning is limited – Voice activation not always fully featured – No control over updates – Higher cognitive load Material Cost Comparison Traditional System Mobile Device System • Possum Primo!, $2900 • Client Owns Mobile Device • Switch, $125 • Switch, $125 • Sero! landline telephone, • iPad Switch Interface, $400 $1400 • SmartThings Hub, $150 • Three led bulbs, $90 • Harmony Hub, $100 • Insteon/IR Converter, $100 • Three led bulbs, $90 • Total Parts: $4615 • Total Parts: $865 IR Control – TV/Cable/DVD • Is you device IR? • Some cable systems not using IR • App or computer control IR Control • Some Android devices have IR blaster built in. IR Control Hubs • Logitech Harmony – Hub connects via WiFi – App and physical remote – Can integrate other home automation – Learning IR and Macros – Voice control via Echo – Add on extender for home automation features IR Control Hubs • Anymote – App Control – iOS and Android – Voice control built into app – Learning IR and Macros – Switch Control in iOS not great (Gliding Cursor) – Button Location Easily Customized – Recently discontinued hardware L – Can use third party IR Sender Content
    [Show full text]
  • A Survey on Smart Home Networking
    A Survey on Smart Home Networking Jin Cheng and Thomas Kunz Department of Systems and Computer Engineering Carleton University Ottawa, Ont., Canada Carleton University, Systems and Computer Engineering, Technical Report SCE-09-10, September 2009 TABLE OF CONTENTS I. Introduction ..................................................................................................................... 4 II. Home appliances control in smart homes ...................................................................... 6 2.1 Generation and storage of renewable energy sources............................................. 6 2.2 Categories of energy usage in residences ............................................................... 9 2.3 Redefinition of the operation mode in a smart home............................................ 10 2.4 Basic configuration and context control of a home control system...................... 13 2.5 Technology independent requirements of utilities in a smart home..................... 15 2.5.1 The framework of Home Area Network.............................................................. 15 2.5.2 The guiding principles targeted for Home Area Network ................................... 16 2.5.3 Functional requirements in Home Area Network................................................ 17 III. Networking patterns and technology for home energy control .................................. 20 3.1 Subdivision of network functionality...................................................................... 20 3.2 Considerations of
    [Show full text]
  • Lighting Control White Paper
    Lighting Control White Paper A Brief Technology Overview of the Lighting Control Marketplace X-10, Insteon, Z-Wave, ZigBee, RadioRA2, Universal Powerline Bus (UPB) Fuchsia Research Corporation August 2014 Introduction When considering lighting control and home automation, there are many options in the marketplace, to include selection of a supplier, technology, company’s breadth of product line, ease of use, ease of installation, and service and support. Doing a Google search for ‘home automation’ or ‘lighting control’ can many times lead to confusion, resulting in head scratching ‘chaos’, given the information provided blogs, trade publications, hobbyists, and DIYers, many times provides incomplete and sometimes incorrect information. If you have a multi-million dollar primary or vacation home, working with a high-end/cost architect, have a $50,000-$100,000+ budget for home automation and/or lighting control, this White Paper is probably not for you. This White Paper is for the rest of us, objective, to provide a general overview of the market, technologies, and assist in your selection of a home automation lighting control solution to best meet your needs – and budget. X-10 X-10 was developed in 1975 by Pico Electronics of Glenrothes, Scotland. It uses primarily power line wiring for signaling and control, the signals involve radio frequency bursts representing digital information. X-10 has led the way using powerline communication over the past 40 years and could easily be considered the father of home automation. Some thoughts considering X-10. Select X-10 if you have a very limited budget, no more than $10-$15 per device.
    [Show full text]
  • INSTEON Developer's Guide
    D e v e l o p e r ’ s G u i d e October 14, 2005 © 2005 Smarthome Technology Developer’s Guide Page i Contents at a Glance INTRODUCTION............................................................................................ 1 INSTEON BASICS ......................................................................................... 3 Getting Started Quickly ............................................................................. 4 About This Developer’s Guide.................................................................... 5 INSTEON Overview.................................................................................. 11 INSTEON Application Development Overview.......................................... 23 INSTEON REFERENCE ................................................................................. 30 INSTEON Messages ................................................................................. 31 INSTEON Signaling Details ...................................................................... 46 INSTEON Network Usage......................................................................... 59 INSTEON BIOS (IBIOS) ........................................................................... 90 SALad Language Documentation ........................................................... 132 Smarthome Device Manager Reference ................................................. 209 INSTEON Hardware Development Documentation................................. 229 CONCLUSION...........................................................................................
    [Show full text]
  • INSTEON Compared with X10
    C o m p a r e d January 2, 2006 © 2006 SmartLabs Technology C o m p a r e d Page i Table of Contents Introduction.......................................................................................................... 1 INSTEON Overview ............................................................................................... 3 Hallmarks of INSTEON ................................................................................... 4 How INSTEON Works ..................................................................................... 5 INSTEON Is a Dual Mesh Network............................................................... 5 INSTEON Simulcasts Repeated Messages..................................................... 7 INSTEON Is a Peer-to-Peer Network............................................................ 8 INSTEON Facilitates Product Development ................................................... 9 INSTEON Specifications................................................................................ 11 INSTEON Packet Timing .......................................................................... 13 INSTEON Powerline Data Rates ................................................................ 14 INSTEON Comparisons ........................................................................................ 15 Powerline Networks ..................................................................................... 16 X10...................................................................................................... 16
    [Show full text]