Debugging Joining in a ZigBee Network



Similar documents
10. XBee Command Reference Tables

Supporting ZDOs with the XBee API

UG103.9 EMBER APPLICATION DEVELOPMENT FUNDAMENTALS: ZLL

GETTING STARTED GUIDE

Setting Up the ZigBee Ethernet Gateway

A Beginner s guide to send data to Device Cloud from a ZigBee Network

Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

UG103.5 EMBER APPLICATION DEVELOPMENT FUNDAMENTALS: SECURITY

RapidIO Network Management and Diagnostics

An Overview of ZigBee Networks

Cellular Gateway Programming Procedure - Updated with T-Mobile Wyless Cellular Services

For T1 / E1, an NT NeTwork device must be connected to a TE Terminal Equipment device; NT must connect to TE.

Waspmote Digimesh. Networking Guide

Aculab digital network access cards

XBee Series 2 OEM RF Modules

Robe Universal Interface API

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

ICT Soft Logger. Solutions for soil, plant & environmental monitoring.

UG103.2: Application Development Fundamentals: ZigBee

ROM Monitor. Entering the ROM Monitor APPENDIX

UG105 ADVANCED APPLICATION PROGRAMMING WITH THE STACK AND HAL APIS

ZigBee Security. Introduction. Objectives

Digi Connect Wan 3G Application Guide Update the firmware, backup and restore the configuration of a Digi Connect Wan 3G using a USB flash drive.

PCI-SIG ENGINEERING CHANGE REQUEST

PCoIP Infrastructure Deployment Guide. TER Issue 1

Communications Protocol for Akai APC40 Controller

Hagenberg Linz Steyr Wels. API Application Programming Interface

APPLICATION NOTE. Atmel AT02597: ZigBee PRO Packet Analysis with Sniffer. Atmel MCU Wireless. Features. Description

CCNP CISCO CERTIFIED NETWORK PROFESSIONAL LAB MANUAL

Plena Voice Alarm System. Software Manual Configuration Software

AN601 I2C 2.8 Communication Protocol. SM130 SM130 - Mini APPLICATION NOTE

Configuring Your Network s Security

Domain Name System (DNS) Services

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

CMS-DH CENTRAL MANAGEMENT SOFTWARE

Configurable Events for APC Network Management Card

Surveillance System Using Wireless Sensor Networks

McAfee Vulnerability Manager 7.5.1

APPLICATION NOTE. AVR2130: Lightweight Mesh Developer Guide. Atmel MCU Wireless. Features. Description

TOSR0X-D. USB/Wireless Timer Relay Module. User Manual. Tinysine 2013 Version 1.0

Contents Chapter 1: Introduction... 3 Chapter 2: Ethernet (LAN)... 5 Chapter 3: ZigBee Wireless Connection Options... 7

Introduction to Zibgbee Technology

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

Rebasoft Auditor Quick Start Guide

Z-Stack Sample Applications

Securing your Linksys WRT54G

Microchip Technology. February 2008 Valerio Moretto Slide 1

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

Use of the ZENA MiWi and P2P Packet Sniffer

Bluetooth for device discovery. Networking Guide

EKT 332/4 COMPUTER NETWORK

Technical Support Bulletin Nr.18 Modbus Tips

Debugging Network Communications. 1 Check the Network Cabling

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure

COMSPHERE 6700 SERIES NETWORK MANAGEMENT SYSTEM

Gigabyte Content Management System Console User s Guide. Version: 0.1

OCS Training Workshop LAB14. Setup

VLAN 802.1Q. 1. VLAN Overview. 1. VLAN Overview. 2. VLAN Trunk. 3. Why use VLANs? 4. LAN to LAN communication. 5. Management port

Konica Minolta s Optimised Print Services (OPS)

Communication Setup Application Note

Z-Stack Linux Gateway User s Guide

Before deploying SiteAudit it is recommended to review the information below. This will ensure efficient installation and operation of SiteAudit.

The Trivial Cisco IP Phones Compromise

AN965. Microchip Stack for the ZigBee Protocol ASSUMPTION INTRODUCTION FEATURES LIMITATIONS

Freshservice Discovery Probe User Guide

Implementation of IR-UWB MAC Development Tools Based on IEEE a

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management

MeshBee Open Source ZigBee RF Module CookBook

SNMP Network Node Manager (NNM) Setup Guide

Creating a Project with PSoC Designer

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

How to Configure your Energate Foundation Wi-Fi USNAP Radio Module.

PRODUCT NOTICE # Date: July 26 th, Product: XBee & XBee-PRO ZB Firmware Update

AN710 BRINGING UP CUSTOM DEVICES FOR THE EMBER EM35XX SOC OR NCP PLATFORM. (Formerly document )

A quick Guide to your Super Hub 2ac

SANbox Manager Release Notes Version Rev A

Cooper Bussmann. Network Management System QuickStart Guide. Read and Retain for Future Reference. Version 1.0

Ethernet 241 Discovery Tool User Manual

Waspmote. Quickstart Guide

Quick installation guide for the Vista Quantum QNVR Network Video Recorder

VMware vcenter Discovered Machines Import Tool User's Guide Version for vcenter Configuration Manager 5.3

Configuring Your Network s Security

Using IDENT M System T with Modbus/TCP

CyberSource and NetSuite Getting Started Guide

CMT Self-Service Archive Migrator 1.2. Comprehensive User Guide

WiFi-SB-L3 300M WiFi Router WiFi Bridge WiFi Repeater. WiFi Router WiFi Repeater WiFi Bridge WiFi-SB-L3 Quick Setting Guide

ZME_RC2 Z-Wave Remote Control

These options allow you to define baseline settings for how scanning will occur on your network

How To Understand and Configure Your Network for IntraVUE

WeMo Release Versions for App, Cloud and WeMo Link firmware for WeMo LED Starter Kit

Adobe Digital Signatures in Adobe Acrobat X Pro

MANUAL IP Baby and Child Monitor

Intelligent Monitoring Configuration Tool

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

19 LCD / 8 CHANNEL DVR COMBO WITH 160GB HDD & 4 CAMERAS

Topic 7 DHCP and NAT. Networking BAsics.

Transcription:

Debugging Joining in a ZigBee Network Introduction In a ZigBee network, routers and end devices must discover and join a network before they can communicate with other ZigBee devices. The XBee ZB firmware includes a number of AT commands that can be used to configure the ZigBee joining parameters (i.e. scan channels, PAN ID, permit join, security settings, etc). See the XBee ZB product manual for details on the joining process and related AT commands. When becoming familiar with the concept of joining in ZigBee, there are a number of factors that determine which network(s) a device can join. When an XBee fails to join a desired ZigBee network, the AI command can be used to determine the reason the join attempt failed. This application note provides guidance on how to resolve joining problems based on the information contained in the AI command value. AI Command The AI command reports the association status from the last join attempt on an XBee router or end device. If AI is set to 0, the XBee has successfully joined a ZigBee network. If AI is set to 0xFF, the XBee is currently scanning one or more channels, searching for a valid ZigBee network to join. For all other AI values, the XBee is not joined, and the AI code indicates a failure code from the last join attempt. The AI command can be queried in AT firmware by entering AT command mode and sending an ATAI command followed by a carriage return. In API firmware, the following is an example API frame to query AI: 7E 00 04 08 01 41 49 6C XBee Joining Behavior Review When attempting to join a network, the XBee scans the channels included in the SC (scan channels) bitmask until a valid PAN is found, or until all SC channels have been scanned. If a join attempt fails on a given channel, the XBee will continue scanning on the next higher channel until all remaining SC channels have been scanned. After scanning all SC channels, the XBee will delay for a time (with the receiver disabled) before starting a new scan. To satisfy ZigBee requirements, the XBee scans all channels up to 9 times per minute for the first 5 minutes (since being powered on), and up to 3 times per minute thereafter. The remainder of this document provides guidance on how to solve joining problems based on the AI code. Each page lists an AI code (orange oval) and steps to identify the root cause and correct the problem (blue rectangles). The following AI codes are included:

AI Code 0x21 0x22 0x23 0x27 0x2B 0xAD 0xAF 0xFF Description No PANs found PAN(s) found with invalid PAN ID Joining not allowed Join failure Discovering coordinator Security key not received Pre-configured link key error Attempting a new join scan

0x21 - No PANs 0x21 indicates that a ZigBee network (with a matching stack profile) was not found. The XBee can often return 0x21 for a brief time after leaving a network. When it leaves a network, it continues scanning at the next higher channels in the SC bitmask until it finds a new network, or until it scans all remaining SC channels. If a network is not found on the higher channels (from the channel it left), it will report 0x21 until it starts a new scan. If the 0x21 code is shortly replaced with a new code, see the new code to diagnose the problem. Solution #2: Read the CH command (operating channel) on a device that is on the network. Now read the SC command value on the joining device. Does the SC bitmask (scan channels) on the joining device include the operating channel? For example, if the CH command returns 0x0C, then SC on the joining device should have bit1 set (i.e. 0x0002). If the CH command returns 0x11, then SC on the joining device should have bit6 set (i.e. 0x0040). Solution #3: Read the ZS command (ZigBee stack profile) command on a device that is on the network. Does the ZS value on the joining device match?

0x22 - Wrong PAN 0x22 indicates the XBee found at least one ZigBee network, but the XBee parameters do not match the parameters of the discovered PAN(s). An AI value of 0x22 indicates the XBee found at least one ZigBee network. Often times a 0x22 code indicates the PAN ID setting is wrong, or joining is not enabled on the desired network. If there are multiple ZigBee PANs in the area, it may not be scanning the channel of the desired PAN. It is also possible the security settings do not match. Solution #2: Read the OP command value on a device that has joined the desired ZigBee network. Now read the ID command value on the joining device. Is ID set to 0 (join any PAN ID)? If not, is it set to a value that matches the OP value of a device on the desired ZigBee network? Solution #3: If more than 1 ZigBee network are operating in the area, read the CH command on a device that has joined the desired network. Now read the SC command value on the joining device. Does the SC bitmask (scan channels) on the joining device include the operating channel? For example, if the CH command returns 0x0C, then SC on the joining device should have bit1 set (i.e. 0x0002). If the CH command returns 0x11, then SC on the joining device should have bit6 set (i.e. 0x0040).

0x23 - Joining Not Allowed 0x23 indicates the XBee found at least one valid ZigBee network (that it could try to join), but joining was not enabled on the network. Read the NJ command on a device that has joined the desired network, preferably one within range of the joining device. If NJ is set less than 0xFF, joining might be disabled on the network. Do any nearby devices on the network have NJ set to 0xFF? If not, joining may be disabled. If joining may be disabled, any of the following could be used to enable joining on a device that is already part of the network: - Press the commissioning button 2 times, - Issue the CB2 command, or - Set NJ to a different value - Send a ZDO Permit-Join request to one or more devices to enable joining

0x27 - Join Failure 0x27 indicates the XBee attempted to join a ZigBee network but the join attempt failed. Read the EE command on a device that has joined the desired network. Now read the EE command on the joining device. Do the values match? Was the KY value set on devices that already joined the network? Does the joining device have the same KY setting? (KY is a write-only command so it cannot be read.) Solution #2: Read the CH command on a device that has joined the desired network. Now read the SC command value on the joining device. Does the SC bitmask (scan channels) on the joining device include the operating channel? For example, if the CH command returns 0x0C, then SC on the joining device should have bit1 set (i.e. 0x0002). If the CH command returns 0x11, then SC on the joining device should have bit6 set (i.e. 0x0040). Solution #3: If the joining device is an end device, the network may not have enough end device capacity for the joining device. (Each router and coordinator can only allow a finite number of end device children to join.) To check end device capacity, read the NC command on all routers and coordinator in the network. If NC reports a non-zero value on at least one device, then that device can allow more end devices to join. Otherwise, if NC=0 on all routers and the coordinator, then the network cannot allow any more end devices to join. Add more routers to increase the number of end devices that can join.

0x2B - Discovering Coordinator 0x2B indicates the XBee has joined a ZigBee network and is attempting to discover the coordinator. If JV is set to 1, the XBee will attempt to discover the coordinator on a network before considering itself joined. It does this by sending a ZDO broadcast to discover the 64-bit address of the coordinator. If AI returns 0x2B, the XBee has sent the address discovery ZDO request and is waiting for a response. Within a very short time, the AI code should change to 0 if the address is discovered. If AI does not change to 0, then the address discovery failed. If joining fails, is the coordinator powered on? Solution #2: Read the CH command on the coordinator. Now read the SC command value on the joining device. Does the SC bitmask (scan channels) on the joining device include the coordinator s operating channel? For example, if the CH command returns 0x0C, then SC on the joining device should have bit1 set (i.e. 0x0002). If the CH command returns 0x11, then SC on the joining device should have bit6 set (i.e. 0x0040). Solution #3: Are there routers in the area that are part of a separate ZigBee network? Is the joining device joining a second network that does not have a coordinator?

0xAD - Security Key Not Received 0xAD indicates the XBee did not receive the network security key from the network it joined, when it expected to receive a network key. The XBee must have EE set to 1 and then join a network where security is not enabled to get this code. Is security enabled on the desired network? Should EE be set to 0 on the XBee? 0xAF - Link Key Error 0xAF indicates the XBee joined a secure network, but the network has a pre-configured link key and the joining device does not. To fix this problem, set the pre-configured link key (KY) on the joining device to match the pre-configured link key (KY) on devices in the network.

0xFF - Attempting Join The XBee reports an AI code of 0xFF at the beginning of each new channel scan. Solution: This value should be replaced by another value after a short time.