Wireless Sensor Network for Monitoring Applications

Total Page:16

File Type:pdf, Size:1020Kb

Wireless Sensor Network for Monitoring Applications Wireless Sensor Network for Monitoring Applications A Major Qualifying Project Report Submitted to the University of WORCESTER POLYTECHNIC INSTITUTE In partial fulfillment of the requirements for the Degree of Bachelor of Science By: __________________________ __________________________ Jonathan Isaac Chanin Andrew R. Halloran __________________________ __________________________ Advisor, Professor Emmanuel Agu, CS Advisor, Professor Wenjing Lou, ECE Table of Contents Table of Figures ............................................................................................................................................. 4 Abstract ......................................................................................................................................................... 5 1. Introduction ........................................................................................................................................... 6 1.1 What are Wireless Sensor Networks? ........................................................................................... 6 1.2 Why Sensor Networks? ................................................................................................................. 6 1.3 Application Examples .................................................................................................................... 7 1.4 Project Goal ................................................................................................................................... 8 2. Background ............................................................................................................................................ 9 2.1 Tmote Sky wireless sensor platform ............................................................................................. 9 2.1.1 TinyOS .................................................................................................................................. 10 2.1.2 Chipcon CC2420 Transceiver ............................................................................................... 10 2.2 Mesh Networking with TinyOS and IEEE 802.15.4 ...................................................................... 11 2.2.1 Low-Power Networking Background and Standards ........................................................... 11 2.2.2 Networking Protocol Stack .................................................................................................. 12 2.2.3 Mesh Networking with TinyOS ............................................................................................ 12 3. Requirements ...................................................................................................................................... 15 3.1 Choosing an Application .............................................................................................................. 15 3.2 Sensors ........................................................................................................................................ 15 3.2.1 Microphone ......................................................................................................................... 16 3.2.2 Motion Sensor ..................................................................................................................... 16 3.2.3 Accelerometer ..................................................................................................................... 16 3.3 Network Architecture .................................................................................................................. 17 3.3.1 System Overview ................................................................................................................. 17 3.3.2 Base Station ......................................................................................................................... 18 3.3.3 Data Storage ........................................................................................................................ 18 3.3.4 User Interface ...................................................................................................................... 18 3.4 Overall Requirements .................................................................................................................. 18 4. Design .................................................................................................................................................. 20 4.1 Sensor Design .............................................................................................................................. 20 4.1.1 Tmote Expansion Port ......................................................................................................... 20 4.1.2 Motion Detector .................................................................................................................. 21 4.1.3 Accelerometer ..................................................................................................................... 21 4.2 Sensor Node Software Design ..................................................................................................... 22 4.2.1 A/D Resolution .................................................................................................................... 22 4.2.2 Accelerometer Algorithm .................................................................................................... 23 4.2.3 Node Program Design.......................................................................................................... 24 4.3 Infrastructure Programming ....................................................................................................... 26 4.3.1 Base Station Software ......................................................................................................... 26 4.3.2 SQL Database ....................................................................................................................... 27 2 4.3.3 User Interface ...................................................................................................................... 28 5. Further Research ................................................................................................................................. 30 5.1 Sensor Localization ...................................................................................................................... 30 5.1.1 RF Localization Pilot Studies ................................................................................................ 30 5.1.2 Ultrasonic Localization ........................................................................................................ 31 6. Recommendations and Conclusion ..................................................................................................... 33 6.1 TMote Sky Platform and Alternatives ......................................................................................... 33 6.1.1 Sun Microsystems – Project Sun SPOT ................................................................................ 34 6.1.2 Sentilla – Formerly Moteiv .................................................................................................. 34 6.1.3 Implementing a ZigBee Network ......................................................................................... 35 6.2 Additional Technologies .............................................................................................................. 36 6.2.1 Alternative Energy Sources ................................................................................................. 36 6.2.2 Node Localization ................................................................................................................ 36 7. References ........................................................................................................................................... 37 8. Appendix A – User Guide..................................................................................................................... 39 9. Appendix B – Mote Code ..................................................................................................................... 41 9.1 Base Station (Sink Node) Mote Code .......................................................................................... 42 9.1.1 baseC.nc .............................................................................................................................. 42 9.1.2 baseM.nc ............................................................................................................................. 42 9.2 Accelerometer Mote Code .......................................................................................................... 44 9.2.1 accelC.nc .............................................................................................................................. 44 9.2.2 accelM.nc ............................................................................................................................ 45 9.3 Motion Sensor Mote Code .......................................................................................................... 50 9.3.1 motionC.nc .......................................................................................................................... 50 9.3.2 motionM.nc ......................................................................................................................... 50 9.4 Shared Mote Code ......................................................................................................................
Recommended publications
  • A Comparative Study on Operating System for Wireless Sensor Networks
    ICACSIS 2011 ISBN: 978-979-1421-11-9 A Comparative Study on Operating System for Wireless Sensor Networks Thang Vu Chien, Hung Nguyen Chan, and Thanh Nguyen Huu Thai Nguyen University of Information and Communication Technology Quyet Thang Commune, Thai Nguyen City, Vietnam E-mail: [email protected], [email protected], [email protected] Abstract—Wireless Sensor Networks (WSNs) them work correctly and effectively without a conflict have been the subject of intensive research over the in support of the specific applications for which they last years. WSNs consist of a large number of are designed. Each sensor node needs an OS that can sensor nodes, and are used for various applications control the hardware, provide hardware abstraction to such as building monitoring, environment control, application software, and fill in the gap between wild-life habitat monitoring, forest fire detection, applications and the underlying hardware. industry automation, military, security, and health- The basic functionalities of an OS include resource care. Operating system (OS) support for WSNs abstractions for various hardware devices, interrupt plays a central role in building scalable distributed management and task scheduling, concurrency control, applications that are efficient and reliable. Over and networking support. Based on the services the years, we have seen a variety of operating provided by the OS, application programmers can systems (OSes) emerging in the sensor network conveniently use high-level application programming community to facilitate developing WSN interfaces (APIs) independent of the underlying applications. In this paper, we present OS for WSNs. We begin by presenting the major issues for hardware.
    [Show full text]
  • Key Infection: Smart Trust for Smart Dust
    Key Infection: Smart Trust for Smart Dust Ross Anderson Haowen Chan Adrian Perrig University of Cambridge Carnegie Mellon University Carnegie Mellon University [email protected] [email protected] [email protected] Abstract and building safety. As sensor networks become cheaper and more commoditised, they will become attractive to Future distributed systems may include large self- home users and small businesses, and for other new appli- organizing networks of locally communicating sen- cations. sor nodes, any small number of which may be sub- A typical sensor network consists of a large number of verted by an adversary. Providing security for these small, low-cost nodes that use wireless peer-to-peer com- sensor networks is important, but the problem is compli- munication to form a self-organized network. They use cated by the fact that managing cryptographic key ma- multi-hop routing algorithms based on dynamic network terial is hard: low-cost nodes are neither tamper-proof and resource discovery protocols. To keep costs down and nor capable of performing public key cryptography effi- to deal with limited battery energy, nodes have fairly min- ciently. imal computation, communication, and storage resources. In this paper, we show how the key distribution problem They do not have tamper-proof hardware. We can thus ex- can be dealt with in environments with a partially present, pect that some small fraction of nodes in a network may be passive adversary: a node wishing to communicate securely compromised by an adversary over time. with other nodes simply generates a symmetric key and An interesting example of a sensor network technology sends it in the clear to its neighbours.
    [Show full text]
  • Shared Sensor Networks Fundamentals, Challenges, Opportunities, Virtualization Techniques, Comparative Analysis, Novel Architecture and Taxonomy
    Journal of Sensor and Actuator Networks Review Shared Sensor Networks Fundamentals, Challenges, Opportunities, Virtualization Techniques, Comparative Analysis, Novel Architecture and Taxonomy Nahla S. Abdel Azeem 1, Ibrahim Tarrad 2, Anar Abdel Hady 3,4, M. I. Youssef 2 and Sherine M. Abd El-kader 3,* 1 Information Technology Center, Electronics Research Institute (ERI), El Tahrir st, El Dokki, Giza 12622, Egypt; [email protected] 2 Electrical Engineering Department, Al-Azhar University, Naser City, Cairo 11651, Egypt; [email protected] (I.T.); [email protected] (M.I.Y.) 3 Computers & Systems Department, Electronics Research Institute (ERI), El Tahrir st, El Dokki, Giza 12622, Egypt; [email protected] 4 Department of Computer Science & Engineering, School of Engineering and Applied Science, Washington University in St. Louis, St. Louis, MO 63130, 1045, USA; [email protected] * Correspondence: [email protected] Received: 19 March 2019; Accepted: 7 May 2019; Published: 15 May 2019 Abstract: The rabid growth of today’s technological world has led us to connecting every electronic device worldwide together, which guides us towards the Internet of Things (IoT). Gathering the produced information based on a very tiny sensing devices under the umbrella of Wireless Sensor Networks (WSNs). The nature of these networks suffers from missing sharing among them in both hardware and software, which causes redundancy and more budget to be used. Thus, the appearance of Shared Sensor Networks (SSNs) provides a real modern revolution in it. Where it targets making a real change in its nature from domain specific networks to concurrent running domain networks. That happens by merging it with the technology of virtualization that enables the sharing feature over different levels of its hardware and software to provide the optimal utilization of the deployed infrastructure with a reduced cost.
    [Show full text]
  • Overview of Wireless Sensor Network (WSN) Security
    Overview of Wireless Sensor Network (WSN) Security Aparicio Carranza Heesang Kim Xiao Lin Chen NYC College of Technology NYC College of Technology NYC College of Technology 186 Jay Street – V626 186 Jay Street 186 Jay Street Brooklyn, NY, USA Brooklyn, NY, USA Brooklyn NY, USA 718 – 260 – 5897 703 – 232 – 2001 917 – 285 - 5155 [email protected] [email protected] xiaolin,[email protected] ABSTRACT of different transmission schemes, allowing the connection Our civilization has entered an era of big data networking. to be made between different models. A router is a good Massive amounts of data is being converted into bits for example of a gateway. There are two common Wireless transmitting over the Internet and shared all over the world network topologies commonly used in WSN systems, they every second. The concept of “smart” devices has are “relay nodes” and “leaf nodes”. The relay network is a conquered preconceived notions of daily routines. broad network topology where the source and destination Smartphones and wearable device technologies have made are interconnected through some node. In these networks, humans to be continuously interconnected, making distance the source and destination cannot communicate directly a factor of no limitation. “Smart” systems are based on a with each other because the distance between the source single concept called the Internet of Things (IoT). IoT is a and destination is greater than the transmission range, due web of wirelessly networked devices embedded with to this an intermediate node needs to relay. The advantage electronic components and sensors that monitors physical of using the relay nodes is that the information can travel and environmental conditions and acquires data to be long distances even when the caller and recipient are far shared with other systems.
    [Show full text]
  • Monitoring High Voltage Power Lines Using Efficient WSN
    Advances in Energy and Power 7(1): 10-19, 2020 http://www.hrpub.org DOI: 10.13189/aep.2020.070102 Monitoring High Voltage Power Lines Using Efficient WSN Khaled Al-Maitah, Batool Al-Khriesat, Abdullah Al-Odienat* Department of Electrical Engineering, Faculty of Engineering, Mutah University, Jordan Received March 13, 2020; Revised April 22, 2020; Accepted April 27, 2020 Copyright©2020 by authors, all rights reserved. Authors agree that this article remains permanently open access under the terms of the Creative Commons Attribution License 4.0 International License Abstract The power transmission line is one of most [1]. Moreover, power systems are now highly critical components in electrical power system. In order to interconnected which allows the transfer of a large enhance the reliability of the large power systems, an electrical energy over long distances far from the source of advanced and efficient Wireless Sensor Network (WSN) generation to locations suffer of lack in electrical energy [2] must be employed along power transmission line. However, [3]. time delay has emerged as one of the most critical issues in In power systems, transmission lines are critical the design of WSN-based monitoring network of components from the reliability and stability view point. transmission lines. This paper proposes a new model for There is a real need for an efficient monitoring system of WSN for monitoring High Voltage Transmission Line the transmission lines to enhance the normal operation of (HVTL) which improves the needed time delay to transmit the power system and avoid the major disconnections and the measured quantity from transmission line towers to the blackouts [4].
    [Show full text]
  • System Architecture Directions for Post-Soc/32-Bit Networked Sensors Hyung-Sin Kim, Michael P Andersen, Kaifei Chen, Sam Kumar, William J
    System Architecture Directions for Post-SoC/32-bit Networked Sensors Hyung-Sin Kim, Michael P Andersen, Kaifei Chen, Sam Kumar, William J. Zhao, Kevin Ma, and David E. Culler Department of Electrical Engineering and Computer Sciences, University of California, Berkeley (hs.kim,m.andersen,kaifei,samkumar,william_zhao,kevinma.sd,culler)@berkeley.edu ABSTRACT those that have guided design over the past 20 years, since the The emergence of low-power 32-bit Systems-on-Chip (SoCs), which emergence of the field [31, 37]. While it is easy to observe high- integrate a 32-bit MCU, radio, and flash, presents an opportunity level trends and infer that at some point conventional concurrency to re-examine design points and trade-offs at all levels of the sys- models and networking stacks will fit on this class of computing tem architecture of networked sensors. To this end, we develop a platform, when dealing with low power embedded operation, the post-SoC/32-bit design point called Hamilton, showing that using devil is always in the details. integrated components enables a ∼$7 core and shifts hardware mod- The datasheets for modern 32-bit System-on-Chip units (SoCs) ularity to design time. We study the interaction between hardware with an integrated microcontroller (MCU) and radio are truly im- and embedded operating systems, identifying that (1) post-SoC pressive [10, 43]. Thread-based OSes have reemerged (e.g., RIOT motes provide lower idle current (5.9 µA) than traditional 16-bit [14]), and commercially-driven IPv6 network protocols have arrived motes, (2) 32-bit MCUs are a major energy consumer (e.g., tick (e.g., OpenThread [71]).
    [Show full text]
  • Concepts General Concepts Wireless Sensor Networks (WSN)
    Wireless Sensor Networks – Concepts General Concepts Wireless Sensor Networks (WSN) are built based on a combination of multiple sensors placed in diverse locations, wireless communication network infrastructure and software data processing to monitor and record multiple parameters. Commonly monitored parameters are temperature, atmospheric pressure, humidity, vibration, illuminance, sound level, power consumption, chemical concentration, body health signals and many others, dependant on the selected available sensors. The WSN are used in multiple fields, ranging from remote environment monitoring, medical health, to home surveillance and industrial machines monitoring. In some cases, WSN can also be additionally used for control functions, apart from monitoring functions. Typically a WSN is made of sensor nodes that are wirelessly connected to a gateway that is then connected to a main computer (Fig. 1). In some WSN the sensor nodes can also be connected to each other, so that is possible to implement multi-hop wireless mesh networks. The gateway connects to the main computer through a cabled or wireless connection. Figure 1 – Wireless sensor network The wireless communications used in WSN depend on the application requirements, taking into consideration the needs in terms of transmission distance, sensor data bandwidth, energy source and power consumption. Common communications include standard protocols such as 2.4 GHz radio based on either IEEE802.15.4 (ZigBee, ISA 100, WirelessHart, MiWi) or IEEE802.11 (WiFi) standards. Each sensor node typically includes an embedded microcontroller system with adequate electronic interface with a sensor (or set of sensors), a radio transceiver with antenna (internal or external) and an energy source, usually a battery, or in some cases an energy harvesting circuit.
    [Show full text]
  • Flexis—A Flexible Sensor Node Platform for the Internet of Things
    sensors Article FlexiS—A Flexible Sensor Node Platform for the Internet of Things Duc Minh Pham and Syed Mahfuzul Aziz * UniSA STEM, University of South Australia, Mawson Lakes, SA 5095, Australia; [email protected] * Correspondence: [email protected]; Tel.: +61-08-8302-3643 Abstract: In recent years, significant research and development efforts have been made to transform the Internet of Things (IoT) from a futuristic vision to reality. The IoT is expected to deliver huge economic benefits through improved infrastructure and productivity in almost all sectors. At the core of the IoT are the distributed sensing devices or sensor nodes that collect and communicate information about physical entities in the environment. These sensing platforms have traditionally been developed around off-the-shelf microcontrollers. Field-Programmable Gate Arrays (FPGA) have been used in some of the recent sensor nodes due to their inherent flexibility and high processing capability. FPGAs can be exploited to huge advantage because the sensor nodes can be configured to adapt their functionality and performance to changing requirements. In this paper, FlexiS, a high performance and flexible sensor node platform based on FPGA, is presented. Test results show that FlexiS is suitable for data and computation intensive applications in wireless sensor networks because it offers high performance with low energy profile, easy integration of multiple types of sensors, and flexibility. This type of sensing platforms will therefore be suitable for the distributed data analysis and decision-making capabilities the emerging IoT applications require. Keywords: Internet of Things (IoT); wireless sensor networks (WSN); sensor node; field-programmable Citation: Pham, D.M.; Aziz, S.M.
    [Show full text]
  • A Zigbee-Based Wireless Biomedical Sensor Network
    A ZIG BEE -BASED WIRELESS BIOMEDICAL SENSOR NETWORK AS A PRECURSOR TO AN IN-SUIT SYSTEM FOR MONITORING ASTRONAUT STATE OF HEALTH by XIONGJIE DONG B.S., Kansas State University, 2011 A THESIS submitted in partial fulfillment of the requirements for the degree MASTER OF SCIENCE Department of Electrical & Computer Engineering College of Engineering Kansas State University Manhattan, Kansas 2014 Approved by Major Professor Steve Warren ABSTRACT Networks of low-power, in-suit, wired and wireless health sensors offer the potential to track and predict the health of astronauts engaged in extra-vehicular and in-station activities in zero- or reduced- gravity environments. Fundamental research questions exist regarding (a) types and form factors of biomedical sensors best suited for these applications, (b) optimal ways to render wired/wireless on-body networks with the objective to draw little-to-no power, and (c) means to address the wireless transmission challenges offered by a spacesuit constructed from layers of aluminized mylar. This thesis addresses elements of these research questions through the implementation of a collection of ZigBee-based wireless health monitoring devices that can potentially be integrated into a spacesuit, thereby providing continuous information regarding astronaut fatigue and state of health. Wearable biomedical devices investigated for this effort include electrocardiographs, electromyographs, pulse oximeters, inductive plethysmographs, and accelerometers/gyrometers. These ZigBee-enabled sensors will form the nodes of an in-suit ZigBee Pro network that will be used to (1) establish throughput requirements for a functional in-suit network and (2) serve as a performance baseline for future devices that employ ultra-low-power field-programmable gate arrays and micro-transceivers.
    [Show full text]
  • Biology Inspired Approach for Communal Behavior in Sensor Networks
    Biology Inspired Approach for Communal Behavior in Sensor Networks K. H. Jones K. N. Lodding NASA Langley Research Center NASA Langley Research Center Hampton, VA 23681 Hampton, VA 23681 [email protected] [email protected] S. Olariu L. Wilson C. Xin Old Dominion University Old Dominion University Norfolk State University Norfolk, VA 23529 Norfolk, VA 23529 Norfolk, VA 23504 [email protected] [email protected] [email protected] Abstract housing, and other necessities. The realization of this dream has progressed for several centuries but has Research in wireless sensor network technology has taken a revolutionary leap through the invention of exploded in the last decade. Promises of complex and electronic computers, which facilitate more ubiquitous control of the physical environment by automation of machines. Futurists have long predicted these networks open avenues for new kinds of science that machines would eventually communicate and and business. Due to the small size and low cost of cooperate with each other to accomplish sensor devices, visionaries promise systems enabled extraordinarily complex tasks without human by deployment of massive numbers of sensors working intervention [20]. in concert. Although the reduction in size has been phenomenal it results in severe limitations on the While futurists long dreamed of machines working computing, communicating, and power capabilities of with other machines, a giant step towards realization these devices. Under these constraints, research of this dream may be credited to a DARPA sponsored efforts have concentrated on developing techniques program, SmartDust, originated in the late 1990’s for performing relatively simple tasks with minimal [11,26].
    [Show full text]
  • A Comparative Study Between Operating Systems (Os) for the Internet of Things (Iot)
    VOLUME 5 NO 4, 2017 A Comparative Study Between Operating Systems (Os) for the Internet of Things (IoT) Aberbach Hicham, Adil Jeghal, Abdelouahed Sabrim, Hamid Tairi LIIAN, Department of Mathematic & Computer Sciences, Sciences School, Sidi Mohammed Ben Abdellah University, [email protected], [email protected], [email protected], [email protected] ABSTRACT Abstract : We describe The Internet of Things (IoT) as a network of physical objects or "things" embedded with electronics, software, sensors, and network connectivity, which enables these objects to collect and exchange data in real time with the outside world. It therefore assumes an operating system (OS) which is considered as an unavoidable point for good communication between all devices “objects”. For this purpose, this paper presents a comparative study between the popular known operating systems for internet of things . In a first step we will define in detail the advantages and disadvantages of each one , then another part of Interpretation is developed, in order to analyze the specific requirements that an OS should satisfy to be used and determine the most appropriate .This work will solve the problem of choice of operating system suitable for the Internet of things in order to incorporate it within our research team. Keywords: Internet of things , network, physical object ,sensors,operating system. 1 Introduction The Internet of Things (IoT) is the vision of interconnecting objects, users and entities “objects”. Much, if not most, of the billions of intelligent devices on the Internet will be embedded systems equipped with an Operating Systems (OS) which is a system programs that manage computer resources whether tangible resources (like memory, storage, network, input/output etc.) or intangible resources (like running other computer programs as processes, providing logical ports for different network connections etc.), So it is the most important program that runs on a computer[1].
    [Show full text]
  • NIST Technical Note 1604 Practical Challenges in Wireless Sensor
    NIST Technical Note 1604 Practical Challenges in Wireless Sensor Network Use in Building Applications William M. Healy Won-Suk Jang NIST Technical Note 1604 Practical Challenges in Wireless Sensor Network Use in Building Applications William M. Healy Won-Suk Jang Building Environment Division Building and Fire Research Laboratory September 2008 U.S. Department of Commerce Carlos M. Gutierrez, Secretary National Institute of Standards and Technology Patrick D. Gallagher, Deputy Director i Certain commercial entities, equipment, or materials may be identified in this document in order to describe an experimental procedure or concept adequately. Such identification is not intended to imply recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that the entities, materials, or equipment are necessarily the best available for the purpose. National Institute of Standards and Technology Technical Note 1604 Natl. Inst. Stand. Technol. Tech. Note 1604, 12 pages (September 2008) ii Abstract While wireless sensor network technology has advanced in recent years, potential users of these systems in buildings still have concerns about their application. This report summarizes results of a literature survey and interactions with building industry professionals that were designed to gain an understanding of the barriers to adoption of wireless sensors in buildings. Users have concerns with cost, reliability, power management, interoperability, ease of use, and security. This work is meant to set the stage for the development of measurement techniques that will provide better metrics for how wireless sensor systems perform in actual building applications. Keywords Wireless; sensor; building technology; building monitoring; building control iii TABLE OF CONTENTS Abstract ............................................................................................................................
    [Show full text]