M2M Protocols, Solutions and Platforms for Smart Home Environments Integrating C.STATUSTM and the Mediasense
Total Page:16
File Type:pdf, Size:1020Kb
M2M Protocols, Solutions and Platforms for Smart Home Environments Integrating C.STATUSTM and the MediaSense 10/12/2012 MID SWEDEN UNIVERSITY The Department of Information Technology and Media (ITM) Author: Addisu Thomas Lodamo, [email protected] Tutors: Stefan Forsström, Miun,[email protected] Examiner: Prof. Tingting Zhang, [email protected] Medical Monitoring Services Home Security automation Services Services Energy Entertainment Consumption Services services e y t a a W G The Internet M.Sc. Thesis within Computer Engineering AV, 30 Credit Points M2M Protocols, Solutions and Platforms for Smart Home Environments Integrating C.STATUSTM and the MediaSense Addisu Lodamo M2M Protocols, Solutions and Platforms for Smart Home Environments Abstract Addisu Lodamo 2012-11-11 Abstract Digital technological breakthroughs have brought about a huge change in the way the society interacts, responds to the immediate environment and the way that people live. Furthermore, Ubiquitous Computing and dirt cheap sensors have created a new paradigm in digital technology where human beings could control their environment in a different approach. In a number of paradigms of digital technology, multiple proprietary solutions in industry results in a huge cost for the end users to use the technology and thus a very sluggish penetration of the tech- nology into the society. Moreover, such unorganized and vendor ori- ented standards create additional burdens on a person concerned in design and implementation. This thesis presents existing and emerging technologies in relation to smart home environment having an aim to manifest available open standards and platforms. Smart Home Envi- ronment Infrastructures have been presented and discussed. Evaluation and integration of a proprietary elderly care sensor system dubbed C.STATUSTM and the MediaSense overlay network has also been pre- sented. Performance measurement and comparison has been conducted in relation to the proprietary sensor system running on the top of the peer-to-peer MediaSense Platform with the existing C.STATUSTM cen- tralized sensor system. C.STATUSTM User Interface has been designed and implemented for an Android mobile platform. iii M2M Protocols, Solutions and Platforms for Smart Home Environments Acknowledgements Addisu Lodamo 2012-11-11 Acknowledgements I would like to pass gratitude to all who participated in this thesis work by forwarding new ideas, comments, suggestions, advice and necessary resources on the technologies presented. Nevertheless, I would like to give special gratitude to my tutor Olle Johnsson who is a researcher at Acreo for providing me with devices to work on and other valuable information in addition to excellent supervision. I would also like to pass a warm gratitude to the other tutor, Stefan Forsström, a PhD Stu- dent at Mid Sweden University for providing me with both tools and guidance throughout the period of this thesis work. iv M2M Protocols, Solutions and Platforms for Smart Home Environments Table of Contents Addisu Lodamo 2012-11-11 Table of Contents Abstract ............................................................................................................ iii Acknowledgements ....................................................................................... iv 1 Introduction ............................................................................................ 1 1.1 Background and problem motivation ...................................... 1 1.2 Overall aim ................................................................................... 2 1.3 Concrete and verifiable goals .................................................... 2 1.4 Outline .......................................................................................... 3 1.5 Scope ............................................................................................. 4 2 Theory ...................................................................................................... 5 2.1 Wireless M2M Technologies ...................................................... 6 2.1.1 Bluetooth Low Energy (BLE) .......................................... 6 2.1.2 IrDA (Infrared Data Association) ................................... 6 2.1.3 Zigbee / IEEE 802.15.4 ...................................................... 7 2.1.4 Z-Wave ............................................................................... 8 2.1.5 Dash7 .................................................................................. 8 2.1.6 INSTEON ........................................................................... 8 2.1.7 ONE-NET .......................................................................... 9 2.1.8 CEBus /EIA-600 ................................................................. 9 2.1.9 RuBee ................................................................................ 10 2.2 Wired M2M Technologies ........................................................ 10 2.2.1 USB ................................................................................... 10 2.2.2 FireWire ........................................................................... 11 2.2.3 X10 .................................................................................... 11 2.2.4 HomePNA / HPNA ........................................................ 11 2.2.5 G.hn .................................................................................. 11 2.3 Existing Wireless Sensor Network Platforms ....................... 12 2.3.1 MyriaNed......................................................................... 12 2.3.2 ANT/ANT+ ...................................................................... 13 2.3.3 WirelessHART ................................................................ 13 2.3.4 TinyOS .............................................................................. 14 2.3.5 Contiki .............................................................................. 14 2.4 Middleware Technologies ........................................................ 15 2.4.1 OSGi ................................................................................. 15 2.4.2 UPnP ................................................................................. 15 2.4.3 KNX Technology ............................................................ 15 2.4.4 The MediaSense Platform ............................................. 16 3 Methodology ........................................................................................ 17 v M2M Protocols, Solutions and Platforms for Smart Home Environments Table of Contents Addisu Lodamo 2012-11-11 3.1 Current Trends in the Smart Home Infrastructure .............. 17 3.2 The MediaSense Platform and Sensagon’s Proprietary Sensor System ............................................................................ 18 3.3 Android App Design ................................................................ 18 3.4 Analysis and Evaluation .......................................................... 18 4 Technologies for Smart Home Environment and Trends ........... 20 4.1 Smart Home Environment Affiliated Protocols Comparisons .............................................................................. 21 4.2 Smart Home Environment Infrastructure ............................. 26 4.3 Possible Future Trends ............................................................. 28 5 Implementing the Smart Home ........................................................ 31 5.1 Sensagon’s Elderly Care Sensor Network ............................. 33 5.1.1 The Interface Layer ......................................................... 34 5.1.2 The Service Layer ........................................................... 36 5.1.3 The Data Acquisition Layer .......................................... 37 5.2 C.STATUSTM Sensor System on Top of the MediaSense platform ...................................................................................... 37 5.2.1 Implementing the Interface Layer ................................ 38 5.2.2 Implementing the Service Layer .................................. 39 6 Results ................................................................................................... 42 6.1 Sensagon on the top of the MediaSense Platform ................ 43 6.2 Performance Comparison ........................................................ 44 6.3 C.STATUSTM and Web Services on Linux Server .................. 46 6.3.1 Android App Evaluation............................................... 48 7 Conclusions .......................................................................................... 52 7.1 Future work ................................................................................ 53 References ........................................................................................................ 54 vi M2M Protocols, Solutions and Platforms for Smart Home Environments 1 Introduction Addisu Lodamo 2012-11-11 1 Introduction Modern Smartphones come with bunch of cheap and powerful embed- ded sensors. In addition, each year the computing power of the smart- phones keeps increasing. More importantly, these smart devices are programmable thus allowing developers from all corners of the earth to build different applications. This has meant that smartphones are be- coming the central computing and communication devices for use in day-to-day human life; and due to the prevalence of dirt cheap sensors, a new paradigm of wireless sensory networks is immerging in one direction. In the