Docsity

ZigBee for time sensitive wireless system-control systems-project report, Lecture notes of Control Systems Analysis

Partial preview of the text

Download ZigBee for time sensitive wireless system-control systems-project report and more Lecture notes Control Systems Analysis in PDF only on Docsity!

ON THE USE OF IEEE 802.15.4/ZIGBEE FOR TIME-

-SENSITIVE WIRELESS SENSOR NETWORK APPLICATIONS

Ricardo Augusto Rodrigues da Silva Severino

Outubro de 2008

ii

iii

Acknowledgements

First of all I would like to express my gratitude to my supervisor, Mário Alves, for his outstanding supervision, counsel, advice, support, inspiration, patience, and for always being available during the course of this work. I would also like to thank my co-supervisor, Anis Koubâa, for his interest in my work and guidance throught the development process of this Thesis.

I want to thank all the people in the CISTER/IPP-HURRAY! Research Unit, at the School of Engineering of the Polytechnic Institute of Porto for their support and enthusiasm that makes working in IPP-HURRAY! very stimulating and challenging. It is impressive how so few can do so much.

A special thanks goes also to Petr Jurcik, an exceptional researcher, and to the guys I shared the Hands-on lab with for so long - André Cunha, Bruno Brito, Emmanuel Lomba, and Ricardo Gomes - for their support and for the great moments we spent together.

I would also like to thank my parents for the support they provided me through my entire life and to my friends for their encouragement.

Last but not least, a very special thanks to Rute, without whose love, encouragement and support, I would not have finished this Thesis.

v

Abstract

Recent advancements in information and communication technologies are paving the way for new paradigms in embedded computing systems. This, allied with an increasing eagerness for monitoring and controlling everything, everywhere, is pushing forward the design of new Wireless Sensor Network (WSN) infrastructures that will tightly interact with the physical environment, in a ubiquitous and pervasive fashion. Such cyber-physical systems require a rethinking of the usual computing and networking concepts, and given that the computing entities closely interact with their environment, timeliness is of increasing importance. This Thesis addresses the use of standard protocols, particularly IEEE 802.15.4 and ZigBee, combined with commercial technologies as a baseline to enable WSN infrastructures capable of supporting the Quality of Service (QoS) requirements (specially timeliness and system lifetime) that future large-scale networked embedded systems will impose. With this purpose, in this Thesis we start by evaluating the network performance of the IEEE 802.15.4 Slotted CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) mechanism for different parameter settings, both through simulation and through an experimental testbed. In order to improve the performance of these networks (e.g. throughput, energy- efficiency, message delay) against the hidden-terminal problem, a mechanism to mitigate it was implemented and experimentally validated. The effectiveness of this mechanism was also demonstrated in a real application scenario, featuring a target tracking application. A methodology for modelling cluster-tree WSNs and computing the worst-case end- to-end delays, buffering and bandwidth requirements was tested and validated experimentally. This work is of paramount importance to understand the behaviour of WSNs under worst-case conditions and also to make the appropriate network settings. Our experimental work enabled us to identify a number of technological constrains, namely related to hardware/software and to the Open-ZB implementation in TinyOS. In this line, a new implementation effort was triggered to port the Open-ZB IEEE 802.15.4/ZigBee protocol stack to the ERIKA real-time operating system. This implementation was validated experimentally and its behaviour compared with the TinyOS–based implementation.

Keywords: Wireless Sensor Networks; Cluster-Tree WSN; Real-Time Communications; Quality of Service; IEEE 802.15.4; ZigBee; TinyOS; ERIKA.

vi

viii

ix

Table of Contents

Acknowledgements ............................................................................................................ iii Abstract ............................................................................................................................... v Resumo ............................................................................................................................. vii Table of Contents .............................................................................................................. ix List of Figures ................................................................................................................... xi List of Tables .................................................................................................................... xv List of Acronyms ............................................................................................................ xvii Chapter 1 - Overview ...................................................................................................... 19 1.1 Introduction .............................................................................................................. 19 1.2 Research Context ..................................................................................................... 21

1.3 Research Objectives ................................................................................................. 21 1.4 Research Contributions ............................................................................................ 21

1.5 Structure of this Thesis ............................................................................................. 22

Chapter 2 - Overview of IEEE 802.15.4 and ZigBee .................................................... 23 2.1 General Aspects ....................................................................................................... 23 2.2 ZigBee Network Layer ............................................................................................. 27

2.3 IEEE 802.15.4 Protocol Standard ............................................................................ 33

Chapter 3 - Technological Platforms and Tools ........................................................... 45 3.1 Mote Platforms – The MICAz and TelosB .............................................................. 45 3.2 The FLEX Board ...................................................................................................... 47

3.3 Programming Interfaces ........................................................................................... 47 3.4 IEEE 802.15.4/ZigBee Protocol Analysers .............................................................. 48

3.5 TinyOS and ERIKA Operating Systems .................................................................. 51 3.6 Open-ZB Toolset...................................................................................................... 54

Chapter 4 - On the Performance Evaluation of the IEEE 802.15.4 Slotted CSMA/CA Mechanism ................................................................................................... 61 4.1 Introduction .............................................................................................................. 61 4.2 Experimental and Simulation Testbeds .................................................................... 62

4.3 Performance Analysis .............................................................................................. 64 4.4 Concluding remarks ................................................................................................. 68

Chapter 5 - On a Hidden-Node Avoidance Mechanism .............................................. 69 5.1 Introduction .............................................................................................................. 69

5.2 The H-NAMe mechanism ........................................................................................ 71

xi

xiv

xv

  • 5.3 H-NAMe in IEEE 802.15.4/ZigBee
  • 5.4 Experimental Evaluation
  • 5.5 Concluding remarks
  • Networks Chapter 6 - Real-Time Communications over Cluster-Tree Wireless Sensor
    • 6.1 Introduction
    • 6.2 Background on Network Calculus
    • 6.3 System Model
    • 6.4 IEEE 802.15.4/ZigBee Cluster-Tree WSN Setup
    • 6.5 Experimental Evaluation
    • 6.6 Concluding remarks
  • Applications Chapter 7 - ERIKA and Open-ZB: a Toolset for Real-Time Wireless Networked
    • 7.1 Introduction
    • 7.2 Software Implementation
    • 7.3 Experimental work
    • 7.4 Comparative performance results
    • 7.5 Concluding remarks
  • Chapter 8 - Hands-on Work over a Real Application Scenario
    • 8.1 Introduction
    • 8.2 Snapshot of the ART-WiSe Search & Rescue testbed application.........................
    • 8.3 Overview of the testbed localization mechanism
    • 8.4 Assessing the hidden-node impact in the application
    • 8.5 Problems and challenges related to the experimental work
    • 8.6 Concluding Remarks
  • Chapter 9 - General Conclusions and Future Work
  • References
  • Figure 1 - ZigBee architecture [7] List of Figures
  • Figure 2 - ZigBee network topologies
  • Figure 3 - Network Layer reference model [7]
  • Figure 4 - Address assignment scheme example
  • Figure 5 - ZigBee Coordinator addressing scheme (decimal values)
  • Figure 6 - Operating frequencies and bands [24]
  • Figure 7 - IEEE 802.15.4 Operational Modes
  • Figure 8 - IEEE 802.15.4 Superframe Structure [24]
  • Figure 9 - Association mechanism example
  • Figure 10 - Dissassociation mechanism example
  • Figure 11 - GTS allocation message sequence diagram [24]..............................
  • Figure 12 - CFP defragmentation upon a GTS deallocations [24]......................
  • Figure 13 - The Slotted CSMA/CA Mechanism [24]
  • Figure 14 - The Un-slotted CSMA/CA mechanism [24]
  • Figure 15 - Inter-frame spacing [24]
  • Figure 16 - Indirect transmission example..........................................................
  • Figure 17 - Micaz mote and the block diagram [25]...........................................
  • Figure 18 - TelosB mote and the block diagram [26]
  • Figure 19 - The FLEX board [30]
  • Figure 20 - Interface Boards - MIB510, MIB520 and MIB600
  • Figure 21 - Overview of the Chipcon IEEE802.15.4/ZigBee Packet Sniffer
  • Figure 22 - Overview Chipcon SmartRF Studio [39]
  • Figure 23 - Overview of Daintree Network Analyser [38]
  • Figure 24 - Arrangement of the components and their wiring [47]
  • Figure 25 - Protocol stack software architecture
  • Figure 26 - TinyOS implementation diagram [62]
  • Figure 27 - The IEEE 802.15.4 [65]
  • Figure 28 - Simulation Model setup xii
  • Figure 29 - The CSMA/CA performance evaluation testbed..............................
  • Figure 30 - Network Throughput for different BO
  • Figure 31 - Transmission deference problem
  • Figure 32 - Probability of Success for different BO
  • Figure 33 - Experimental vs Simulation( BO = SO =7 and BO=SO=1 ).................
  • Figure 34 - Impact of macMinBE value in the Network Throughput.................
  • Figure 35 - Offered Load for different macMinBE values..................................
  • Figure 36 - A hidden-node collision
  • Figure 37 - Hidden-node impact on network throughput....................................
  • Figure 38 - Network model
  • Figure 39 - Intra-cluster grouping mechanism....................................................
  • Figure 40 - Intra-cluster grouping message sequence chart
    • links and circular radio range Figure 41 - Maximum number of groups in a cluster assuming bi-directional
  • Figure 42 - Group assignment algorithm
  • Figure 43 - CAP, GAP and CFP in the Superframe............................................
  • Figure 44 - GAP specification field of a beacon frame
  • Figure 45 - Experimental testbed
  • Figure 46 - Groups allocation in the superframe
  • Figure 47 - Packet analyzer capture of a group join
  • Figure 48 - Experimental performance results....................................................
  • Figure 49 -The basic system model of Network Calculus
    • r) arrival curve α(t) and rate-latency service curve β(t), respectively. Figure 50 - Example of input R(t) and output R*(t) functions constrained by (b,
  • Figure 51 - The cluster-tree topology and data flow models
  • Figure 52 - The test-bed deployment for Hsink =1
  • Figure 53 - The GUI of the MATLAB analytical model
  • Figure 54 - The sensory traffic generation
    • depth and sink position Figure 55 - The worst-case buffer requirements per router as a function of the
  • Figure 56 - The theoretical vs. experimental buffer requirements
  • Figure 57 - Theoretical vs. experimental data traffic
  • Figure 58 - Theoretical vs Experimental delay bounds
    • delays as a function of duty cycle for Hsink = 0 (lifetime of a WSN) Figure 59 - The theoretical worst-case and experimental maximum end-to-end
  • Figure 60 – Stack implementation layered architecture....................................
  • Figure 61 - PHY Layer reference model...........................................................
  • Figure 62 - MAC layer reference model
  • Figure 63 - Beacon processing in ERIKA
  • Figure 64 - Beacon inter-arrival time at the sniffer board
    • without contention access Figure 65 - Guaranteed Time Slots allocated to Device 1 and 2 to inject packets
    • using ERIKA+FLEX (Right), at different microcontroller speeds Figure 66 - Throughput using ERIKA+FLEX (Left) and Packet delivery ration
    • using ERIKA+FLEX Figure 67 – Throughput using ERIKA+FLEX (left) and Packet delivery ratio
  • Figure 68 - Snapshot of the ART-WiSe Search&Rescue Testbed Application
  • Figure 69 - The Search&Rescue Testbed in action...........................................
  • Figure 70 - The localization mechanism
  • Figure 71 - Timing diagram of the localization mechanism
  • Figure 72 - Delay in Localization for Test
  • Figure 73 - Delay in localization for test
  • Figure 74 - Asynchronous events
  • Figure 75 - IEEE802.15.4 and IEEE 802.11 channels
  • Figure 76 - WiFi networks around the Hands-on lab........................................
  • Figure 77 - RSSI versus Distance [88]
  • Table 1 – ZigBee Mesh vs. Cluster-Tree List of Tables
  • Table 2 - Cskip example values
  • Table 3 - Operating Systems for resource constrained devices
  • Table 4 - Functionalities of the implemented protocol stack components [62]
  • Table 5 - Delay bounds: theoretical vs. experimental results
  • Table 6 – Delay bounds: theoretical vs. experimental results.............................
  • Table 7 - Memory buffers and ERIKA resources set as guards........................
  • Table 8 - Observed time divergence from nominal value

xvii

List of Acronyms

AODV Ad hoc On Demand Distance Vector APL Application Layer APS Application Support Sublayer BE Backoff Exponent BI Beacon Interval BO Beacon Order CAP Contention Access Period CCA Clear Channel Assessment CFP Contention Free Period CID Cluster Identifier CLH Cluster Head COTS Commercial-off-the-shelf CSMA/CA Carrier Sense Multiple Access/Collision Avoidance CW Contention Window (length) DSSS Direct Sequence Spread Spectrum ED Energy Detection FCS Frame Check Sequence FFD Full Function Device GTS Guaranteed Time Slot IFS Interframe Spacing LAN Local Area Network LIFS Long Interframe Spacing LQI link quality indication LR-WPAN Low Rate-Wireless Personal Area Network MAC Medium Access Control NB Number of Backoff (periods) NWK ZigBee Network layer NWK Network Layer OSI Open Systems Interconnection PAN Personal Area Network PHY Physical Layer PD-SAP PHY data service access point PLME Physical Layer Management Entity PLME-SAP Physical Layer Management Entity-Service Access Point QPSK Quadrature Phase Shift Keying RF Radio Frequency RFD Reduced Function Device RSSI Received Signal Strength Indication RX Receive or Receiver SAP Service Access Point SD Superframe Duration SFD Start-of-Frame Delimiter SIFS Short Interframe Spacing

xviii

SO Superframe Order TDBS Time Division Beacon Scheduling TRX Transceiver TX Transmit or Transmitter WLAN Wireless Local Area Network WPAN Wireless Personal Area Network WSN Wireless Sensor Network ZC ZigBee Coordinator ZDO ZigBee Device Objects ZED ZigBee End Device ZG ZigBee Gateway ZR ZigBee Router