9 Zigbee
9 Zigbee
1
Sensor Network Challenges
Communication?
2
Wireless Communication
Wireless communication standards:
IEEE 802.11 a/b/g
Bluetooth
GSM
What makes them unattractive for WSN:
Power hungry (need big batteries)
Complexity (need lots of clock cycles and memory)
New protocol for WSN:
802.15.4 and Zigbee (ratified in Dec 14, 2004)
3
Technology Space
Complexity,
Power,
Cost
802.11a
802.11b 802.11g
11Mbps 54Mbps
Bluetooth
720 kbps
802.15.4
Zigbee
250 kbps
“Mica2”/
cc1000 38.4 kbps
Data rate
4
Wireless Standards
ZigBee™ Bluetooth™ GPRS/GSM
Wi-Fi™ 802.11b
802.15.4 802.15.1 1XRTT/CDMA
Monitoring &
Application Focus Control
Cable Replacement Web, Video, Email WAN, Voice/Data
5
Why NOT 802.11 ?
The Cost of Throughput
6
IEEE 802.11b example
7
How About Bluetooth ? ?
The Cost of Universalism
8
Bluetooth (2)
9
15.4/ZigBee and Bluetooth
10
15.4 Protocol Built for the Mission
15.4 Protocol was developed for very different reasons than Bluetooth
802.15.4
Very low duty cycle, very long primary battery life applications as well as mains-powered
Static and dynamic mesh, cluster tree and star network structures with potentially a very large
number (>>65534) of client units, low latency available as required
Ability to remain quiescent for long periods of time without communicating to the network
Bluetooth
Moderate duty cycle, secondary battery operation where battery lasts about the same as master
unit
Wire replacement for consumer devices that need moderate data rates with very high QoS and
very low, guaranteed latency
Quasi-static star network structure with up to 7 clients (and ability to participate in more than
one network simultaneously)
Generally used in applications where either power is cycled (headsets, cellphones) or mains-
powered (printers, car kits)
Protocol differences can lead to tremendous optimizations in power consumption
11
802.15.4/ZigBee vs Bluetooth
Bluetooth 30 days
(park mode @ 1.28s)
12
What is Zigbee
ZigBee is a published specification set of high level
communication protocols for:
Low data rate, low power, low cost wireless systems
operating in unlicensed RF domain
Formely known as
PURLnet, RF-Lite, Firefly, and HomeRF Lite
13
How about Lora & LoraWan?
LoRa ™ (Long Range) is a modulation technique based on the
Spread-Spectrum technique which is a variant of Chirp Spread
Spectrum (CSS) that maintains low power characteristics as the
same as FSK modulation but significantly increases
communication range significantly compared to others.
5 Km urban area
15 Km rural area
Data rate: 0,3 ~ 50 Kbps (LoRa modulation)
Bandwidth
– 430MHz for Asia
– 780MHz for China
– 433MHz or 866MHz for Europe
–14915MHz for USA
15
ZigBee Applications
16
Zigbee General
Low power
battery life multi-month to years
Multiple topologies
star, peer-to-peer, mesh
Addressing space: 64 bits
Question: how many nodes?
Fully hand-shake protocol (reliability)
Range: 50m typical
5-500m based on environment
17
Zigbee Intended Traffic
Periodic data
Intermittent data
Application defined rate (e.g., sensors)
External stimulus defined rate (e.g., light switch)
Low latency data
18
ZigBee and OSI Model
OSI 7-Layer Model Technology Examples
• (MAC)
CSMA/CD (Carrier
Layer 1: Physical (PHY) Sensing Multiple Access
With Collision Detection)
19
Zigbee Protocol Stack
***
21
ZigBee: PHY
The radio uses Digital Spread Spectrum Signaling
(DSSS)
Conventional DSSS for 868MHz and 915MHz bands
Orthogonal Signaling (4 bits per symbol) for 2.4GHz band
Number of channels
16 channels in the 2.4GHz ISM band
10 channels in the 915MHz
one channel in the 868MHz
22
ZigBee: MAC
Employs 64-bit IEEE & 16-bit short addresses
Three device types specified
Network Coordinator
Full Function Device (FFD)
Reduced Function Device (RFD)
Simple frame structure
Reliable delivery of data
Association/disassociation
AES-128 security
CSMA-CA channel access
Optional superframe structure with beacons
Optional GTS mechanism
23
ZigBee as Mesh Networking
ZigBee Coordinator
ZigBee Router/FFD
ZigBee RFD
24
PHY – MAC Interaction Example
27
How A ZigBee Network Forms
Devices are pre-programmed for their network function
Coordinator scans to find an unused channel to start a network
Router scans to find an active channel to join, then permits other devices to
join
End Device will always try to join an existing network
28
ZigBee Stack Architecture: Addressing
29
ZigBee Stack Architecture: Addressing (2)
30
ZigBee Routing
Routing table entry:
Destination Address (2 bytes)
Route status (3 bits)
Next Hop (2 bytes)
A device wishing to discover or repair a route issues a route request command frame
which is broadcast throughout the network
When the intended destination receives the route request command frame it responds
with at least one route reply command frame
Potential routes are evaluated with respect to a routing cost metric at both source and
destination
31
ZigBee NWK Parameters
nwkMaxDepth and nwkMaxChildren
nwkMaxRouters
Size of the routing table
Size of neighbor table
Size of route discovery table
Number of reserved routing table entries
How many packets to buffer pending route discovery
How many packets to buffer on behalf of end devices
Routing cost calculation
nwkSymLink
nwkUseTreeRouting
32
PHY Performance
Bluetooth
33
Data Frame format
34
Acknowledgement Frame Format
35
MAC Command Frame format
36
Beacon Frame format
37
Home/Light Commercial Spaces
38
Industrial/Commercial Spaces
Energy, diagnostics, e-Business
Warehouses, Fleet management, Factory, Supermarkets, services
Office complexes
• Gateway or Field Service links to
Gas/Water/Electric meter, HVAC sensors & equipment
Smoke, CO, H2O detector – Monitored to suggest PM, product updates,
status changes
Refrigeration case or appliance
• Nodes link to PC for database storage
Equipment management services & Preventative – PC Modem calls retailer, Service Provider, or
maintenance Corp headquarters
Security services – Corp headquarters remotely monitors assets,
billing, energy management
Lighting control
Assembly line and work flow, Inventory
Materials processing systems (heat, gas flow, cooling, Field Service
chemical) or mobile
worker
Temp. Database
Sensor Gateway Security
Sensor
Back End
Mfg Flow
Telephone Server
Cable line
Materials HVAC
Corp
handling
Service Office Retailer
39
Provider
40