Академический Документы
Профессиональный Документы
Культура Документы
This Application Note introduces the Jennic ZigBee PRO Smart Energy (SE) solution. The
key topics covered are:
• ZigBee PRO Smart Energy profile
• ZigBee PRO Smart Energy clusters
• Jennic SE Demonstration overview
The accompanying software uses the Simple Metering cluster to exchange data between
a Metering Device and an In Premise Display (IPD). This application was developed using
the Jennic ZigBee PRO, JenOS and Smart Energy APIs.
1 Application Overview
This Application Note demonstrates how the Jennic ZigBee PRO Smart Energy (SE) solution
can be used to transfer data between a utility meter and customer display device. The data is
transferred using the Smart Energy profile clusters.
The ZigBee PRO and JenOS APIs, used in this demonstration, are supplied as part of the
Jennic JN5148 Software Developer’s Kit (SDK). The Smart Energy API is available is as an
upgrade/overlay for this SDK. Both components are available free-of-charge from the Support
section of the Jennic web site (www.jennic.com/support).
The latest versions of [R1] to [R4] can be found in the Support area of the Jennic web site, while
[R5] and [R6] can be found on the ZigBee Alliance web site (www.ZigBee.org).
Note: Key Establishment, Price, Time and Messaging clusters can be added
or removed at compilation by defining the relevant macros in zcl_options.h.
S C
C = Client S = Server
Note: Power failures can be simulated by pressing the Reset button on both
the controller board and sensor board.
5 Operating Instructions
1. Program a Jennic controller board with the binary file IPD_NODE.bin (the IPD will be a
ZigBee End Device) and with MAC address 0x01.
2. Program a Jennic sensor board with the binary file METER_NODE.bin (the Metering
Device will be the ZigBee Co-ordinator) and with MAC address 0x02.
3. Reset the IPD - LED D1 will now flash every second and the LCD panel will display the
Jennic logo and “ZigBee Pro SE IPD”.
4. Reset the Metering Device - LED D1 will now flash every second.
5. Press SW1 on the Metering Device - this will enable the Co-ordinator to accept children for
5 seconds (LED D1 will stop flashing).
6. Within the 5-second period, press SW1 on the IPD - the IPD will attempt to join the network
and the LCD panel will display “Joining Network” (LED D1 will stop flashing).
• If the IPD joins the network within the 5-second period, the LCD panel will display
“Joined Network”.
• If the IPD does not find a network, the LCD panel will display “Network Join Failed”. In
this case, repeat Steps 5 and 6 until the IPD joins the network.
7. On the IPD, when the LCD panel is displaying “Joined Network “, press SW1 to prompt the
IPD to start requesting SE data from the Metering Device.
The LCD panel will now display the Main screen. The IPD will query the Metering Device using
the SE ‘Read Attributes’ command every 10 seconds, and the summation value will increment
on the LCD panel. A further three screens can be accessed using the buttons below the LCD
panel (Tiers, Time, Price).
Main Screen
ZigBee Pro
Smart Energy IPD
Demand: 00000000 Kw
Summation: 00000063 Kw
12:00:07
Tiers Time Price
Pressing Sw1 or Sw3 will navigate to the Tier or Price screen, respectively, while pressing Sw2
will resynchronise the time with the Metering Device.
Tier Screen
ZigBee Pro
Smart Energy IPD
Tier 1: 00000063 Kw
Tier 2: 00000000 Kw
Tier 3: 00000000 Kw
Back
The Tier screen displays the summation that has been delivered on each pricing tier. The total
summation (from the Main screen) and Tier 1 summation are identical, as the Demo increments
both simultaneously. Pressing Sw2 will return you to the Main screen.
Price Screen
The Price screen displays the current price and the next upcoming price. The ‘Price’ column
shows the price per consumed unit (the formatting of this can be configured, as well as the
currency, decimal point, etc – refer to the ZigBee PRO Smart Energy API Reference Manual
(JN-RM-2046)). The ‘Start’ column shows the start-time for the price and the ‘Duration’ column
shows duration of the price, in minutes.
Pressing Sw1 will refresh the prices, Sw2 will return you to the Main screen and Sw3 will take
you to the Message screen.
Message Screen
ZigBee Pro
Smart Energy IPD
SE Messages
Test Message
Msg back
The Message screen displays the last received message from the Metering Device. Pressing
the Msg button (Sw1) will query the Metering Device for the latest message.
6 Compatibility
The software provided with this Application Note has been tested with the following Jennic kits
and SDK (Software Developer’s Kit) versions:
Product Types Part Numbers Version Supported Networking Protocols
Evaluation Kit JN5148-EK010 1.0 ZigBee PRO
JN5148 SDK Libraries JN-SW-4040 1.3 ZigBee PRO
JN5148 SDK Toolchain JN-SW-4041 1.1 ZigBee PRO
Note: This application uses the ZigBee PRO wireless network protocol,
which is only supported on the JN5148 wireless microcontroller. Eclipse
project files for the JN5148 device are provided.
To build the application and load it into the JN5148 boards, follow the instructions below:
1. Ensure that the project directory is located in
<JENNIC_SDK_ROOT>\Application
where <JENNIC_SDK_ROOT> is the path into which the SDK was installed.
2. Start the Eclipse platform and import the relevant project files (.project and .cproject) as
follows:
a) In Eclipse, follow the menu path File>Import to display the Import dialogue box.
b) In the dialogue box, expand General and select Existing Projects into Workspace.
c) Enable Select root directory and browse to the Jennic Application directory.
d) In the Projects box, select the project to be imported.
3. Build the project. To do this, use the drop-down list associated with the hammer icon in
the Eclipse toolbar to select the relevant build configuration – once selected, the project will
automatically build.
The binary files will be created in the relevant build configuration directory.
4. Load the resulting binary files into the boards from the appropriate build configuration
directory. You can do this directly from Eclipse or using the Jennic JN51xx Flash
Programmer (described in the JN51xx Flash Programmer User Guide (JN-UG-3007)).
Revision History
Version Notes
1.0 First release
1.1 Updated to include Price, Time, Key Establishment and Messaging
Important Notice
Jennic reserves the right to make corrections, modifications, enhancements, improvements and other changes to its products and
services at any time, and to discontinue any product or service without notice. Customers should obtain the latest relevant
information before placing orders, and should verify that such information is current and complete. All products are sold subject to
Jennic’s terms and conditions of sale, supplied at the time of order acknowledgment. Information relating to device applications, and
the like, is intended as suggestion only and may be superseded by updates. It is the customer’s responsibility to ensure that their
application meets their own specifications. Jennic makes no representation and gives no warranty relating to advice, support or
customer product design.
Jennic assumes no responsibility or liability for the use of any of its products, conveys no license or title under any patent, copyright
or mask work rights to these products, and makes no representations or warranties that these products are free from patent,
copyright or mask work infringement, unless otherwise specified.
Jennic products are not intended for use in life support systems/appliances or any systems where product malfunction can
reasonably be expected to result in personal injury, death, severe property damage or environmental damage. Jennic customers
using or selling Jennic products for use in such applications do so at their own risk and agree to fully indemnify Jennic for any
damages resulting from such use.
All trademarks are the property of their respective owners.
Jennic Ltd
Furnival Street
Sheffield
S1 4QT
United Kingdom
Tel: +44 (0)114 281 2655
Fax: +44 (0)114 281 2951
E-mail: info@jennic.com
For the contact details of your local Jennic office or distributor, refer to the Jennic web site: