Z-Stack User's Guide - CC2430ZDK
F8W-2005-0036 Version 1.4.3
9
Copyright
2005-2007 Texas Instruments, Inc. All rights reserved.
6.2. Initial Loading of 64-Bit IEEE Address
Normally, Z-Stack loads the device’s 64-bit IEEE address from FLASH upon power-up or reset.
When the address has been reset (0xFFFFFFFFFFFFFFFF) by erasing the FLASH, the program
waits in a loop during startup, blinking LED1 (green). On SmartRF04EB boards, the LCD shows
the
►
character in all display positions. This prompts the user to establish a “temporary” address
by pressing SW5 (joystick center). On SmartRF04EB boards, the LCD now shows the 64-bit
address that was created. This temporary address allows Z-Stack to start normally, so that the
developer can later use Z-Tool to restore the proper 64-bit extended address, located on a sticker
on the bottom surface of the circuit board.
6.3. Running the Sample Application
Initially, place all the devices on the same table or work area. You will establish the network
while the devices are all in view of each other. Later, you can experiment with various distances
and different power-up sequences.
After each of the CC2430EM boards has been programmed with the “Demo” configuration of
the Z-Stack SampleApp, one of the boards needs to be designated as a ZigBee Coordinator. This
is done by placing a jumper across pins
P10-9
and
P10-11
on the SmartRF04EB, as shown in
Figure 7 below. Make sure that only one SmartRF04EB board has a jumper in this position.
Figure 7: SmartRF04EB Coordinator Jumper
Initially, begin execution of the programmed SampleApp by applying power to the device that is
configured as the ZigBee Coodinator. If LED1 (green) flashes, see Section 6.2 to determine
whether you need to create a temporary IEEE address for the board. The device now performs a
scan of the programmed ZigBee channel (see Section 7), temporarily flashing LED1. Once the
device successfully starts up a network, LED3 (yellow) will turn on and LED1 will stop flashing.
Next, power up a ZigBee Router device (no jumper on
P10)
. If LED1 (green) flashes, see
Section 6.2 to determine whether you need to create a temporary IEEE address for the board.
This device now scans the programmed ZigBee channel for a network, temporarily flashing
LED1. Once it joins the network started by the Coordinator, LED3 (yellow) will be turned on
and LED1 will stop flashing. If desired, turn on more Router devices and each of them will turn
on their LED3 after joining the network.
Once the network has been formed, the SampleApp will provide a very simple demonstration of
ZigBee wireless communication. The sample application performs the following three functions:
-
Periodic (about 5 seconds) broadcast of a message to all network devices
-
When button SW1 is pressed, broadcast of a message to devices subscribed to Group 1
-
When button SW2 is pressed, toggles a devices’ membership in Group 1