background image

 

 

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

42029A

AVR

09/2012 

3

1. 

Introduction 

Atmel Lightweight Mesh is an easy to use proprietary low power wireless mesh network protocol. Lightweight Mesh was 
designed to address the needs of a wide range of wireless connectivity applications. Some of these applications 
include: 

 

Remote control 

 

Alarms and security 

 

Automatic Meter Reading (AMR) 

 

Home and commercial building automation 

 

Toys and educational equipment 

Lightweight Mesh is designed to work with all Atmel IEEE

®

 802.15.4 transceivers and SoCs. Currently the stack works 

with AVR

®

-based MCUs, but given its extreme portability and low resource requirements, it can be run on almost any 

Atmel MCU. 

Table 1-1

 gives a summary of the currently supported hardware platforms. 

Table 1-1.  Supported hardware platforms. 

Board or module 

MCU 

Radio Transceiver 

ZigBit

®

 (ATZB-24-B0, ATZB-24-A2) 

ATmega1281 

AT86RF230B 

STK

®

600-mega128rfa1 board (ATAVR128RFA1-EK1) 

ATmega128RFA1 

ATmega128RFA1 

XMEGA

®

-B1 Xplained and Rz600 radio modules 

(ATXMEGAB1-XPLD and ATAVRRZ600) 

ATxmega128B1 

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 an 

example, but the same techniques can be applied to any other development kit, or a custom board and application. 

2. 

Development tools 

A development toolchain consists of: 

 

An integrated development environment (for example, Atmel AVR Studio

®

 or IAR Embedded Workbench

®

), 

where sample applications may be modified, compiled, and debugged, 

 

a corresponding compiler toolchain (AVR-GCC, IAR

), which provides everything necessary to compile 

application source code into binary images, and 

 

a programming device (for example, JTAG), which may be used to program and debug the application on a 

target platform 

IAR Embedded Workbench for Atmel AVR 

[4]

 can be used to develop and debug applications for AVR-based platforms. 

The IAR IDE support’s editing of application source code, compilation, linking object modules with libraries, and 
application debugging. 

Atmel AVR Studio 5.1 

[5]

 or Atmel Studio 6 

[6]

 can be used to develop and debug applications for AVR-based 

platforms. Atmel Studio is equipped with the GCC toolchain and does not require external tools to compile Lightweight 
Mesh applications. 

Summary of Contents for AVR2131

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: