background image

 

 

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

42029A

AVR

09/2012 

6

5.2 

Over-the-Air upgrade 

WSNDemo sample application includes a limited demo of the Over-the-Air (OTA) upgrade feature. Lightweight Mesh 
SDK comes with a set of tools required to perform OTA upgrades. For further assistance with using this feature, please 
contact technical support (

[email protected]

). 

6. 

Creating a new application 

6.1 

Starting from a template application 

The best way to start a new standalone application is to use the provided 

Template

 application as a base, and make 

custom modifications. Using template project files will ensure that all necessary components are included in the build, 
and that all required definitions are present. The template application can be found in the 

<SDK Root>/apps/Template

 

directory. 

6.2 

Starting from scratch 

If Lightweight Mesh has to be integrated into 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 

definitions that are required for normal Lightweight Mesh operation. 

Table 6-1.  Required files. 

Platform 

Files 

Common for all platforms 

<SDK Root>\nwk\src\nwk.c 
<SDK Root>\nwk\src\nwkDataReq.c 
<SDK Root>\nwk\src\nwkSecurity.c 
<SDK Root>\nwk\src\nwkFrame.c 
<SDK Root>\nwk\src\nwkRoute.c 
<SDK Root>\nwk\src\nwkRx.c 
<SDK Root>\nwk\src\nwkTx.c 
<SDK Root>\sys\src\sys.c 
<SDK Root>\sys\src\sysTimer.c 
<SDK Root>\sys\src\sysEncrypt.c (only if security is enabled) 

ZigBit 

<SDK Root>\hal\atmega1281\src\hal.c 
<SDK Root>\hal\atmega1281\src\halPhy.c 
<SDK Root>\hal\atmega1281\src\halTimer.c 
<SDK Root>\phy\at86rf230\src\phy.c 

STK600-mega128rfa1, 
RCB128RFA1 

<SDK Root>\hal\atmega128rfa1\src\hal.c 
<SDK Root>\hal\atmega128rfa1\src\halTimer.c 
<SDK Root>\phy\atmega128rfa1\src\phy.c 

RCB231 

<SDK Root>\hal\atmega1281\src\hal.c 
<SDK Root>\hal\atmega1281\src\halPhy.c 
<SDK Root>\hal\atmega1281\src\halTimer.c 
<SDK Root>\phy\at86rf231\src\phy.c 

 

 

 

 

 

Содержание 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...

Отзывы: