Zigbee_Messaging_Client_Coord Application Description

How to use the Messaging cluster on a device acting as a Coordinator 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 Messaging cluster. Once the Zigbee mesh network is created, the Server can send messages to the Client through push buttons SW1/SW2.

Keywords

Connectivity, Zigbee, Zigbee protocol, 802.15.4 protocol, Messaging cluster

Hardware Requirements

For this application it is requested to have at least:

    
                 Router                                               Coord.
               +------------+                                      +------------+
               |            |                                      |            |
               | Messaging  |                                      | Messaging  |       
               | Server     |                                      | Client     | 
               |            |                                      |            |
   Short       |            |   Send "Hello" message               |            |
   PushB SW1=> |            | -----------------------------------> |            |=> immediate display
               |            |                                      |            | 
               |            |                                      |            |
   Long        |            |   Send "Hello" message               |            |
   PushB SW1   |            | -----------------------------------> |            |=> immediate display and ask for confirmation
               |            |                                      |            |
               |            |   Send confirmation for message ID 1 |            |
               |            | <----------------------------------- |            |<= PushB SW1
               |            |                                      |            |
               |            |                                      |            |
   Short       |            |   Send "Goodbye" message             |            |
   PushB SW2=> |            | -----------------------------------> |            |=> start wait of 10 seconds
               |            |                                      |            |
               |            |                                      |            |=> after 10 seconds, display message
               |            |                                      |            |
   Long        |            |   Send "Goodbye" message             |            |
   PushB SW2=> |            | -----------------------------------> |            |=> start wait of 10 seconds 
               |            |                                      |            |
               |            |                                      |            |=> after 10 seconds, display message
               |            |                                      |            |=> ask for confirmation
               |            |                                      |            |
               |            |  Send confirmation for message ID 2  |            |
               |            | <----------------------------------- |            |<= PushB SW1
               |            |                                      |            |
               |            |                                      |            |
   Short or    |            |                                      |            |
   Long        |            |                                      |            |
   PushB SW2=> |            |  Send "Goodbye" message              |            |
               |            | -----------------------------------> |            |=> start wait of 10 seconds
               |            |                                      |            |
               |            |  Send Cancel "Goodbye" message       |            |
   PushB SW3=> |            | -----------------------------------> |            |=> remove "Goodbye" message
               |            |                                      |            |
               |            |                                      |            |
               +------------+                                      +------------+

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.