Zigbee_TempMeas_Client_Coord Application Description

How to use the Temperature Measurement cluster on a device acting as a Client within a Centralized Zigbee network.

The purpose of this application is to show how to create a Zigbee centralized network, and how to communicate from one node to another one using the Temperature Measurement cluster. Once the Zigbee mesh network is created, the Server sends regularly the Temperature to Client. The user can stop or restart Temperature evolution on Server through push buttons SW2 and SW1.

Keywords

Connectivity, Zigbee, Zigbee protocol, 802.15.4 protocol, Temperature Measurement cluster

Hardware Requirements

For this application it is requested to have:

Demo use case

    
    

               Coord.                                                                    Router
             +----------+                                                              +----------+
             |          |                                                              |          |                                       
             | TempMeas |                                                              | TempMeas |
             [ Client   |                                                              | Server   |  - Temperature Server during Init 
             |          |                                                              |          |    launch a 500 ms Periodic Timer
             |          |                                                              |          |  
             |          |                                                              |          |  - Every 500 ms (Green Led toggling)
             |          |                                                              |          |    * Read the Temperature Sensor (if exist)
             |          |                                                              |          |      or simulate it with RNG.
             |          |                                                              |          |    * <= ZbZclAttrIntegerWrite(ZCL_TEMP_MEAS_ATTR_MEAS_VAL) 
             |          |  After a Router was connected :                              |          |
             |          |  ZbZclAttrReportConfigReq(ZCL_TEMP_MEAS_ATTR_MEAS_VAL, 5sec) |          |
             |          | -----------------------------------------------------------> |          |
             |          | <----------------------------------------------------------- |          |
             |          |                                                              |          |
             |          | <-------------- Report (every 5 seconds) ------------------- |          |
             |          |                                                              |          |             
             |          |                                                              |          | <= PushB SW1 : Start/Restart 500 ms Periodic Timer. (Green Led toggling)     
             |          |                                                              |          |          
             |          |                                                              |          | <= PushB SW2 : Stop 500 ms Periodic Timer.(Stop Green Led toggling)      
             |          |                                                              |          |          
             +----------+                                                              +----------+
  

Application Setup

Note: When LED Red, Green and Blue are toggling it is indicating an error has occurred on application.

Hardware and Software environment

Traces

Note

By default, this application runs with Zigbee PRO stack R23.
If you want to run this application using Zigbee PRO stack R22, you should replace ZigBeeProR23_FFD.a by ZigBeeProR22_FFD.a and ZigBeeProR23_RFD.a by ZigBeeProR22_RFD.a and ZigBeeClusters.a by ZigBeeClustersR22.a in the build environment.
Also, set in the project setup compilation flag CONFIG_ZB_REV=22.