Zigbee_OTA_Client_Router Application Description

How to use the OTA 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 OTA cluster. Once the Zigbee mesh network is created, the user can send requests from the Client to the Server or vice-versa through push button SW1 on the Client or Server respecfully in order to initiate an OTA upgrade. The Client will reboot and jump to the OTA image immediately after a successful upgrade by undergoing a soft reset.

Keywords

Connectivity, Zigbee, Zigbee protocol, 802.15.4 protocol, OTA cluster

Hardware Requirements

For this application it is requested to have at least:


                                    Router                                                               Coord.
                                  +--------+                                                           +--------+
                                  |        |                                                           |        |
                      PushB SW1=> | OnOff  | => Green LED Start Toggling                               | OnOff  |
                                  | Client |                                                           | Server |
                                  |        |               ZbZclOtaClientQueryNextImageReq             |        |
                                  |        | --------------------------------------------------------> |        |
                                  |        |                                                           |        |
  Reboot and Jump to OTA Image <= |        |                            Start OTA Upgrade Procedure <= |        |
                                  |        |                    (Section 11.12 OTA Upgrade Diagram)    |        |
                                  |        |                                                           |        |
                         Reset => |        | => Reboot and Jump to Original Downloaded Image           |        |
                                  |        |                                                           |        |
                                  |        |               ZbZclOtaServerImageNotifyReq                |        |
      Green LED Start Toggling <= |        | <-------------------------------------------------------- |        |
                                  |        |               ZbZclOtaClientQueryNextImageReq             |        |
                                  |        | --------------------------------------------------------> |        |
                                  |        |                                                           |        |
  Reboot and Jump to OTA Image <= |        |                            Start OTA Upgrade Procedure <= |        |
                                  |        |                    (Section 11.12 OTA Upgrade Diagram)    |        |
                                  |        |                                                           |        |
                                  |        |               ZbZclOnOffClientToggleReq                   |        |
      PushB SW1 (On OTA Image) => |        | --------------------------------------------------------> |        | => Red LED Toggle
                                  |        |                                                           |        |
                         Reset => |        | => Reboot and Jump to Original Downloaded Image           |        |
                                  |        |                                                           |        |
                     PushB SW2 => |        | => Reboot and Jump to OTA Image                           |        |
                                  |        |                                                           |        |
                                  |        |                                              PushB SW2 => |        | => Print Availible Images for OTA Transfer
                                  |        |                                                           |        |
                                  +--------+                                                           +--------+
                                  

Application Setup

Note: When the Red, Green, and Blue LED are toggling, it is indicates an error has occurred in the application.

Hardware and Software environment

Traces