Freescale BeeStack Documentation Overview Document Number: BSDO Rev /2008

Similar documents
Upgrade the Solution With No Changes 2 Upgrade the Solution With No Changes If a Codebase does not contain updates to its properties, it is possible t

PCB Layout Guidelines for the MC1321x

Electrode Graphing Tool IIC Driver Errata Microcontroller Division

56F8300 BLDC Motor Control Application

MPC8349E-mITX-GP Board Errata

ColdFire Convert 1.0 Users Manual by: Ernest Holloway

Using the Project Board LCD Display at 3.3 volts

Mechanical Differences Between the 196-pin MAP-BGA and 196-pin PBGA Packages

56F805. BLDC Motor Control Application with Quadrature Encoder using Processor Expert TM Targeting Document. 56F bit Digital Signal Controllers

Component Development Environment Installation Guide

Using the Multi-Axis g-select Evaluation Boards

MC33696MODxxx Kit. 1 Overview. Freescale Semiconductor Quick Start Guide. Document Number: MC33696MODUG Rev. 0, 05/2007

Using IIC to Read ADC Values on MC9S08QG8

SynkroRF Network. User s Guide

Symphony SoundBite: Quick Start with Symphony Studio. Installation and Configuration

Updating the Firmware on USB SPI Boards (KITUSBSPIEVME, KITUSBSPIDGLEVME)

HC912D60A / HC912Dx128A 0.5µ Microcontrollers Mask sets 2K38K, 1L02H/2L02H/3L02H & K91D, 0L05H/1L05H/2L05H

etpu General Function Set (Set 1) David Paterson MCD Applications Engineer

USB Bootloader GUI User s Guide

MPC8260 IDMA Timing Diagrams

Introduction to LIN 2.0 Connectivity Using Volcano LTP

56F805. Digital Power Factor Correction using Processor Expert TM Targeting Document. 56F bit Digital Signal Controllers. freescale.

etpu Automotive Function Set (Set 2)

Functional Differences Between the DSP56307 and DSP56L307

Design Recommendations to Implement Compatibility Between the MC13783VK and the MC13783VK5

Clock Mode Selection for MSC8122 Mask Set K98M

MC33794 Touch Panel System Using E-Field Sensor Setup Instructions

MC33897 Single-Wire CAN Transceiver Reliability and Quality Documents

MC56F825x/MC56F824x (2M53V) Chip Errata

MPC5200(b) ATA MDMA, UDMA Functionality BestComm Setup Recommendations

Power Cycling Algorithm using the MMA73x0L 3-Axis Linear Accelerometer

MCF5216 Device Errata

MTIM Driver for the MC9S08GW64

Pad Configuration and GPIO Driver for MPC5500 Martin Kaspar, EMEAGTM, Roznov Daniel McKenna, MSG Applications, East Kilbride

Using the PowerQUICC II Auto-Load Feature

MPC7410 RISC Microprocessor Hardware Specifications Addendum for the MPC7410TxxnnnLE Series

56F Phase AC Induction Motor V/Hz Control using Processor ExpertTM Targeting Document 56F bit Digital Signal Controllers

SGTL5000 I 2 S DSP Mode

Optically-Isolated Multilink BDM Interface for the S08/S12 Microcontrollers by Michael A. Steffen

EchoRemote Evaluation Software for Windows

Interfacing HCS12 Microcontrollers to the MFR4200 FlexRay Controller

Interfacing MPC5xx Microcontrollers to the MFR4310 FlexRay Controller David Paterson MCD Applications, East Kilbride

BeeStack Consumer Private Profile. Reference Manual

Affected Chips Description Impact and Workaround

Gallium Arsenide PHEMT RF Power Field Effect Transistor

56F Phase Switched Reluctance Motor Control With Hall Sensors using Processor Expert Targeting Document

2005: 0.5 PQ-MDS-PCIEXP

Programming the Keyboard Interrupt Module (KBI) on HC(S)08 MCUs

Using the Knock Window etpu Function

Migrating from the MPC852T to the MPC875

Functional Differences Between DSP56302 and DSP56309 (formerly DSP56302A)

DSP56F827 Digital Signal Controller

MPR121 Jitter and False Touch Detection

XGATE Library: ATD Average Calculating a rolling average from ATD results

Utilizing Extra FC Credits for PCI Express Inbound Posted Memory Write Transactions in PowerQUICC III Devices

Differences Between the DSP56301, DSP56311, and DSP56321

MCF5445x Configuration and Boot Options Michael Norman Microcontroller Division

TLB Translation Setup for MPC745x and MPC744x in Non-Extended Mode

Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated

XGATE Library: Using the Freescale XGATE Software Library Steve McAslan MCD Applications, East Kilbride

MSC8144AMC-S Getting Started Guide

Integrating FreeMASTER-Time Debugging Tool with CodeWarrior for Microcontrollers v10.x Project

MPXHZ6400A. Freescale Semiconductor Technical Data. MPXHZ6400A Rev 0, 08/2005

Implementing a Double-Precision (32-Bit) Complex FIR Filter on the MSC8101 Device

Using the Serial Peripheral Interface (SPI) Module on 68HC(9)08 Microcontrollers

LFAE Bootloader Example and Interface for use with AN2546 Daniel McKenna MCD Applications, East Kilbride Scotland

Managing Failure Detections and Using Required Components to Meet ISO7637 pulse 1 on MC33903/4/5 Common Mode Choke Implementation

IIC Driver for the MC9S08GW64

MPR083 Proximity Evaluation Kit User s Guide

16-bit MCU: S12XHY256 Automotive Cluster Demo by: Jose M. Cisneros Steven McLaughlin Applications Engineer Microcontroller Solutions Group, Scotland

I.MX Platform Advanced Toolkit Standard Version User s Guide

Ordering Information Industry standard SOT343R package Device weight = g (typical) Available only in tape and reel packaging Available only in

Simplified Device Data Structures for the High-End ColdFire Family USB Modules Melissa Hunter Applications Microcontroller Solutions Group

PDB Driver for the MC9S08GW64

MPR121 Proximity Detection

Introduction to the S12G Family EEPROM Including a Comparison between the S08DZ, S12XE, and S12P Families

Using the CAU and mmcau in ColdFire, ColdFire+ and Kinetis

Keil uvision 4 Kinetis Support for Freescale MQX RTOS Release Notes

Using the ColdFire EMAC Unit to Improve RSA Performance Jim Stephens Freescale Semiconductor

Getting Started with the Student Learning Kit Application Module Using the MC9S12DT256 Microcontroller Application Module

i.mx31 PDK Power Measurement with GUI

Using the ColdFire+ Family Enhanced EEPROM Functionality Melissa Hunter Derrick Klotz

MPC8260 SDRAM Timing Diagrams

Using the Kinetis Family Enhanced EEPROM Functionality

56F Phase Switched Reluctance Motor Sensorless Control using Processor Expert Targeting Document

MCF54451, MCF54452, MCF54453, MCF54454,

PQ-MDS-QOC3 Module. HW Getting Started Guide. Contents. About This Document. Required Reading. Definitions, Acronyms, and Abbreviations

Using an I 2 C EEPROM During MSC8157 Initialization

Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series

PowerQUICC HDLC Support and Example Code

Use of PGA on MC56F800x Interaction of PDB, PGA and ADC

MBC13720 SiGe:C Low Noise Amplifier with Bypass Switch Device

1 Introduction. 2 Problem statement. Freescale Semiconductor Engineering Bulletin. Document Number: EB727 Rev. 0, 01/2010

Using the Asynchronous DMA features of the Kinetis L Series

MPXH6250A SERIES. Freescale Semiconductor Technical Data MPXH6250A. Rev 2, 01/2007

MSC8144 Device Reset Configuration For the MSC8144ADS Board

VortiQa Enterprise Quick Start Guide

Changing the i.mx51 NAND Flash Model for Windows Embedded CE TM 6.0

Converting Earlier Versions of CodeWarrior for StarCore DSPs Projects to Version

Mask Set Errata for Mask 2M40J

Transcription:

Freescale BeeStack Documentation Overview Document Number: BSDO Rev. 1.0 04/2008

How to Reach Us: Home Page: www.freescale.com E-mail: support@freescale.com USA/Europe or Locations Not Listed: Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) support@freescale.com Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po, N.T., Hong Kong +800 2666 8080 support.asia@freescale.com For Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-521-6274 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including Typicals, must be validated for each customer application by customer s technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. Freescale Semiconductor, Inc. 2006, 2007, 2008. All rights reserved.

Contents About This Book............................................................. vii Audience................................................................... vii Organization................................................................ vii Revision History............................................................. vii Conventions................................................................ viii Definitions, Acronyms, and Abbreviations........................................ viii Reference Materials........................................................... ix Chapter 1 Introduction Chapter 2 Freescale ZigBee Application User s Guide Chapter 3 BeeStack Software Reference Manual Chapter 4 BeeStack Application Development Guide Chapter 5 Freescale Platform Reference Manual Chapter 6 ZigBee Cluster Library Reference Manual Chapter 7 ZigBee Test Client Reference Manual Freescale BeeStack Documenation Overview, Rev. 1.0 Freescale Semiconductor i

Freescale BeeStack Documenation Overview, Rev. 1.0 ii Freescale Semiconductor

About This Book This document provides a brief overview of the Freescale BeeStack document set. BeeStack is the Freescale implementation of the ZigBee 2006 wireless network protocol stack. The overviews contained in each chapter serve as an aid to finding the proper detailed document for any particular BeeStack topic. Audience This document is intended for software developers who write applications for BeeStack-based products using Freescale development tools. Organization This document is organized into the following sections. Chapter 1 Introduction describes this document. Chapter 2 Freescale ZigBee Applications User s Guide describes, step-by-step, how to install and run the sample applications on Freescale Reference Boards. Describes in detail the user interface for the applications. Chapter 3 BeeStack Software Reference Manual describes in detail the API to BeeStack in a reference (not tutorial) style. Also includes an overview of ZigBee networking, including a diagram of the stack components. Chapter 4 BeeStack Application Development User s Guide describes how to develop an application for BeeStack, including discussions on major considerations for commercial applications. Chapter 5 Freescale Platform Reference Manual describes in detail the API to the Freescale Platform components shared among Freescale networking solutions (e.g. BeeStack, The Freescale IEEE 802.15.4 MAC and the Freescale Simple MAC). Many components interact with reference hardware such as switches, the LCD and LEDs. Other components include timers and the task scheduler. Chapter 6 ZigBee Cluster Library Reference Manual describes the API to the ZigBee Cluster Library, an add-on component used in many ZigBee Application Profiles. Chapter 7 ZigBee Test Client Reference Manual describes the API to the ZigBee Test Client (ZTC) test harness software. This component allows a PC to control and monitor the ZigBee node through a USB or a RS-232 port. This document also includes a step-by-step example of using the ZigBee Test Client and how to update the ZigBee Test Client to include new commands and events. Revision History The following table summarizes revisions to this document since the previous release (Rev. 0.0). Freescale Semiconductor vii

Revision History Document Version Description/Location of Changes Conventions 1.0 Updated changes to ZTCRM. This document uses the following formatting conventions when detailing commands, parameters, and sample code: Courier mono-space type indicates commands, command parameters, and code examples. Bold style indicates the command line elements, which must be entered exactly as written. Italic type indicates command parameters that the user must type in or replace, as well as emphasizes concepts or foreign phrases and words. Definitions, Acronyms, and Abbreviations ADC Analog to digital converter AF Application framework API Application programming interface APS Application support sub-layer Binding Matching ZigBee devices based on services and needs Cluster A collection of attributes associated with a specific cluster-identifier Endpoint Component within a unit; a single IEEE 802.15.4 radio may support up to 240 independent endpoints EVB Freescale evaluation board IEEE Institute of Electrical and Electronics Engineers, a standards body LED Light-emitting diode MAC Medium access control sub-layer NCB Freescale Network Control Board NWK Network layer Profile Set of options in a stack or an application SAP Service access point SARD Freescale Sensor Reference Design SRB Freescale Sensor Remote Board Stack ZigBee protocol stack ZDO ZigBee device object(s) ZDP ZigBee device profile 802.15.4 An IEEE standard radio specification that underlies the ZigBee Specification viii Freescale Semiconductor

Reference Materials This following served as references for this manual: 1. Document 053474r13, ZigBee Specification, ZigBee Alliance, December 2006 2. Document 06027r04, ZB_AFG-ZCL_Foundation, ZigBee Alliance, October 2006 3. Document 053520r16, ZB_HA_PTG-Home-Automation-Profile, ZigBee Alliance, September 2006 Freescale Semiconductor ix

x Freescale Semiconductor

Chapter 1 Introduction This overview document provides a high level content description of each Freescale BeeStack document. Use this overview to find the proper document for a particular BeeStack component or task. Freescale Semiconductor 1-1

Introduction 1-2 Freescale Semiconductor

Chapter 2 Freescale ZigBee Application User s Guide This guide describes in step-by-step form, how to install and run the sample applications on Freescale Reference Boards. It describes in detail the user interface for the applications. Chapter 1 Provides an overview of the guide. Chapter 2 Describes the Freescale Development Boards in detail, describing LEDs, the LCD (NCB only), RS-232 port, and USB port. It includes common usage names for the boards. Chapter 3 Describes the BeeKit configuration tool and the CodeWarrior IDE and C compiler. It describes how to use BeeKit and CodeWarrior together to create applications from BeeKit templates, all the way to the point of downloading sample applications to the Freescale Development Boards. Chapter 4 Describes the steps involved in running the HaOnOffLight and HaOnOffSwitch application in detail, including which buttons to press and what to expect on the LEDs and LCD display (if the NCB development board is used). Chapter 5 Describes the common user interface elements and the specific user interface for each sample application available for BeeStack. Sample applications include: HaOnOffLight Simple on-off light, has the ability to report when the state of the light changes. Can control external light on GPIO pin. HaOnOffSwitch Simple on-off switch. Can turn lights or other devices on and off. HaDimmingLight Simple dimming light. Can scale between fully on and off. Can also be controlled (but not dimmed) by an on-off switch. HaDimmerSwitch Switch for dimming light. HaThermostat Basic thermostat, can display current temperature in Celsius or Fahrenheit. HaTemperatureSensor Reports temperature to thermostat when configured to do so. HaConfigurationTool Configures temperature sensor to report to thermostat. Very rudimentary commissioning tool. HaRangeExtender/HaGenericApp Application serves no purpose other than extending the range of the ZigBee network and providing a blank Home Automation template for building applications. Wireless UART Replace a serial cable with two or more ZigBee nodes. Can multi-hop for extended range using mesh routing. ZigBee is half-duplex and generally low data rate, so it is not applicable for all serial applications. Freescale Semiconductor 2-1

Freescale ZigBee Application User s Guide Accelerometer/GenericApp Sample application shows real-time tilt using the accelerometer built into some Freescale Development Boards. Also shows how to interact with ADC in the BeeStack environment. 2-2 Freescale Semiconductor

Chapter 3 BeeStack Software Reference Manual This manual describes the API to BeeStack in detail. It also includes an overview of ZigBee networking, including a diagram of the stack components. Chapter 1 Provides an overview of the BeeStack Software Reference Manual. Chapter 2 Provides a ZigBee overview and describes (at a high level) how ZigBee networking operates. It also describes the ZigBee stack components and includes concepts such as binding, broadcasting and unicasting. Chapter 3 Describes the API and source code directory structure. Chapter 4 Describes the API in the application framework (AF) component of BeeStack, including how to send and receive data over a ZigBee network. Chapter 5 Describes the ZigBee Application Support Sub-layer (APS), a ZigBee networking component responsible for reliable delivery of packets, and for applying application level meaning to packets through use of application profiles and clusters. It includes ìbindingî applications, a virtual wire connecting two or more endpoints. Chapter 6 Describes the ZigBee Device Object (ZDO) component of the ZigBee specification. This component is responsible for controlling the state of this node on the network (for example, has the node joined the network yet?). ZDO contains various options for how to form or join a ZigBee network. Chapter 7 Describes the ZigBee Device Profile (ZDP), a common set of over-the-air application services available to all ZigBee nodes. Chapter 8 Describes the BeeStack Network Layer API. Usually, applications interact with the higher layers listed above, but there are some API calls that communicate directly with the network layer. Chapter 9 Describes the Application Support Layer (ASL) API, a non-zigbee, Freescale-specific component that provides a common user interface for most of the sample applications. This component is available in full source code to allow portions to be used in production applications, but it is not intended for inclusion in typical OEM products. Chapter 10 Describes the API to a set of BeeStack Common Functions. These functions perform common operations (such as creating and searching bit lists and zeroing or copying memory) and may be used by custom applications. Chapter 11 Describes the large set of User-Configurable BeeStack compile-time options, settable through BeeKit. The options are available to affect behavior of BeeStack and to reduce BeeStack and component code size to allow as much RAM and Freescale Semiconductor 3-1

BeeStack Software Reference Manual Chapter 12 Flash as possible for custom applications. Describes how to enable, disable and configure security within BeeStack. 3-2 Freescale Semiconductor

Chapter 4 BeeStack Application Development Guide This guide describes how to develop an application for BeeStack, including discussions on major considerations for commercial applications. Chapter 1 Provides an overview of the BeeStack Application Development Guide, including what is and not included in the guide. This guide also describes a basic development process using both BeeKit and CodeWarrior. Note that this is in concept only. This guide is not a user guide for either BeeKit or CodeWarrior. Chapter 2 Provides a step-by-step example of creating a custom sample application. Chapter 3 Describes designing a new custom-profile application, including selecting a profile, clusters, attributes and endpoints. It also describes ZigBee 2006 security options. Chapter 4 Describes selecting the appropriate hardware-related platform components, including the use of non-volatile memory, LEDs, the keyboard, RS-232 port, and general hardware selection. Chapter 5 Describes using the non-hardware-related platform components appropriately, including the use of timers, messages, data queues, the task scheduler and low power library. It also describes how to determine how much RAM and Flash is available to the application and what to do if an application exceeds memory size. Chapter 6 Describes debugging BeeStack applications, including use of the BDM, LEDs, ZigBee Test Client and ZigBee protocol over-the-air sniffers. Freescale Semiconductor 4-1

BeeStack Application Development Guide 4-2 Freescale Semiconductor

Chapter 5 Freescale Platform Reference Manual This manual describes in detail the API to the Freescale Platform components shared among Freescale networking solutions (For example, BeeStack, the Freescale IEEE 802.15.4 MAC, and the Freescale Simple MAC). Many components interact with reference hardware such as switches, the LCD and LEDs. Other components include timers and the task scheduler. Chapter 1 Provides an overview of all the platform components and where they can be found in the directory structure in a BeeStack project. Chapter 2 Describes the task scheduler API and compile-time options. Chapter 3 Describes the timer API and compile-time options. Chapter 4 Describes the LED API and compile-time options. Chapter 5 Describes the LCD API and compile-time options. Chapter 6 Describes the keyboard API and compile-time options. Chapter 7 Describes the UART (SCI) API and compile-time options. Chapter 8 Describes the non-volatile memory API and compile-time options. Chapter 9 Describes the lower power API and compile-time options. Freescale Semiconductor 5-1

Freescale Platform Reference Manual 5-2 Freescale Semiconductor

Chapter 6 ZigBee Cluster Library Reference Manual This manual describes the API to the ZigBee Cluster Library, an add-on component used in many ZigBee Application Profiles, including Home Automation. Chapter 1 Provides an overview of the ZigBee Cluster Library, as well as its purpose and use in Home Automation. It also contains a concise list of the devices, clusters and attributes and commands supported by BeeStack. Chapter 2 Describes the BeeStack API and compile-time options for the ZigBee Cluster Library. Chapter 3 Describes how attributes, clusters and devices are defined and instantiated. It provides an example of adding a custom attribute to an existing cluster, and adding a custom cluster to an existing device. Freescale Semiconductor 6-1

ZigBee Cluster Library Reference Manual 6-2 Freescale Semiconductor

Chapter 7 ZigBee Test Client Reference Manual This manual describes the API to the ZigBee Test Client (ZTC) test harness software. This component allows a PC to control and monitor the ZigBee node through a USB port or RS-232 port. It includes a step-by-step example of using the ZigBee Test Client and how to expand the ZigBee Test Client to include new commands and events. Chapter 1 Provides an overview of the ZigBee Test Client, including the architecture and PC requirements. Chapter 2 Outlines the required BeeKit development tools, their installation, and provides step-by-step installation and setup instructions to prepare both the host computer and ZigBee devices for a test network. Chapter 3 Details how users can modify the Test Tool for new applications. Chapter 4 Gives several examples of standard wireless sniffer tests for monitoring packets between wireless network devices. Chapter 5 ZTC Frame Format - Describes the protocol frame format used by the ZTC. Appendix A Includes the full list of commands and events supplied with this software, including the OpCode group identification number, the OpCode number, and the associated primitive. Freescale Semiconductor 7-1

ZigBee Test Client Reference Manual 7-2 Freescale Semiconductor