Copyright 2009 Texas Instruments, Inc. All rights reserved.
Smart Energy
Sample Application User’s Guide
Document Number: SWRU215
Texas Instruments, Inc.
San Diego, California USA
Smart Energy Sample Application User's Guide SWRU215 Version 1.0
i Copyright 2009 Texas Instruments, Inc. All rights reserved.
Revision Description Date
1.0 Initial release. 04/06/2009
Smart Energy Sample Application User's Guide SWRU215 Version 1.0
ii Copyright 2009 Texas Instruments, Inc. All rights reserved.
Table of Contents
1. INTRODUCTION................................................................................................................. 1
1.1. SCOPE .............................................................................................................................. 1
1.2. DEFINITIONS, ABBREVIATIONS, ACRONYMS .................................................................... 1
2. SETUP.................................................................................................................................... 3
2.1. REQUIRED TOOLS ............................................................................................................ 3
2.2. USING Z-CONVERTER TO TRANSFORM CERTICOM CERTIFICATES ................................... 3
2.3. SUPPORTED HARDWARE PLATFORMS .............................................................................. 5
3. GETTING STARTED.......................................................................................................... 5
3.1. BUILDING THE ESP, PCT, AND IPD APPLICATION INSTANCES ........................................ 5
3.2. CONFIGURING CERTICOM KEYS USING Z-TOOL .............................................................. 8
3.3. RUNNING THE ESP, PCT, AND IPD APPLICATIONS........................................................ 13
4. THEORY OF OPERATION ............................................................................................. 15
4.1. SE SECURE JOINING ....................................................................................................... 15
4.2. KEY ESTABLISHMENT .................................................................................................... 15
4.3. DEVICE AND SERVICE DISCOVERY................................................................................. 16
4.4. ESP................................................................................................................................ 17
4.5. SIMPLE METERING DEVICE ............................................................................................ 19
4.6. LOAD CONTROL DEVICE ................................................................................................ 20
4.7. PCT ............................................................................................................................... 23
4.8. IN PREMISE DISPLAY...................................................................................................... 26
4.9. RANGE EXTENDER ......................................................................................................... 27
5. LIMITATIONS................................................................................................................... 28
5.1. TRUST CENTER OPERATION ........................................................................................... 28
5.2. NETWORK MANAGER OPERATION ................................................................................. 28
5.3. SECURE JOINING OPERATION ......................................................................................... 28
5.4. KEY ESTABLISHMENT OPERATION................................................................................. 29
5.5. DEVICE STARTUP BEHAVIOR ......................................................................................... 29
5.6. LOAD CONTROL DEVICE BEHAVIOR .............................................................................. 29
5.7. ESP BEHAVIOR .............................................................................................................. 29
6. APPLICABLE DOCUMENTS.......................................................................................... 29
6.1. Z-STACK DOCUMENTS (PART OF THE Z-STACK INSTALLER) .......................................... 29
6.2. OTHER DOCUMENTS (WWW.ZIGBEE.ORG)...................................................................... 29
Smart Energy Sample Application User's Guide SWRU215 Version 1.0
iii Copyright 2009 Texas Instruments, Inc. All rights reserved.
Table of Figures
FIGURE 1: SYSTEM CONTEXT DIAGRAM ........................................................................................................................2
FIGURE 2: Z-CONVERTER GRAPHICAL INTERFACE ........................................................................................................4
FIGURE 3: FLOWCHART OF DEVICE STARUP LOGIC.....................................................................................................16
FIGURE 4: SEQUENCE DIAGRAM FOR A SIMPLE METERING DEVICE............................................................................19
FIGURE 5: SEQUENCE DIAGRAM FOR A LOAD CONTROL DEVICE................................................................................21
FIGURE 6: SEQUENCE DIAGRAM FOR A PCT...............................................................................................................24
FIGURE 7: SEQUENCE DIAGRAM FOR AN IN PREMISE DISPLAY...................................................................................26
FIGURE 8: SEQUENCE DIAGRAM FOR A RANGE EXTENDER.........................................................................................27
Smart Energy Sample Application User's Guide SWRU215 Version 1.0
1 Copyright 2009 Texas Instruments, Inc. All rights reserved.
1. Introduction
ZigBee Smart Energy (SE) is one of the public application profiles released for the ZigBee
2007 specification. It enables utility companies and their customers to directly communicate with
thermostats and other smart appliances; see www.zigbee.org for more information.
The Smart Energy Sample application (part of the Z-Stack installer for ZigBee 2007; covering
ZigBee and ZigBee PRO) is the optimal starting point to build your own SE application on top of
Texas Instruments’ Z-Stack (www.ti.com/z-stack).
1.1. Scope
This document describes how to use the Smart Energy Sample Application and discusses its
theory of operation. For a more general description of Smart Energy, the reader is referred to the
Zigbee Smart Energy specification available from www.zigbee.org. The reader should also
review the Z-Stack Smart Energy Developer’s Guide prior to using this document.
There are seven defined application instances within the IAR project:
a. Energy Service Portal (ESP) as a Coordinator
b. Metering Device as a Router and also as an End Device
c. In Premise Display as an End Device
d. Programmable Communicating Thermostat (PCT) as an End Device
e. Load Control Device as a Router
f. Range Extender as a Router
Figure 1 shows the usage model of how these sample application instances interact with the ESP.
1.2. Definitions, Abbreviations, Acronyms
Term Definition
CBKE Certificate-based Key Establishment
DUT Device Under Test
ECC Elliptic Curve Cryptography
HAN Home Area Network
SE Smart Energy
ZCL ZigBee Cluster Library
ESP Electronic Service Portal
PCT Programmable Communicating Thermostat
- 1
- 2
前往页