Advertisement

Quick Links

April 2009
Downloaded from
Elcodis.com
electronic components distributor
Introduction
This document describes the SNDEV-260 ZigBee® kit which is a full-featured tool kit which
offers all the hardware and software needed for deployment of wireless networks for remote
monitoring, sensing, and control-network applications based on the ZigBee® standard.
The kit provides a complete hardware/software development environment and network
system (3 nodes) that uses the SN260 ZigBee® network processor and the EmberZnet™
ZigBee® advanced wireless protocol stack.
The kit facilitates application development with sample applications and a complete software
tool set that includes Ember's InSight™ Desktop with Network Traffic Analyzer to display
network and node activity in real time.
This user guide is intended to provide an overall description of the software and hardware
requirements for the SNDEV-260 ZigBee® kit, instructions for setting up the hardware and
building the wireless application examples as well as describing known limitations and
issues at release time.
Due to the total compatibility between the SN260 and EM260, and the partnership between
the two companies, some documents have been kindly supplied by Ember.
List of key words
EmberZNet:
ZigBee® stack running over the SN260 silicon
EZSP:
Ember ZigBee® Serial Protocol
HAL:
Hardware Abstraction Layer
ISA:
InSight™ Adapter
ISD:
InSight™ Desktop
POE:
Power Over Ethernet
RCM:
Radio Communication Module
RIDE:
Raisonance Integrated Development Environment
User manual
SNDEV-260 ZigBee® kit
Rev 6
UM0433
1/40
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ZigBee SNDEV-260 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST ZigBee SNDEV-260

  • Page 1 EZSP: Ember ZigBee® Serial Protocol HAL: Hardware Abstraction Layer ISA: InSight™ Adapter ISD: InSight™ Desktop POE: Power Over Ethernet RCM: Radio Communication Module RIDE: Raisonance Integrated Development Environment April 2009 Rev 6 1/40 www.st.com Downloaded from Elcodis.com electronic components distributor...
  • Page 2: Table Of Contents

    Contents UM0433 Contents Release notes ..........4 SNDEV-260 kit hardware and software content .
  • Page 3 UM0433 Contents Limitations and support ........39 Revision history .
  • Page 4: Release Notes

    Release notes UM0433 Release notes The SNDEV-260 kit library package supports the STMicroelectronics STM32F103x microcontroller whose hardware daughterboard is supplied with the kit. It also supports STMicroelectronics’ STR71xF, STR75xF and STR91xF microcontrollers which are not part of the kit. The ST7LITE39 microcontroller is no longer supported. 4/40 Downloaded from Elcodis.com...
  • Page 5: Sndev-260 Kit Hardware And Software Content

    SN260 RCM works combined with a ST host microcontroller (STM32F103RBT6), using the kit application board. The RCM directly attaches to the kit application board which contains the ST microcontroller daughter board. The ZigBee application runs from the ST microcontroller and communicates with the SN260 through the EZSP APIs.
  • Page 6: Reva Board For Zigbee

    VDD settings for 1.8V, 3.3V and 5V microcontrollers ● USB powered, no external power required In addition, an USB cable for programming the ST microcontroller using the RIDE toolset (and also to power the overall board) is provided. Note: It is also possible to power the REva board using an external power supply (9V) and setting the REva power jumper to the specific position (in particular, this configuration is used with the IAR toolset).
  • Page 7: Insight Adapter

    UM0433 SNDEV-260 kit hardware and software content 2.1.4 InSight adapter The SNDEV-260 kit includes InSight Adapter which connects the application board to the Ethernet. Each adapter transmits network data collected by InSight Port and conveys it over its Ethernet connection to InSight Desktop tool. It also picks up any messages or new software that is addressed to this board, and processes emulation and debug commands.
  • Page 8: Software Components

    SNDEV-260 kit hardware and software content UM0433 Software components The SNDEV-260 ZigBee kit includes the following software components: ● EmberZnet™ ZigBee compliant networking stack ● EZSP library for driving the SN260 (by STMicroelectronics) or EM260 (by Ember) ZigBee devices ● HAL library for addressing some of the hardware platform devices and capabilities ●...
  • Page 9 (EZSP APIs) ezsp_hal.rprj Ride7 project for building the libs ezsp_hal.lib library image (used for STM32F103x and STR7x-STR9x microcontrollers) Board/ST microcontroller dependencies config header files include HAL header files HAL sources files (HAL APIs) include...
  • Page 10 SNDEV-260 kit hardware and software content UM0433 The util directory includes functions for handling the ZigBee source routing, security, fragmentation, network, ZDO and command line interface. Figure 2 describes the util directory layout. Figure 2. util directory layout util include Header file for source routing functions table Source routing functions...
  • Page 11: Ride7 Toolset

    EUI64 Node ID. It can be used just for checking that the application board, ST microcontroller and SN260 RCM modules are correctly connected and communicating. It does not enable the use of any ZigBee networking features.
  • Page 12: Iar Toolset

    SNDEV-260 kit hardware and software content UM0433 2.2.4 IAR toolset The IAR Embedded Workbench IDE for ARM toolset (version 4.42A which supports the ARM Cortex processor) is also used for building and running applications. The IAR Embedded Workbench IDE for ARM is a very powerful integrated development environment used for developing and managing complete embedded applications projects.
  • Page 13: Hardware Setup

    0.1-inch pitch sockets present in the wrapping zone (they allow direct connection of the RCM module to the REva ZigBee platform). Plug the ST microcontroller daughter board into the specific REva socket. If using the Ride7 toolset, set the REva power jumper according to the settings described in Section 2.3.2...
  • Page 14: Reva Power Area

    Table 1. Settings when using STM32F103x, STR71x, -75x and -91x daughter boards Jumper Setting Purpose Exclusively used for the SN260 to the ST microcontroller Unfitted serial communication over the SPI interface. Fitted Enable the BT5 button (available for application use).
  • Page 15: Daughter Board Jumper Settings

    UM0433 SNDEV-260 kit hardware and software content IAR environment (IAR J-Link JTAG emulator and external power supply) When using the REva power jumper settings in an IAR environment, set the jumper for an external power supply as shown in Figure Figure 5.
  • Page 16: Raisonance Rlink Jumper Settings

    SNDEV-260 kit hardware and software content UM0433 Figure 7. Boot mode setting for STR71x daughter board REva STR75x daughter board For the REva STR75x daughter board, Table 4 shows the default settings. Table 4. REva STR75x daughter board Jumper Setting Purpose Boot0 = 0 Fitted...
  • Page 17: Setting Up The Insight Adapter

    UM0433 SNDEV-260 kit hardware and software content 2.3.6 Setting up the InSight adapter As shipped, InSight adapters are configured with DHCP mode enabled and a preassigned host-name. Each InSight adapter carries a label with its host-name. Hostnames for all InSight adapters in the kit also appear on a printed hardware ID list, which are mapped to their EUI-64 identifiers, and the serial numbers of matching radio communication modules.
  • Page 18 SNDEV-260 kit hardware and software content UM0433 To remove the InSight adapter follows these steps: Unplug the InSight port cable from the radio communication module. Unplug the InSight port cable from the InSight adapter. Power off the Insight adapter. To perform a hardware reset of an InSight adapter, press its red reset button in front. You can reset the software for the InSight adapter simply connecting or disconnecting an Ethernet cable from the application board.
  • Page 19: Building The Ezsp And Hal Libraries

    UM0433 SNDEV-260 kit hardware and software content Building the EZSP and HAL libraries The library software relies on the software and build system framework introduced in the library layout section. What follows is a short introduction, aimed at getting enough knowledge to be able to build the software library using the Ride7 toolset.
  • Page 20 SNDEV-260 kit hardware and software content UM0433 Setup a serial COM through RS232 (for all microcontrollers) Connect a serial cable between the PC serial port and the REva SER1 port. Open a HyperTerminal on the serial COM port with the following configuration (the application messages and /or interactions come through the serial HyperTerminal): –...
  • Page 21: Sensor, Sleepy Sensor And Sink Applications

    UM0433 SNDEV-260 kit hardware and software content 2.5.2 Sensor, sleepy sensor and sink applications The sensor, sleepy sensor and sink applications set a distributed sensors network. They show how a single device collects data from multiple devices. In these simple applications, the 2 sensor (or sleepy sensor) nodes collect data and send it periodically to a sink node.
  • Page 22 Three pre-built-images of the subscribed sensor, sleepy sensor and sink applications for the STM32F103x microcontroller are already present in the bin directory. To download the sensor.hex image into the ST microcontroller Flash, follow these steps: Connect the REva USB cable between the PC and the RLink.
  • Page 23: Light And Switch Applications

    UM0433 SNDEV-260 kit hardware and software content STM32F103x and STR71x-STR9x microcontrollers specific building steps (IAR toolset) Open the IAR toolset. From the File, Open, Workspace menu, open the app\sink_sensor\app\IAR\sensor.eww IAR workspace. From the View menu, select Workspace to display the supported projects. (A window is displayed on the left side of the IAR environment.) From the Workspace selector window, select the application configuration according to the microcontroller to be addressed:...
  • Page 24 Two pre-built images of the subscribed light and switch applications images for the STM32F103x microcontroller are already present in the bin directory. To download the light.hex image into the ST microcontroller Flash and run the light application, follow these steps: Connect the REva USB cable between the PC and the RLink.
  • Page 25 UM0433 SNDEV-260 kit hardware and software content From the Options, Project Properties, Cortex RLink, Advanced Options menu, open the options dialog box, select Write Target Flash Now and choose the bin\light.hex image file. Wait for the image to download into the Flash. Set up the serial communication channel as described in Section 2.5.1 on page If using the virtual COM, reset the corresponding communication channel as described...
  • Page 26: Range Test Application

    It requires a minimum of two nodes. The range test application runs directly over the SN260 module (no interaction with the ST microcontroller is required) so the application needs to be downloaded on it. The following sections describe how download the range test application inside the SN260 processor.
  • Page 27 UM0433 SNDEV-260 kit hardware and software content Build and run the version application A short introduction follows about how to build and run the application. STM32F103x and STR7x-9x microcontrollers specific building steps (Ride7 toolset) Open the Ride7 toolset and open the Ride7 ezsp_hal.rprj project. Compile the library following the instructions on Section 2.4: Building the EZSP and HAL libraries on page...
  • Page 28 Load and run a version pre-built image (Ride7 toolset) A pre-built image of the version application for the STM32F103x microcontroller is already present in the bin directory. To download the version image into the ST microcontroller Flash and run the version application, follow these steps: Connect the REva USB cable between the PC and the RLink.
  • Page 29 UM0433 SNDEV-260 kit hardware and software content To download the version application From the Project menu, select Debug. Wait for the image to download into the Flash memory. From the Debug menu, select GO. From the Debug menu, select Stop Debugging. Set up the serial communication channel as described in Section 2.5.1 on page If using the virtual COM, reset the corresponding communication channel as described...
  • Page 30: Setting Up A Network

    Setting up a network UM0433 Setting up a network Setting up a sink and sensor ZigBee network Using the SNDEV-260 kit, it is possible to setup a 1-sink, 2-sensor (sleepy sensor) ZigBee network by following these steps: Build the sink application following the HW/SW instructions included in Section 2.5.2: Sensor, sleepy sensor and sink applications on page 21 and download it in one of the...
  • Page 31 UM0433 Setting up a network Figure 9 provides a high level view of the SNDEV-260 hardware components and connections when using with the sink, sensors wireless application examples. Figure 9. Setup of the SNDEV-260 ZigBee network: sink and sensors (or sleepy sensors) applications 31/40 Downloaded from...
  • Page 32: Setting Up A Light And Switch Zigbee Network

    Setting up a network UM0433 Setting up a light and switch ZigBee network Using the SNDEV-260 kit, it is possible to setup a 1-light, 2-switch ZigBee network by following these steps: Build the light application following the HW/SW instructions in Section 2.5.3: Light and switch applications on page 23 and download it into one of the three SNDEV-260...
  • Page 33 UM0433 Setting up a network Figure 10 provides a high level view of the SNDEV-260 hardware components and connections when using with the light, switches wireless application examples. Figure 10. Setup of the SNDEV-260 ZigBee network: light and switches applications 33/40 Downloaded from Elcodis.com...
  • Page 34: Setting Up A Zigbee Network For Rf Testing

    Setting up a network UM0433 Setting up a ZigBee network for RF testing Using the SN260DEV kit, it is possible to setup a 2- or 3-node (1 transmitter + 1/2 receivers) ZigBee network by following these steps: Download the range test application image into both SNDEV-260 Kit modules following the instructions in Section 2.5.4: Range test application on page For each network node, open a telnet connection to the TCP port 4900 on the InSight...
  • Page 35: Monitoring Network Activity

    UM0433 Setting up a network Monitoring network activity After the ZigBee network is formed, the InSight Desktop tool can be used to monitor and debug the network activity. The InSight Desktop displays the overall node and network activities in realtime and in a non intrusive way. It provides a rich and flexible interface to Ember embedded networks, which helps you develop and debug new network applications.
  • Page 36 Setting up a network UM0433 Note: Custom device folders have no functional impact on devices or their interaction. InSight Desktop creates a new adapters folder New Group. Select the folder name. Type the folder's new name, then press Enter. Click on a node to be moved and drag it to the new folder. For multiple selections, use Shift-Click and Ctrl-Click for contiguous and non-contiguous selections, respectively.
  • Page 37: Updating The Emberznet Stack Image

    Update the stack image using the Insight adapter tool Preliminary steps Unplug the ST microcontroller daughter board from the application board (do not power it). Connect the SN260 RCM module to the application board. Set each of the ISA Power Select to Int position.
  • Page 38 Updating the EmberZNet stack image UM0433 Type the following command to load the STM32_upload_stack_3_3_1_spi.hex application into the STM32F103RBT6 microcontroller Flash memory: run.bat STM32 STM32_upload_stack_3.3.1_spi.hex During the upload process, LEDs D7 and D6 on the REva board indicate the process status: ●...
  • Page 39 UM0433 Limitations and support Limitations and support For any questions about the library and issue notifications, refer to the specific link on the STMicroelectronics web site. Revision history Table 5. Document revision history Date Revision Changes 31-May-2007 Initial release. Power selection jumper on the ST7LITE39 daughter board set to 3.3V (Default configuration at delivery) and not to 5V.
  • Page 40 No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.

Table of Contents