Outline. TWR Module. Different Wireless Protocols. Section 7. Wireless Communication. Wireless Communication with

Similar documents
Zigbee protocol stack overview

Message acknowledgement and an optional beacon. Channel Access is via Carrier Sense Multiple Access with

Davide Quaglia Assistant CS depart University of Verona, Italy

ZigBee Technology: Wireless Control that Simply Works

Principles of Wireless Sensor Networks. Medium Access Control and IEEE

Emad Ebeid Ph.D. CS depart University of Verona, Italy

Principles of Wireless Sensor Networks

EL2745 Principles of Wireless Sensor Networks

ZigBee/ David Sanchez Sanchez.

ZigBee Mesh Networking - In Control

ZigBee and IEEE

Wireless Personal Area Networks (WPANs) Wireless PAN

Topics. Introduction Architecture Node Types Network Topologies Traffic Modes Frame Format Applications Conclusion

Introduction to IEEE

By Ambuj Varshney & Akshat Logar

WIRELESS-NETWORK TECHNOLOGIES/PROTOCOLS

ZIGBEE. Erkan Ünal CSE 401 SPECIAL TOPICS IN COMPUTER NETWORKS

Module Introduction. This training module provides an overview of Freescale s scalable solutions for low data rate 2.4 GHz connectivity.

Guide to Wireless Communications, 3 rd Edition. Objectives

Low-Rate Wireless Personal Area Networks IEEE Fernando Solano Warsaw University of Technology

WIRELESS TECHNOLOGIES

WPAN/WBANs: ZigBee. Dmitri A. Moltchanov kurssit/elt-53306/

Wireless Sensor Networks. Introduction to the Laboratory

Wireless Sensor Networks

Mobile Communications

Communication In Smart Grid -Part3

Chapter 7. ZigBee (IEEE ) Liang Zhao, Andreas Timm-Giel

Wireless Sensor Networks

Topic 02: IEEE

Standard for wireless sensor networks. Developed and promoted by the ZigBee alliance

Chapter 7. IEEE ZigBee. Liang Zhao, Andreas Timm-Giel

Wireless communication standards: What makes them unattractive for WSN:

Wireless Networked Systems

ZigBee & Wireless Sensor Networks Case Study: ZigBee & IEEE S.rou.2. ZigBee Solution. What is ZigBee?

Energy Efficient Clear Channel Assessment for LR-WPAN

Amarjeet Singh. February 7, 2012

KW41Z IEEE and BLE Coexistence Performance

standards like IEEE [37], IEEE [38] or IEEE [39] do not consider

CS263: Wireless Communications and Sensor Networks

Wireless Sensor Networks

ZigBee. Jan Dohl Fabian Diehm Patrick Grosa. Dresden,

DASH7 ALLIANCE PROTOCOL - WHERE RFID MEETS WSN. public

CHAPTER 4 CROSS LAYER INTERACTION

Matteo Petracca Scuola Superiore Sant Anna, Pisa

This document is a preview generated by EVS

IEEE Testing Signal Compliance of ZigBee Standard

WIRELESS SENSOR NETWORK

AIM: To create a project for implement a wireless communication protocol on an embedded system- ZigBee.

1. IEEE and ZigBee working model.

Performance Evaluation of IEEE for Low-Rate Wireless Personal Area Networks

VISHVESHWARAIAH TECHNOLOGICAL UNIVERSITY BELGAUM-10 S.D.M COLLEGE OF ENGINEERING AND TECHNOLOGY DHARWAD-02

SERIES G: TRANSMISSION SYSTEMS AND MEDIA, DIGITAL SYSTEMS AND NETWORKS Access networks In premises networks

Networked Embedded Systems: PHY and MAC

WIR-1386 / WIR-1186M Long Range 865MHz 867MHz RF Wireless Module with WIR-METERING Mesh Stack

Sensor Application for Museum Guidance

Communications Options for Wireless Sensor Networks. Marco Zennaro and Antoine Bagula ICTP and UWC Italy and South Africa

BLE WiFi Gateway. Model: G1. Version: V Contents. Contents Overview... 2

CHAPTER I OVERVIEW OF ZIGBEE

3.1. Introduction to WLAN IEEE

IEEE P g. IEEE P Wireless Personal Area Networks. Frequency Hopping Support for SUN Devices

RESOURCES. By: Chris Downey, Laird Technologies Product Manager, Telematics & Wireless M2M Date: May 25, 2011

Smart test and certification of wireless IoT devices

Medium Access Control in Wireless Networks

Embit Binary Interface - IEEE Specific Documentation. embit s.r.l.

Design and Implementation of a Multi-hop Zigbee Network

Wireless Sensor Networks

Technical Report. Implementation Details of the Time Division Beacon Scheduling Approach for ZigBee Cluster-Tree Networks

Fuzzy Duty Cycle Adaption Algorithm for IEEE Star Topology Networks

The ZigBee Architecture An Introduction

Exercise 8 Protocols /802.2

Wireless Sensor Networks BLUETOOTH LOW ENERGY. Flavia Martelli

Freescale Development Kits IEEE Wireless design made simple. freescale.com/802154

IEEE P g IEEE P Wireless Personal Area Networks. IEEE P Working Group for Wireless Personal Area Networks (WPANs)

Wireless Sensor Networks

Smart Home Technology: Zigbee and Z-Wave

Wireless Sensor Networks

Wireless Body Area Networks. WiserBAN Smart miniature low-power wireless microsystem for Body Area Networks.

AT THE END OF THIS SECTION, YOU SHOULD HAVE AN UNDERSTANDING OF THE

Modulation. Propagation. Typical frequency bands

Junseok Kim Wireless Networking Lab (WINLAB) Konkuk University, South Korea

Wireless Connectivity Options for IoT. By: MIST Makers John Varela and Nicholas Landy

Reducing the Energy Consumption of ZigBee with a Power-saving MAC Protocol

Wireless control that simply works CES January 9, Bob Heile Chairman, Zigbee Alliance

Wireless (NFC, RFID, Bluetooth LE, ZigBee IP, RF) protocols for the Physical- Data Link layer communication technologies

ISO/IEC , CSD, IEEE a. Embedded Systems Lab. Dept. of CSE, PNU

Design and Implementation of a Zigbee-based Communication Substrate for Wireless Sensor Networks. Zigbee

Overview of the IEEE /4a standards for low data rate Wireless Personal Data Networks

TI SimpleLink dual-band CC1350 wireless MCU

Introduction to the ZigBee Application Framework

A Low Latency Data Transmission Scheme for Smart Grid Condition Monitoring Applications 28/05/2012

MiWi Software Design Guide

Lecture 6. Reminder: Homework 2, Programming Project 2 due on Thursday. Questions? Tuesday, September 13 CS 475 Networks - Lecture 6 1

Design and implementation of ZigBee/IEEE Nodes for

Ah-Hoc, PAN, WSN,... Introduction Bluetooth ( ) Zigbee ( ) Renato Lo Cigno

WiMOD LR Base Host Controller Interface

IEEE ah. sub 1GHz WLAN for IoT. What lies beneath Wi-Fi HaLow. Eduard Garcia-Villegas, Elena López-Aguilera Dept. of Network Engineering

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

Eclipse IOT day April 3016 LoRa Overview. Wyres SAS 2016

BT-22 Product Specification

WLAN b/g interference into ZigBee networks

Transcription:

Section 7. Wireless Communication Outline Wireless Communication with 802.15.4/Zigbee Protocol Introduction to Freescale MC12311 802.15.4/Zigbee Protocol TWR-12311 Module TWR-MC12311 Smart Radio Features MC12311 sub-1 GHz system-in-package operating from 315 MHz to 960 MHz Programmable 32 KB flash memory and 2 KB RAM Programmable output power from -18 dbm to +17 dbm in 1 db steps Two SMA antenna connectors Unbalance input/output port Power amplifier output High sensitivity: Down to -120 dbm at 1.2 Kbps On-board BDM port for MCU flash reprogramming and in-circuit hardware debugging USB port to interface with PC LEDs and switches for demonstration, monitoring and control TWR-MC12311 Software Solutions S (Simple Media Access Controller) This codebase provides simple communication and test apps based on drivers/phy utilities available as source code. This environment is useful for hardware and RF debug, hardware standards certification, and developing proprietary applications. IEEE 802.15.4 with custom PHY layer The Freescale is a robust, mature codebase useful for developing networking solutions. Freescale is implementing an IEEE 802.15.4 -compatible custom sub-1 GHz PHY template that can be used across different frequency bands. This capability allows users to build powerful networking solutions on a known, stable codebase. Wireless MBUS stack Freescale is porting an existing wireless MBUS codebase to the MC12311 platform which will be available through an external partner. Different Wireless Protocols 1. Why ZigBee? We have WiFi, Cellular, Bluetooth, Why another Standard? Standard Wi-Fi (802.11) Bluetooth (802.15.1) ZigBee (802.15.4) Bandwidth Up to 54Mbps 1Mbps 250kbps Power Consump 400+mA TX, standby 20mA 40mA TX, standby 0.2mA 30mA TX, standby 3uA Protocol Stack Size Advantages Applications 100+KB High data rate Internet browsing, PC networking, file transfers ~100+KB 4-32KB Interoperabilit y, cable replacement Long battery life, low cost Wireless USB, handset, headset Remote control, batteryoperated products, sensors

Battery Life Examples Home Area Network/Personal Area Network Home Networking Automotive Networks Industrial Networks Interactive Toys Remote Metering ZigBee Physical Layer Overview Operating Frequency Bands The IEEE 802.15.4 is a standard developed for Wireless Personal Area Networks (WPANs). An over the air data rate of 250 kbit/s in the 2.4 GHz band. 16 independent communication channels in the 2.4 GHz band. Large networks (up to 65534 devices). Devices use carrier sense multiple access with collision avoidance (CSMA- CA) to access the medium. Two topologies: star and p2p, both topologies use one and only one central device, the PAN coordinator, that is the principal controller of the network: Low power consumption. Devices use Energy Detection (ED) for channel selection. Devices inform the application about the quality of the wireless link - Link Quality Indication (LQI). 868MHz / 915MHz PHY 2.4 GHz PHY Channel 0 Channels 1-10 868.3 MHz 902 MHz Channels 11-26 2 MHz 928 MHz 5 MHz 2.4 GHz 2.4835 GHz Packet Structure Preamble (4 bytes) synchronization Start of Frame Delimiter (1 byte) Frame Length (1 byte) Data field up to 125 Bytes Preamble Start of Frame Delimiter Frame Length 1 B Payload Data 6 Bytes 0-125 Bytes FCS 2B Physical Layer Primitives PHY Data Service PD-DATA exchange data packets between and PHY e.g. /*************************************** *Function: Transmit data packet *Parameters: packet pointer *Return:status **************************************/ int pd_data_request(tx_packet_t *packet) PHY Management Service PLME-CCA clear channel assessment PLME-ED - energy detection PLME-GET / -SET retrieve/set PHY PIB (PAN Info Base) parameters PLME-TRX-ENABLE enable/disable transceiver

3. Layer System Overview Two Types of Devices Full function device (FFD) Any topology: Star, P2P (both use one and only one central device: the PAN coordinator) Network coordinator capable Talks to any other device Reduced function device (RFD) Limited to star topology Cannot become a network coordinator Talks only to a network coordinator Very simple implementation Long Addresses and Short Addresses Frame Structure All devices have 64 bit IEEE addresses Short addresses (2 bytes long) can be allocated Addressing modes: Network + device identifier (star) Source/destination identifier (peer-peer) PHY Layer Synch. Header (SHR) Layer PHY Header (PHR) Header (MHR) Payload Service Data Unit (MSDU) Protocol Data Unit (MPDU) PHY Service Data Unit (PSDU) Footer (MFR) 4 Types of Frames: Data Frame Beacon Frame Acknowledgment Frame Command Frame Data Frame Format Is one of two most basic and important structures in 15.4. Provides up to 104 byte data payload capacity Data sequence numbering ensures that packets are tracked Robust structure improves reception in difficult conditions Frame Check Sequence (FCS) validates error-free data Acknowledgment Frame Format The other most important structure for 15.4: It provides active feedback from receiver to sender that packet was received without error. Short packet that takes advantage of standards-specified quiet time immediately after data packet transmission.

Command Frame Format Is a mechanism for remote control and configuration of client nodes Allows a centralized network manager to configure individual clients no matter how large the network Beacon Frame Format Beacons add a new level of functionality to a network. Client devices can wake up only when a beacon is to be broadcast, listen for their address, and if not heard, return to sleep. Beacons are important for mesh and cluster tree networks to keep all of the nodes synchronized without requiring nodes to consume precious battery energy listening for long periods of time. Two Operation Modes Data Service Beacon Mode: Beacon Frames Transmitted by network coordinator to synchronize data transfers. Non Beacon Mode: Data transmission can take place at any time Traffic Types: Periodic data Application defined rate (e.g. sensors) Intermittent data Application/external stimulus defined rate (e.g. light switch) Repetitive low latency data Allocation of time slots (e.g. mouse) Transmitter MCPS-DATA.request MCPS-DATA.confirm Transmitter Channel access Acknowledgement (if requested) Data frame Receiver MCPS-DATA.indication Receiver Primitives Creating Applications Using ZigBee 1" Data Service MCPS-DATA exchange data packets between and PHY MCPS-PURGE purge an MSDU from the transaction queue Management Service MLME-ASSOCIATE/DISASSOCIATE network association MLME-SYNC / SYNC-LOSS - device synchronization MLME-SCAN - scan radio channels MLME- COMM-STATUS communication status MLME-GET / -SET retrieve/set PIB parameters MLME-START / BEACON-NOTIFY beacon management MLME-POLL - beaconless synchronization MLME-GTS - GTS management MLME-RESET request for MLME to perform reset MLME-ORPHAN - orphan device management MLME-RX-ENABLE - enabling/disabling of radio system 1. Basic Setup Initialization: by calling Init_802_15_4() Resetting: using MLME-RESET.request Implementing SAP s 2. Starting a New PAN: After setup, MLME,MCPS, and ASP can be accessed by apps First thing is to set up a coordinator because all IEEE 802.15.4 Standard PANs must have a PAN coordinator.

Creating Applications Using ZigBee 2" 3. Energy Detection Scan The first task that a PAN coordinator must perform is to choose which radio frequency to use for its PAN. Selective or all channel scan using mask bits in scanchannels! A channel that showed no sign of activity at the time of the scan, shows an energy level of approximately 0x00. how long to scan on each channel is specified in scanduration parameter A byte value is returned for each channel: pedlist[0] contains the result for channel 11, pedlist[1] contains the result for channel 12 and so on. pedlist[15] for channel 26 Creating Applications Using ZigBee 3" 4. Choosing Short Address All units come with a pre-assigned long address, but a short address must be assigned before starting the PAN. Otherwise, the start request will fail. Because the PAN coordinator is the first unit to participate in its own PAN, it can chose any short address for itself. The short address must be different from 0xFFFF. A long address is 8 bytes long; a short address is 2 bytes long. 5. Choosing PAN ID the last thing required before a PAN coordinator can start a PAN, is for the coordinator to select an identification number for the PAN which is called the PANid, that must be unique in the logical channel. Creating Applications Using ZigBee 4" 6. Starting a PAN After choosing a logical channel, PANid, and short address, it is time to start up the PAN using the MLME_START.request primitive. The pancoordinator parameter indicates whether the start request is to start up a PAN for a PAN coordinator or for a coordinator without PAN coordinator capability. beaconorder and superframeorder parameters are set to 0x0F because users want to start a non-beacon network. Finally, the securityenable parameter tells the MLME if it should apply any security to the transactions taking place over the air. Application Support Features Profile: an agreement on a series of messages defining an application space (for example, Home Controls Lighting ) Endpoint: a physical dimension added to a single ZigBee radio that permits support for multiple applications, addressed by the Endpoint number (0-31) Interface: a logical extension, defined per Endpoint, which permits advertisement of multiple Profiles per Endpoint (to support proprietary extensions, backward compatibility and other application needs) Key Relationships: Maximum of 30 Endpoints per ZigBee device (0 is reserved to describe the device itself and 31 is reserved for broadcast messaging to all endpoints) Maximum of 8 Interfaces per Endpoint One Profile described per Interface