Green Power Temperature Sensor
This document discusses how to use the Green Power Temperature Sensor Sample App and the different parts that compose it. Green Power Temperature Sensor Sample Application is an example which exercises different features of TI Z-Stack for a green power device implementation.
Some of the features exercised include:
- Green Power application id configuration for source id or IEEE.
- Security level configuration.
- Auto commissioning.
- Sequence number capabilities.
- Temperature Sensor device that send “Commissioning data frame” and “Attribute Reporting data frame”.
- Report attributes functionality and configuration.
Hardware Prerequisites
Software Prerequisites
- Code Composer Studio(CCS) v7.3 or higher
Functional Description
Software Overview
This section describes software components and the corresponding source file.
Application Files
- gpd_temperaturesensor.c/.h: Contains the application’s event loop, device initialization function calls (for timers, peripherals, Nvm, LEDs, Switches), Application notifications and all Temperature Sensor specific logic.
- gpd_temperaturesensor_data.c: Contains the Green Power Data Frame definitions for this sample application.
- main.c Defines the application task, the application stack size.
- gpd_config.h This file contains the configuration parameters for a Green Power Device.
Example Usage
This section describes how to use this sample application.
Buttons
BTN-1
: Sends Commissioning GPDF.BTN-2
: Sends Attribute Reporting GPDF.
LEDs
DIO6
: Reflect when the green power device finishes GPDF send by a 500ms blink. If there is a failure during send, the LED1 will remain ON.DIO7
: Reflect when the green power device starts a GPDF send by a 500ms blink.
Commissioning the device Into the network
Green Power Devices can be commissioned to a zigbee network by sending a commissioning GPDF, a GPDF with auto-commissioning or a commissioning tool. A zigbee device with green power proxy capabilities can create an entry for a Green Power Device with the commissioning data. The proxy device will translate the GPDF commands to ZCL notifcations for the zigbee network.
Commissioning the device Into the network
Green Power Devices can be commissioned to a zigbee network by sending a commissioning GPDF, a GPDF with auto-commissioning or a commissioning tool. A zigbee device with green power proxy capabilities can create an entry for a Green Power Device with the commissioning data. The proxy device will translate the GPDF commands to ZCL notifcations for the zigbee network.
Interfacing with the Light Sink Example App
Once the Thermostat Sink and another routing device are in the same network, put the Thermostat Sink in GP Commissioning Mode from the App Menu in the Green Power Sink Commissioning Screen.
Green Power Commissioning screen
Send the Commissioning GPDF from the GP Temperature Sensor. Then from the Green Power Sink Commissioning Screen disable the GP commissioning mode.
Green Power Commissioning screen
Once the GP commissioning mode is disabled, sending the Attribute Reporting GPDF with the GP Temperature Sendor will update the remote temperature value.
NOTE: If the temperature is not updated just repeat the commissioning process and try again.