19
1 Hello ZigBee Speaker : 施施施 Advisor : 施施施

1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline 1.3 ZigBee in the Marketplace 1.4 Hello ZigBee (A First ZigBee Network) 1.5 ZigBee Home Automation

Embed Size (px)

Citation preview

Page 1: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

1

Hello ZigBee

Speaker : 施創宏Advisor : 吳坤熹

Page 2: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

2

Outline

1.3 ZigBee in the Marketplace 1.4 Hello ZigBee (A First ZigBee Network) 1.5 ZigBee Home Automation 1.6 ZigBee Speak 1.7 ZigBee Architecture

Page 3: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

3

1.3 ZigBee in the Marketplace ZigBee is beginning to be found in many,

many applications.

Page 4: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

4

Application

Home Automation Commercial Building Automation Industrial Plant Monitoring Automatic Metering Initiative Personal Home and Health Care Telecommunications Applications

Page 5: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

5

Telecom Application Information Services

These services could advertise specials, services, or sales (at your option) based on the location of your cell phone.

Page 6: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

6

1.4 Hello ZigBee (A First ZigBee Network) The concept of this example is very

simple.

Page 7: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

7

So what happens from a ZigBee perspective? The HA OnOffLight Zigbee Coordinator (Z

C) forms the network. The HA OnOffSwitch joins the network. The HA OnOffSwitch finds the light and bi

nds to it. The HA OnOffSwitch can toggle the light

with SW1.

Page 8: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

8

Packet sequence number If you look at Seq. No. 5, you’ll see the H

A OnOffSwitch joining the network with an Association Request.

Look at Seq. No. 11 and you’ll see the HA OnOffSwitch sending out the Match Descriptor request. It receives the response on Seq. No. 17, and now knows where the light can be found in the network.

Page 9: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

9

Page 10: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

10

Page 11: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

11

Four frames in this packet The IEEE 802.15.4 (or MAC) frame

responsible for the PAN ID and the per-hop information

The ZigBee network (NWK) frame responsible for multi-hop communication

The ZigBee application (APS) frame responsible for the applications

The ZigBee Cluster Library (ZCL) frame contains specific application commands

Page 12: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

12

Abbreviated source code If the HA OnOffSwitch is started first, it will kee

p trying to join until the HA OnOffLight forms the network, then the switch will join it

Page 13: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

13

Abbreviated source code

Page 14: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

14

1.5 ZigBee Home Automation Example:A ZigBee Coordinator (ZC) , ZigBee Router (ZR) , ZigBee End-Device (ZED)

Page 15: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

15

Freescale NSK(Network starter kit ) Boards NCB(Network Control Board)

2X16LCD screen. SRB (Sensor Remote Board)

3-axis accelerometer and sensor.

Page 16: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

16

ZigBee communicate Individual nodes. Group. “Identify” mode.

ZigBee devices remember their settings across resets and power outages.

Page 17: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

17

1.6 ZigBee Speak ZigBee Glossary Terms

Page 18: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

18

1.7 ZigBee Architecture

Page 19: 1 Hello ZigBee Speaker : 施創宏 Advisor : 吳坤熹. 2 Outline  1.3 ZigBee in the Marketplace  1.4 Hello ZigBee (A First ZigBee Network)  1.5 ZigBee Home Automation

19

ZigBee model PHY layer

Simply translates packets into over-the-air bits and back again MAC layer

Provides the concept of a network, including a PAN ID. Not multi-hop or mesh.

NWK layer Mesh networking. Broadcasting packets . Encrypted.

APS layer The APS layer also filters out duplicate messages that may

have been sent up by the NWK layer. ZDO layer

It provides services to discover other nodes and services in the network.