background image

 

 

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

42029A

AVR

09/2012 

5

Table 4-1.  Fuse settings for the precompiled binaries. 

Board or module 

MCU 

Extended 

High 

Low 

RCB128RFA1 

ATmega128RFA1 

0xFE 

0x9D 

0xC2 

RCB231 

ATmega1281 

0xFE 

0x9D 

0xC2 

ZigBit 

ATmega1281 

0xFE 

0x9D 

0xC2 

4.3 

Running the application 

After all boards are programmed connect coordinator board to the PC and run the WSNMonitor application. Observe 
the coordinator and other node icons appearing on the screen. Refer to 

[2]

 for details on how to use the hardware and 

PC software. 

5. 

Using provided projects 

5.1 

Overview 

Applications are located in the 

apps

 directory in the SDK. All sample applications in the Lightweight Mesh SDK come 

with the project files for Atmel Studio, IAR Embedded Workbench and GNU make utility. 

All Lightweight Mesh applications include a configuration file 

config.h

. This file contains settings for the application and 

the stack. WSNDemo application settings 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 also determines emulated device type: 

  0x0000 – Coordinator 

  0x0001-0x7fff – Router 

  0x8000-0xfffe – End Device 

APP_CHANNEL 

Radio transceiver channel. Valid range for 2.4GHz radios is 11 – 26 (0x0b – 0x1a) 

APP_PANID 

Network identifier 

APP_SENDING_INTERVAL 

This parameter has a different meaning for different device types: 

  Coordinator: interval between sending sensor values to the UART 

  Router: Interval between reporting sensor values to the coordinator 

  End Device: Sleep interval 

APP_ENDPOINT 

Application main data communication endpoint 

APP_OTA_ENDPOINT 

Over-the-Air upgrade service endpoint 

APP_SECURITY_KEY 

Security encryption key 

Note: 

For normal network operation all devices should have different network addresses. There is no automatic 

address assignment mechanism, so it is the developer’s responsibility to ensure that addresses are 
unique. 

Refer to the respective development environment documentation for the information on how to compile and debug 
projects. 

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

Отзывы: