Atmel AVR2060: BitCloud ZigBee Light Link Quick Start Guide [APPLICATION NOTE]
42004B
−
AVR
−
08/2012
7
3.
Demo application
The reference application involves color light devices and color scene controller devices, which are both defined in the
ZigBee Light Link Profile specification
. Both types of devices are emulated by Key Remote Control boards.
The application demonstrates controlling color lights by color scene controllers. All main features of the ZigBee Light
Link profile are implemented:
•
A ZigBee Light Link network has no coordinator
•
Touchlink commissioning – network parameters are transferred to a new light from a scene controller, while
the scene controller is kept close to the light
•
Lights are ZigBee routers to propagate messages across the network
•
Multiple scene controllers may be used to control same or different sets of lights
•
Application data and network parameters are saved to non-volatile memory to restore the state after reset,
power off, etc.
•
Light control functionality, including On/Off, Level (brightness), Color (Hue, Saturation), Groups, and Scenes
To use the demo application, at least one device should be programmed with a color light application’s firmware image,
and one device should be programmed with a color scene controller application’s firmware image.
3.1
Launching the demo
To launch the demo one color scene controller and one color light are needed. More devices (lights or controllers) may
be added as required.
•
Assemble devices as described in Section
•
Program devices with pre-built images of the demo application via JTAG (as described in Section
). The
pre-built images are located in the
\Evaluation Tools\ZLLDemo
directory. Image files are used in the
following way:
•
ZLLDemo_<SoC>_Light_LCD.hex
– for a color light based on RCB mounted on a Key Remote
Control board
•
ZLLDemo_<SoC>_Light_LED.hex
– for a color light based on a sole RCB board
•
ZLLDemo_<SoC>_Remote.hex
– for a color scene controller
<SoC>
is either
ATmega128RFA1
or
ATmega256RFR2
•
Power on the devices
•
Perform a touchlink procedure between the color light and the color scene controller by holding the PWR
button on the controller’s Key Remote, to form a network
•
Use color scene controller’s buttons to control the color light (see Section
)
Optionally:
•
RCBs placed onto Key Remote Control boards may be connected to a PC via UART to observe information
about sent and received commands in a terminal program on the PC. UART set up is described in Step 5 in
Section
. In the application’s source code UART is configured in
\Applications\ZLLDemo\common\src\debug.c
•
More color light devices and color scene controller devices may be added through touchlink with the controller
device that is already in the network
3.2
Color light’s functions
A color light device indicates its light status via LEDs on the RCB board or via the LCD screen on the Key Remote
Control board if RCB is attached to the Key Remote Control board.