Zigbee_MeterId_Server_Router Application Description

How to use the Meter Identification cluster on a device acting as a Server 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 Meter Identification cluster. Once the Zigbee mesh network is created, the user can send requests from the client to the server through push buttons SW1 and SW2.

Keywords

Connectivity, Zigbee, Zigbee protocol, 802.15.4 protocol, Meter Identification cluster

Hardware Requirements

For this application it is requested to have:

Demo use case

    

               Coord.                                                                  Router
             +---------+                                                             +---------+
             |         |                                                             |         |                                       
             | MeterID |                                                             | MeterID |
             [ Client  |                                                             | Server  |  During MeterId Server Init :
             |         |                                                             |         |  <-- ZbZclAttrStringWriteShort(ZCL_METER_ID_ATTR_COMPANY_NAME)
             |         |                                                             |         |  <-- ZbZclAttrIntegerWrite(ZCL_METER_ID_ATTR_METER_TYPE_ID)
             |         |                                                             |         |  <-- ZbZclAttrIntegerWrite(ZCL_METER_ID_ATTR_DATA_QUAL_ID)
             |         |                                                             |         |  <-- ZbZclAttrStringWriteShort(ZCL_METER_ID_ATTR_POD)
             |         |                                                             |         |
             |         |                                                             |         |
             |         |                                                             |         |
             |         |    ZbZclReadReq(ZCL_METER_ID_ATTR_COMPANY_NAME)             |         |
  PushB SW1=>|         | ----------------------------------------------------------> |         |
             |         | <---------------------------------------------------------- |         |
             |         |                                                             |         | 
             |         |    ZbZclReadReq(ZCL_METER_ID_ATTR_METER_TYPE_ID,            |         |
             |         |   ZCL_METER_ID_ATTR_DATA_QUAL_ID & ZCL_METER_ID_ATTR_POD)   |         |
  PushB SW2=>|         | ----------------------------------------------------------> |         |
             |         | <---------------------------------------------------------- |         |
             |         |                                                             |         |
             +---------+                                                             +---------+
  

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.