Atmel AVR2052
47
8200M-AVR-11/11
11.3 Pre-built images
The SDK comes with a set of ready-to-use binary images of the WSNDemo
application. It includes a set of images for different roles, which are preconfigured with
distinct MAC addresses so they can be used for creating a small ZigBee network right
away. The image name is formed according to the following scheme:
WSNDemo_<role>_<board>_<rf_chip>_<region>_<MCU>.<extension>
To specify the node role, put
Coord
,
Router
, or
EndDev
for coordinator, router, and
end device, respectively. To program with JTAG, use files with a
.hex
extension.
.srec
files are loaded with the serial bootloader.
Region
is an optional parameter that
specifies the radio frequency used by the image according to the frequency band of
the specified region. Possible options are
US
,
EU,
and
China
. For example, to use
JTAG to program a device with an ATxmega256A3 MCU on an STK600 board and an
RF212 radio acting as coordinator for use in the US, use the file with name
WSNDemo_Coord_Stk600_Rf212_US_Atxmega256a3.hex
NOTE
Default images are preconfigured to use Extended PAN ID
0xAAAAAAAAAAAAAAAA
and
operate on channel
0x0F
(for RF231 and RF230 radios) or channel
0x01
and channel
page 0 (for RF212 radio).
11.4 Running WSNDemo
11.4.1 Starting WSNDemo
To run the WSN Demo application, proceed as follows:
1. Set up the hardware, as described in Section
. Make sure to connect the
LEDs and UART as described.
2. Install the Atmel BitCloud SDK, as described in Section
3. Program one device with the coordinator image file and other with either the
router or end device images, as described in, as described in Section
4. Attach the Atmel STK600 #1 (coordinator) RS-232 connector to a PC COM port.
5. Run WSNMonitor (see Section
6. Power on and reset the rest of the nodes.
11.4.2 Monitoring WSNDemo activity
Network activity can be monitored in two ways:
•
Observing the STK600 boards’ color LEDs (see
•
Monitoring the network topology through the WSNMonitor installed on a PC
Table 11-6.
LED indication for the STK600 boards used in WSNDemo.
Node state
LED0 state
LED1 state
LED2 state
Searching for network
Blinking
OFF
OFF
Joined to network
ON
+ receiving data
Blinking
+ sending data to UART
(coordinator only)
Blinking
Sleeping (end device only)
OFF
OFF
OFF