Top Banner
Copyright © 2004 ZigBee TM Alliance. All Rights Reserved. Wireless Control That Simply Works Designing a ZigBee Network ESS 2006, Birmingham David Egan Ember Corporation
23

Designing a ZigBee Network

Feb 03, 2022

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: Designing a ZigBee Network

Copyright © 2004 ZigBeeTM Alliance. All Rights Reserved.

Wireless Control That Simply Works

Designing a ZigBee Network

ESS 2006, Birmingham

David Egan

Ember Corporation

Page 2: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

2

Contents: Typical Network Design Issues

■ Traffic Patterns in different applications►Bandwidth, Latency, Reliability

►Data Throughput in a ZigBee network

■ Handling Interference with 802.11►Interference Detection and Channel Change

■ Asymmetric Links

■ Choosing Single Chip vs Dual-chip Solutions

Page 3: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

3

Traffic Requirements of Applications

■ Bandwidth► Estimate message sizes, frequency► Identify high bandwidth nodes► Be conservative – ensure a margin. Actual throughput can vary

with number of hops, security, retries, from 46kbps to 15kbps.■ Latency

► Estimate minimum latencies► Estimate path lengths► Conservative approximation: 10-15ms/hop in quiet networks

■ Reliability► Depends on latency, traffic► High latencies and low traffic mean high reliability is easy

Page 4: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

4

Network Patterns: Sensor

■ Most data flows in to central “gateway” device■ Occasional data flows from gateway device to outlying devices■ Data almost never flows between adjacent devices

Page 5: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

5

Network Patterns: Control

■ May be no central “gateway” node■ Data often flows from a local control node to a nearby actuator node■ Data almost never flows long distances across the network

Page 6: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

6

Network Patterns: Lessons

■ The same physical topology results in very different results for bandwidth usage, latency

■ The networks experience different failure modes

■ Networks may be a combination of the two

Page 7: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

7

Bandwidth and Topology

■ Even identical devices may experience different loading!

■ Bandwidth must be estimated as the maximum total passing through a device: NB: leave a margin!

Page 8: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

8

Typical Throughput – APS Messages

15.631.334.239.143.948.853.758.6

62.5

S1

S3

S5

0

5000

10000

15000

20000

25000

30000

35000

40000

45000

50000

Ap

plic

atio

n T

hro

ug

hp

ut

millisecond delayHops

Zigbee APS Messages EM250 - No Security, No Retry

Throughput –Data is for 91 byte payloadHighest throughput at single hop smallest interpacket delayPeaks at 46 kbps for application throughput

Performance drops after 2 hops due to packet lossEven at 5 hops, performance is higher than 25 kbps

Note: Throughput is based on expected throughput given the interpacket spacing and adjusted based on percent of successful packets from the test

Page 9: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

9

Typical Throughput – Adding APS Reply

15.631.334.239.143.948.8

53.758.6

62.5

S1

S3

S5

0

5000

10000

15000

20000

25000

30000

35000

40000

45000

50000

Ap

plicati

on

th

ou

gh

pu

t

m illisecond delayhops

Zigbee APS MessageEM250 - No Security, APS retry Throughput –Data is for 91 byte payloadHighest throughput at single hop with smallest interpacket delayPeak remains at 46 kbps for application throughput

Performance drops quickly as reply consumes additional bandwidthThere is a throughput penalty for knowing if message was delivered

Page 10: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

10

Typical Throughput – Adding Security

15.631.334.239.143.948.853.758.662.5

S1

S3

S5

S7

0

5000

10000

15000

20000

25000

30000

35000

40000

45000

50000

Ap

plicati

on

th

rou

gh

pu

t

m illisecond delay

hops

Zigbee APS Messages EM250 - Security, No retry Throughput –Data is for 73 byte payload (reduced maximum payload due to security)Highest throughput at single hop smallest interpacket delayPeaks at 37 kbps for application throughput

Smaller max payload decreases maximum throughputPerformance drops after 2 hops due to packet lossEven at 7 hops, performance is higher than 15 kbps

Page 11: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

11

15.4/.11 Channel Allocation - US

■ Some 15.4 channels are better than others even in a fully populated .11 network – 11, 15, 20, 25 and 26 best in US.

■ Doesn’t help in unmanaged .11 networks

US

802.11

802.15.4

Page 12: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

12

15.4/.11 Channel Allocation - Europe

■ Some 15.4 channels are better than others even in a fully populated .11 network: 15, 16, 21, 22 in Europe

■ Doesn’t help in unmanaged .11 networks

European

802.11

802.15.4

Page 13: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

13

Avoiding 802.11 Interference

■ 4 Main Objectives► Start with the best link budget possible for your

applicationMaximize output power

Get the best performing receiver you can

► Maximise distance from 802.11 interference to ZigBeedevices

► Maximise frequency separation between 802.11 and ZigBee networks

► Ensure you have enough time-separated retries - if no NWK retries present, make sure your application retries (APS or self-created)

Page 14: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

14

Getting the Best Link Margin

■There are two main factors in getting the best link margin

►TX Power►Receiver sensitivity/immunity to

interference

■TX Power - battery life, cost, and design complexity - on-chip vs off-chip PA

■Receiver - performance tradeoffs are built in by vendor - can be tough to extract from datasheets

■Antenna - a factor if you also control the 802.11 radio

802.11g (OFDM/54Mbps) Interferer on Channel 1

-100

-95

-90

-85

-80

-75

-70

-65

-60

-55

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

802.15.4 Channel

em2420

em250

em250 (boost)

Page 15: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

15

Maximising Frequency Separation

■ The best technique by far for protecting against 802.11 interference appears to be maximizing the frequency separation of the ZigBee and 802.11 channels

■ Two main techniques► Active deployment/installation control of both ZigBee and

802.11 channelsOffers the best flexibility for maximizing ZigBee and 802.11 density

May be possible in some buildings

► Automatic channel selectionAt network start, automatically detect and avoid 802.11

During operation, move the network if needed

Page 16: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

16

Dealing with Interference: Detection

■ Detect interference by tracking the reporting behavior of devices

■ Low LQI / High RSSI on inbound messages may assist decision

■ In a large network, multiple devices need to be involved in the detection – may be interferers on different channels in different areas of a building.

■ Intelligent selection of initial network channel can help avoid problems. ► Channels 11, 26 are at the extremes of the 2.4GHz range.► Channels 15, 16, 21, 22 sit between the non-overlapping

European 802.11 channels (not guaranteed!).

Page 17: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

17

Dealing with Interference: Channel Change

■ Sensor-type networks can use the gateway device to broadcast a channel change; other devices must automatically rejoin in this case. Devices that don’t hear the broadcast must search for the new network channel.

■ Control-type networks with an application-required central node can allow that node to control the change.

■ Other networks must devise a method for deciding to change the channel : must avoid multiple-network problems.

■ Pre-selection of a subset of 802.15.4 channels makes finding the network on a new channel easier.

Page 18: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

18

■ Asymmetric links are common in real deployments

■ Important that only symmetric links are used when performing route discovery, ensuring the best bi-directional link is established

■ Typically this is handled by the network stack.

95%

15%

A

B

D

C80%

99%

99%

Asymmetric Links

Page 19: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

19

Single Chip ZigBee vs Dual Chip ZigBee

Single Chip■ Lowest BOM cost

■ Lowest Power Consumption for battery operated devices such as light switches, temperature sensors etc.

■ Smallest pcb footprint

■ Ideal for new battery-operated products, especially sensors, remote controls, switches.

Dual Chip■ Existing Product may already

contain a microcontroller. Retrofit easier than redesign.

■ Gateway device may require more resources than single chip can provide.

■ Engineering team may not want to take on another micro, tools etc.

Page 20: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

20

MAC+PHYEmberZNet STACKUSER APPLICATION

PHYSICAL RADIO (PHY)PHYSICAL RADIO (PHY)

MEDIUM ACCESS (MAC)MEDIUM ACCESS (MAC)

APPAPP APPAPP …… ZDO

NWKNWK

APSAPSSSPSSP

Single Chip ZigBee

■ IEEE 802.15.4 compliant radio AND a microcontroller in a single chip.► => No external micro required.

■ Low passive component count for lower BOM cost.■ Small pcb footprint

Page 21: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

21

MAC+PHY

MACEmberZNet StackUSER APPLICATION

PHYSICAL RADIO (PHY)PHYSICAL RADIO (PHY)

MEDIUM ACCESS (MAC)MEDIUM ACCESS (MAC)

APPAPP APPAPP …… ZDO

NWKNWK

APSAPSSSPSSP

Dual Chip ZigBee / uC + RF Transceiver

■ IEEE 802.15.4 compliant Physical (PHY) and Medium Access (MAC) layers in RF Transceiver.■ ZigBee Stack and Application runs on the host micro, communicating with the RF Transceiver via high speed (SPI)

serial line.■ Processor support may be limited due to the work required to port a full ZIgBee stack.

SPI

Host Micro

Page 22: Designing a ZigBee Network

Wireless Control That Simply WorksZigBeeTM Alliance |Copyright © 2004. All Rights Reserved.

22

USER APPLICATION

MAC+PHY

EmberZNet STACK

PHYSICAL RADIO (PHY)PHYSICAL RADIO (PHY)

MEDIUM ACCESS (MAC)MEDIUM ACCESS (MAC)

APPAPP APPAPP …… ZDO

NWKNWK

APSAPSSSPSSP

ZigBee Network Processor

■ ZigBee Networking Stack runs on ZigBee Network Processor■ Applications run on a host processor communicating with the Network

Processor via high-speed serial port.■ Ideal for Gateway Applications and Retrofit of ZigBee to existing products.

ANYPROCESSOR

SPI, UART

Page 23: Designing a ZigBee Network

Copyright © 2004 ZigBeeTM Alliance. All Rights Reserved.

Wireless Control That Simply Works

Any Questions?