Top Banner
ZigBee and IEEE 802.15.4 A (tiny) introduction FUN Research Group i-Lab ETIPOPS Inria Lille – Nord Europe Etineo Roudy DAGHER mardi 15 avril 14
41

ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Oct 27, 2019

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee and IEEE 802.15.4 A (tiny) introduction

FUN Research Group i-Lab ETIPOPS Inria Lille – Nord Europe Etineo

Roudy DAGHER mardi 15 avril 14

Page 2: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

The ZigBee metaphor

A group of bees distributed in a large field want to relay a message to a hive :

1.  Each bee perform a specific zigzag dance 2.  The dance is repeated by the next bee slightly closer to the hive 3.  Repeat the process until the message reaches the hive

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 2

Page 3: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

OBJECTIVES

1. Background and Reference material for ZigBee and IEEE 802.15.4

2. The example of BitCloud stack implementation

3. Demo with SerialNet and protocol sniffing

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 3

Page 4: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

References

•  Books –  “ZigBee Wireless Networks and Transceivers”. Dr. Shahin Farahani. –  “Zigbee Wireless Networking”. Drew Gislason.

•  Tutorials –  Jennic: e-learning course

•  BitCloud Zigbee stack from Atmel –  Stack: AVR2050, AVR 2052, BitCloud API Reference –  OTAU : AVR2054, AVR2058 –  SerialNet: AVR2051

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 4

Page 5: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

OUTLINE

1. ZigBee Standard Essentials and pros

2. IEEE 802.15.4 standard essentials

3. Atmel BitCloud stack overview & demo(s)

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 5

Page 6: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

The ZigBee standard Some basics

1 mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 6

Page 7: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – “A” WSN standard

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Motivations -  Low cost, and ultra-low power consumption -  Unlicensed radio bands -  Flexible and extensible: on-line nodes add/removal -  Automatic network management & routing -  Interoperability & coexistence

•  Typical Application Areas: low data rates -  Building automation: ex. HVAC, light -  Monitoring: health care, vehicular, agriculture, water level, power consumption...etc

- 7

Page 8: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – “A” WPAN standard

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 8

Page 9: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Low Power Consumption

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Autonomous network devices ü  Battery powered ü  Energy harvesting

•  Enhancing power autonomy ü  Low duty cycle ü  Sleep mode ü  Modulation schemes

- 9

Page 10: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Easy to use

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Less cables -  No network cables -  Power supply if no battery

•  Configuration options -  Pre-configured: by manufacturer, ex. Car sensors system.

-  Self-configured: by end-user, ex. Home lighting system. -  Custom: by System Integrator, ex. An OEM product.

- 10

Page 11: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee Alliance

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  The ZigBee Alliance -  Defines the standards: spec + PICS

-  ZigBee & ZigBee PRO features -  ZigBee IP : ZigBee over IP (6LowPAN) -  Zigbee RF4CE : one to one communication

-  Defines a set of application profiles (ZSE, ZHA…)

•  Three compliancy levels -  ZigBee Certified Product -  ZigBee Compliant Platform -  ZigBee Manufacturer Specific (or Network Capable)

- 11

Page 12: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee Compliance

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Three compliancy levels ü  ZigBee Certified Product

ü  Permits the use of ZigBee name, literature & logos ü  Guarantees interoperability among products using the same public application profile

ü  ZigBee Manufacturer Specific (or Network Capable) ü  Permits the use of ZigBee name, literature & logos ü  Guarantees the product does not interfere with other ZigBee networks

ü  ZigBee Compliant Platform ü  Required by ZigBee stack vendors ü  Not required by product developers

- 12

Page 13: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee Compliance 2/2

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  No certification ü  Company must still join ZigBee Alliance ü  No use of ZigBee name, literature, or logos is permitted

- 13

Page 14: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Stack Software Architecture

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 14

Page 15: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee product example

mardi 15 avril 14 Introduction to ZigBee/802.15.4

Light Sensor

Light Controller

Zigbee Coordinator

Zigbee Router

Zigbee End Device

FFD RFD

Application Device Type

Logical Device Type

802.15.4 Device Type

End-user Perspective

Network Perspective

HW Capabilities Perspective

...

- 15

Page 16: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Radio Communication

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Channel Mask ü  Fixed ü  Best in List (agility)

•  Tx Range ü  100m outdoor ü  30m indoor ü  ~Km with amplifiers

•  Center freq in 2.4 GHz band

- 16

Page 17: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – coexistence with WIFI

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 17

Page 18: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – coexistence with BLUETOOTH

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 18

Page 19: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

802.15.4 – Network Topologies

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 19

Page 20: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Network Topologies

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 20

Page 21: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Data Communication Beacon-Enabled vs. Nonbeacon Networking

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 21

•  Contention-based channel access : CSMA/CA ü  First node that finds the channel free ü  That’s it !

•  Contention-free channel access : GTS per device ü  The PAN Coordinator syncs the nwk using beacons ü  All devices must wakeup periodically to resync.

Page 22: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Data Transfer 1/2 Beacon-Enabled vs. Nonbeacon Networking

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 22

Page 23: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – Data Transfer 2/2 Beacon-Enabled vs. Nonbeacon Networking

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 23

Page 24: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

The Atmel BitCloud stack A real world example

2 mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 24

Page 25: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Zigbee – Standard Stack architecture

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 25

Page 26: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

ZigBee – BitCloud Stack architecture

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 26

Page 27: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

mardi 15 avril 14 Introduction to ZigBee/802.15.4

BitCloud Supported platforms

- 27

Page 28: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Serialnet Application Principle

mardi 15 avril 14 Introduction to ZigBee/802.15.4

•  Network configuration and management •  Data transmission •  Power management •  Generic control •  Host interface control •  Hardware control •  Remote management

- 28

Page 29: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Serialnet Application Architecture

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 29

Page 30: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Serialnet example : coordinator

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 30

Page 31: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Serialnet example : router

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 31

Page 32: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Introduction to ZigBee/802.15.4 mardi 15 avril 14

Demos with serialnet Zigbee frames analysis

3 - 32

Page 33: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

BitCloud – Network creation Demo

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 33

1.  Coordinator starts the network : 1.  Beacon Request 2.  Beacon

2.  Router joins 1.  Beacon Request / Beacon 2.  Rejoin request/response and ACKs 3.  ZDP Device announcement - broadcast

3.  Link status messages

Page 34: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

BitCloud – Broadcast Demo

1.  Coord & router

2.  Router broadcasts a data message with radius 12

3.  Coordinator rebroadcasts: 1.  Radius is decremented 2.  Network frame is the same (src address) 3.  MAC frame changes (src address)

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 34

Page 35: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

NOM DU CHAPITRE Sous-titre facultatif

5 mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 35

Page 36: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 36

Page 37: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

NOM DU CHAPITRE Sous-titre facultatif

6 mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 37

Page 38: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 38

Page 39: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

NOM DU CHAPITRE Sous-titre facultatif

7 mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 39

Page 40: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

mardi 15 avril 14 Introduction to ZigBee/802.15.4 - 40

Page 41: ZigBee and IEEE 802.15 - team.inria.fr · ZigBee Alliance Introduction to ZigBee/802.15.4 mardi 15 avril 14 • The ZigBee Alliance - Defines the standards: spec + PICS - ZigBee &

Thank you ! Any Questions?

Inria Lille – Nord Europe Salle A22

https://team.inria.fr/fun/