ZigBee Specification
June 27, 2005
ZigBee Document 053474r06, Version 1.0
December 14th, 2004
Sponsored by: ZigBee Alliance
Accepted by ZigBee Alliance Board of Directors.
Abstract The ZigBee Specification describes the infrastructure and services available to
applications operating on the ZigBee platform.
Keywords ZigBee, Stack, Network, Application, Profile, Framework, Device description, Bind-
ing, Security
ZigBee Specification
2 Copyright © 2005 ZigBee Standards Organization. All rights reserved.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ZigBee Specification
3 Copyright © 2005 ZigBee Standards Organization. All rights reserved.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Legal Notice The ZigBee Specification is available to individuals, companies and institutions free of
charge for all non-commercial purposes (including university research, technical evalua-
tion, and development of non-commercial software, tools, or documentation). For ease of
use, clearly marked errata have been incorporated into this document. These errata may
not have been subjected to an Intellectual Property review, and as such, may contain
undeclared Necessary Claims. No part of this specification may be used in development
of a product for sale without becoming a member of ZigBee Alliance.
Copyright © ZigBee Alliance, Inc. (2005). All rights Reserved. This information within this
document is the property of the ZigBee Alliance and its use and disclosure are restricted.
Elements of ZigBee Alliance specifications may be subject to third party intellectual prop-
erty rights, including without limitation, patent, copyright or trademark rights (such a third
party may or may not be a member of ZigBee). ZigBee is not responsible and shall not be
held responsible in any manner for identifying or failing to identify any or all such third
party intellectual property rights.
This document and the information contained herein are provided on an “AS IS” basis
and ZigBee DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING WITH-
OUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT,
COPYRIGHT OR TRADEMARK RIGHTS) OR (B) ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-
INFRINGEMENT. IN NO EVENT WILL ZIGBEE BE LIABLE FOR ANY LOSS OF PROF-
ITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS,
OR FOR ANY OTHER DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTIAL,
PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND, IN CONTRACT OR IN
TORT, IN CONNECTION WITH THIS DOCUMENT OR THE INFORMATION CON-
TAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAM-
AGE. All Company, brand and product names may be trademarks that are the sole
property of their respective owners.
The above notice and this paragraph must be included on all copies of this document that
are made.
ZigBee Alliance, Inc.
2400 Camino Ramon, Suite 375
San Ramon, CA 94583
ZigBee Specification
4 Copyright © 2005 ZigBee Standards Organization. All rights reserved.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Copyright © 2005 ZigBee Standards Organization. All rights reserved. 5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Contents
Chapter 1 Application Layer Specification.....................................................29
1.1 General description ..........................................................................................................29
1.1.1 Application support sub-layer............................................................................... 29
1.1.2 Application framework.......................................................................................... 29
1.1.3 Addressing........................................................................................................... 30
1.1.4 Application communication fundamentals............................................................ 32
1.1.5 Discovery ............................................................................................................. 32
1.1.6 Binding................................................................................................................. 33
1.1.7 Messaging............................................................................................................ 34
1.1.8 ZigBee device objects.......................................................................................... 35
1.2 The ZigBee application support (APS) sub-layer ............................................................. 35
1.2.1 Scope................................................................................................................... 35
1.2.2 Purpose................................................................................................................ 36
1.2.3 Application support (APS) sub-layer overview..................................................... 36
1.2.4 Service specification ............................................................................................ 37
1.2.5 Frame formats...................................................................................................... 51
1.2.6 Command frames ................................................................................................ 56
1.2.7 Constants and PIB attributes ............................................................................... 56
1.2.8 Functional description.......................................................................................... 57
1.3 The ZigBee application framework................................................................................... 62
1.3.1 Creating a ZigBee profile ..................................................................................... 62
1.3.2 Standard data type formats.................................................................................. 64
1.3.3 ZigBee descriptors............................................................................................... 67
1.3.4 AF frame formats ................................................................................................. 77
1.3.5 KVP command frames......................................................................................... 81
1.3.6 Functional description.......................................................................................... 86
1.4 The ZigBee device profile................................................................................................. 86
1.4.1 Scope................................................................................................................... 86
1.4.2 Device Profile overview........................................................................................ 86
1.4.3 Client services...................................................................................................... 89
1.4.4 Server services .................................................................................................. 109
1.4.5 ZDP enumeration description ............................................................................ 132
1.4.6 Conformance ..................................................................................................... 133
1.5 The ZigBee device objects (ZDO) .................................................................................. 133
1.5.1 Scope................................................................................................................. 133
1.5.2 Device Object Descriptions................................................................................ 134
1.5.3 Layer Interface Description................................................................................ 136
1.5.4 System Usage.................................................................................................... 137
1.5.5 Object Definition and Behavior .......................................................................... 140
1.5.6 Configuration Attributes ..................................................................................... 151
Chapter 2 Network Specification...................................................................159
2.1 NWK layer status values ................................................................................................ 159
2.2 General description ........................................................................................................ 160
2.2.1 Network (NWK) layer overview.......................................................................... 160