background image

 

 

Atmel AVR2131: Lightweight Mesh Getting Started Guide [APPLICATION NOTE] 

42029A

AVR

09/2012 

4

3. 

WSNDemo sample application 

The WSNDemo application implements a typical wireless sensor network scenario, in which one central node collects 
the data from a network of sensors and passes this data over a serial connection for further processing. In the case of 
the WSNDemo this processing is performed by the WSNMonitor PC application. The BitCloud

®

 Quick Start Guide 

[2]

 

provides a detailed description of the WSNDemo application scenario, and instructions on how to use WSNMonitor. 

The majority of the information in 

[2]

 applies to the WSNDemo application running on top of Lightweight Mesh stack. 

However since BitCloud is a ZigBee

®

 PRO stack, there are a few differences in the protocol: 

 

Device types (Coordinator, Router and End Device) are simulated on the application level; there is no such 

separation in Lightweight Mesh on the stack level 

 

The value of the extended address field is set equal to the value of the short address field 

 

For all frames, the LQI and RSSI fields are filled in by the coordinator with the values of LQI and RSSI from the 

received frame. This means that nodes that are not connected to the coordinator directly will have the same 
values as the last node on the route to the coordinator 

 

Sensor data values are generated randomly on all platforms 

 

Sending data to the nodes on the network is not implemented and not supported in this demo application 

4. 

Using precompiled binaries 

4.1 

Overview 

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 network addresses so they can be used for creating a small sensor 
network right away. Precompiled binaries have the following naming convention: 

WSNDemo_ <Board> _<DeviceType>_<Address>.hex 

Here 

<Board>

 is a shortened name of the board or the module for which this image is compiled, 

<DeviceType>

 

specifies a logical device type (“Coord”, “Router” or “EndDev”) and 

<Address>

 is a preconfigured network address of 

the node. 

4.2 

Programming the boards 

To program the precompiled binaries provided with the SDK using Atmel Studio, follow the steps below: 

 

Start Atmel Studio 

 

Open “AVR Programming” dialog (Tools -> AVR Programming) 

 

Select correct tool, device, interface and press “Apply” 

 

Connect programming tool to the board and power on the board 

 

Press “Read” button located near the “Device ID” field. Make sure that Device ID is correct 

 

On the “Fuses” tab set the fuse values and then press “Program” to write them to the device. Refer t

Table 4-1

 

for correct fuse settings 

 

On the “Memories” tab, provide image file name in the “Flash” field and press “Program” 

 

Disconnect the programming tool and power cycle (or reset) the board. Device should be working now 

 
 
 

Содержание AVR2131

Страница 1: ...ication note is to introduce users to the Lightweight Mesh network protocol stack and typical application development process from Atmel This document describes how to start quickly with the Lightweig...

Страница 2: ...3 3 WSNDemo sample application 4 4 Using precompiled binaries 4 4 1 Overview 4 4 2 Programming the boards 4 4 3 Running the application 5 5 Using provided projects 5 5 1 Overview 5 5 2 Over the Air up...

Страница 3: ...128B1 AT86RF212 AT86RF231 RCB128RFA1 ATmega128RFA1 ATmega128RFA1 RCB231 ATmega1281 AT86RF231 All demonstrations in this document will use the RCB128RFA1 board 3 and the WSNDemo sample application as a...

Страница 4: ...inator Sensor data values are generated randomly on all platforms Sending data to the nodes on the network is not implemented and not supported in this demo application 4 Using precompiled binaries 4...

Страница 5: ...ettings are listed in Table 5 1 For system settings mentioned in the configuration file see 1 Table 5 1 WSNDemo application settings Parameter Description APP_ADDR Node network address This parameter...

Страница 6: ...nto a larger existing project it is recommended to include all required files and definitions into the existing project Table 6 1 Table 6 2 and Table 6 3 present a lists of files include paths and def...

Страница 7: ...e in the SDK Root hal directory ZigBit PHY_AT86RF230 HAL_ATMEGA1281 PLATFORM_ZIGBIT STK600 mega128rfa1 RCB128RFA1 PHY_ATMEGA128RFA1 HAL_ATMEGA128RFA1 PLATFORM_RCB128RFA1 RCB231 PHY_AT86RF231 HAL_ATMEG...

Страница 8: ...Atmel AVR2131 Lightweight Mesh Getting Started Guide APPLICATION NOTE 42029A AVR 09 2012 8 8 Revision History Doc Rev Date Comments 42029A 09 2012 Initial document release...

Страница 9: ...h the sale of Atmel products EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STAT...

Отзывы: