UG129: ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) User's Guide

Similar documents
Figure 1. 8-Bit USB Debug Adapter

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

UG103.8: Application Development Fundamentals: Tools

AN862. OPTIMIZING Si534X JITTER PERFORMANCE IN NEXT GENERATION INTERNET INFRASTRUCTURE SYSTEMS. 1. Introduction

AN962: Implementing Master-Slave Timing Redundancy in Wireless and Packet- Based Network Applications

AN803. LOCK AND SETTLING TIME CONSIDERATIONS FOR Si5324/27/ 69/74 ANY-FREQUENCY JITTER ATTENUATING CLOCK ICS. 1. Introduction

TS1005 Demo Board COMPONENT LIST. Ordering Information. SC70 Packaging Demo Board SOT23 Packaging Demo Board TS1005DB TS1005DB-SOT

AN111: Using 8-Bit MCUs in 5 Volt Systems

UG103-13: Application Development Fundamentals: RAIL

AN952: PCIe Jitter Estimation Using an Oscilloscope

AN580 INFRARED GESTURE SENSING. 1. Introduction. 2. Hardware Considerations

AN486: High-Side Bootstrap Design Using ISODrivers in Power Delivery Systems

QSG105 GETTING STARTED WITH SILICON LABS WIRELESS NETWORKING SOFTWARE

AN922: Using the Command Line Interface (CLI) for Frequency On-the-Fly with the Si5346/47

Making Prototyping Boards for the EFM32 kits

Current Digital to Analog Converter

UG103.8 APPLICATION DEVELOPMENT FUNDAMENTALS: TOOLS

Bootloader with AES Encryption

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

AN583: Safety Considerations and Layout Recommendations for Digital Isolators

Selecting the Right MCU Can Squeeze Nanoamps out of Your Next Internet of Things Application

UG103.14: Application Development Fundamentals: Bluetooth Smart Technology

AN588 ENERGY HARVESTING REFERENCE DESIGN USER S GUIDE. 1. Kit Contents. 2. Introduction. Figure 1. Energy Harvesting Sensor Node

QSG108: Blue Gecko Bluetooth Smart Software Quick-Start Guide

ZigBee Technology Overview

Backup Power Domain. AN Application Note. Introduction

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

AN0822: Simplicity Studio User's Guide

AN655 R ANGE TEST APPLICATION FOR EZRADIO AND EZRADIOPRO. 1. Introduction. 2. Supported Radio Types

Telegesis is a trademark of Silicon Laboratories Inc. Telegesis ZigBee Communications Gateway. Product Manual

AN220 USB DRIVER CUSTOMIZATION

TFTP Firmware upgrade

Global VPN Client Getting Started Guide

System Overview and Terms

NETGEAR genie Apps. User Manual. 350 East Plumeria Drive San Jose, CA USA. August v1.0

UG103.9 EMBER APPLICATION DEVELOPMENT FUNDAMENTALS: ZLL

USB Stick Driver Installation Instructions

NI InsightCM Server Version 1.0

Quick Deployment Step-by-step instructions to deploy Oracle Big Data Lite Virtual Machine

Using SolarWinds Orion for Cisco Assessments

AN220 USB DRIVER CUSTOMIZATION

AdRadionet to IBM Bluemix Connectivity Quickstart User Guide

NVIDIA GRID 2.0 ENTERPRISE SOFTWARE

Using Cisco UC320W with Windows Small Business Server

User Guide Novell iprint 1.1 March 2015

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Oracle Fusion Middleware

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

ZigBee-2.4-DK 2.4 GHZ ZIGBEE DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure GHz ZigBee Development Kit

Avaya Identity Engines Ignition Server Getting Started. Avaya Identity Engines Ignition Server Release 7.0

FortiAnalyzer VM (VMware) Install Guide

APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram

RoHs compliant, Pb-free Industrial temperature range: 40 to +85 C Footprint-compatible with ICS , 2.5, or 3.3 V operation 16-TSSOP

ebus Player Quick Start Guide

Moxa Device Manager 2.0 User s Guide

AN104 I NTEGRATING KEIL 8051 TOOLS INTO THE SILICON LABS IDE. 1. Introduction. 2. Key Points. 3. Create a Project in the Silicon Labs IDE

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

NetWrix USB Blocker. Version 3.6 Administrator Guide

Installation Guide. Wyse R Class Conversion to Xenith Pro. Wyse USB Firmware Tool TM Release 1.18 Products: R10L, R50L, R90L, R90LW, R90L7

Contents Notice to Users

Security Analytics Virtual Appliance

Quick Start Guide For Ipswitch Failover v9.0

System Planning, Deployment, and Best Practices Guide

StarWind Virtual SAN Installation and Configuration of Hyper-Converged 2 Nodes with Hyper-V Cluster

13.1 Backup virtual machines running on VMware ESXi / ESX Server

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

TECHNICAL REFERENCE. Version 1.0 August 2013

Contents. Business Everywhere user guide. 1. Introduction. 2. How to Install/Uninstall Business Everywhere. 3. The Business Everywhere interface

Thinspace deskcloud. Quick Start Guide

Lenovo IdeaCentre Q180 Series

StarWind iscsi SAN Software: Using an existing SAN for configuring High Availability storage with Windows Server 2003 and 2008

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

Option nv, Gaston Geenslaan 14, B-3001 Leuven Tel Fax Page 1 of 14

Dell OpenManage Mobile Version 1.4 User s Guide (Android)

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

For Active Directory Installation Guide

Studio 5.0 User s Guide

LogMeIn Hamachi. Getting Started Guide

Sprint 3G/4G Plug-in-Connect USB Web Browser Interface User Guide

Verax Service Desk Installation Guide for UNIX and Windows

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

Configuration Manual

USB FM Radio-RD USB FM RADIO USER S GUIDE. 1. USB FM Radio Setup. One-time set-up enables configuration of presets and region specific FM band

Avalanche Enabler 5.3 User Guide

Oracle Virtual Desktop Client. Release Notes for Release 3.2

Quick Start Guide for Parallels Virtuozzo

Quick Start Guide FLIR Firmware Update Tool

Samsung Portable SSD T1

About This Guide SolarEdge Configuration Tool Software Guide. About This Guide

dmxlan software Version 3.1.x by ELC lighting

Universal Serial Bus Implementers Forum EHCI and xhci High-speed Electrical Test Tool Setup Instruction

AN4108 Application note

How to Guide: StorageCraft Cloud Services VPN

RSA Authentication Manager 8.1 Virtual Appliance Getting Started

TECHNICAL BULLETIN. Configuring Wireless Settings in an i-stat 1 Wireless Analyzer

NOVELL ZENWORKS ENDPOINT SECURITY MANAGEMENT

System Area Manager. Remote Management

USB Audio Simplified

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Transcription:

UG129: ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) User's Guide The ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) is designed to demonstrate ZigBee gateway functionality with the following Silicon Labs ZigBee reference designs: Lighting Reference Designs (RD-0020-0601 and RD-0035-0601) ZigBee Contact Sensor Reference Design (RD-0030-0201) ZigBee Capacitive Sense Dimmer Switch Reference Design (RD-0039-0201) This user's guide refers to software release version 1.1.0. KEY POINTS Describes ZigBee USB Virtual Gateway Reference Design. Provides step-by-step instructions for the installation and configuration process. Explains the ZigBee Gateway tabs. Offers troubleshooting solutions and references for common issues. silabs.com Smart. Connected. Energy-friendly. Rev. 0.2

Introduction 1. Introduction The ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) is designed to demonstrate ZigBee gateway functionality with Silicon Labs ZigBee reference designs, such as Lighting Reference Designs (RD-0020-0601 and RD-0035-0601), ZigBee Contact Sensor Reference Design (RD-0030-0201), and ZigBee Capacitive Sense Dimmer Switch Reference Design (RD-0039-0201). The Virtual Gateway runs on Ubuntu Linux, and is available for Windows and OS X host operating systems within a Virtual Machine. The Virtual Gateway includes a web server that presents a user interface to a desktop or mobile web browser. The web browser can run on the Virtual Machine or on a device on the local area network (LAN). A typical ZigBee system configuration with the Virtual Gateway is shown in the figure below. Desktop Web Browser ZigBee Devices Wi-Fi ZigBee ZigBee USB Virtual Gateway Web Browser Mobile Web Browser Figure 1.1. Typical ZigBee Virtual Gateway Configuration silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 1

Installation and Configuration 2. Installation and Configuration 1. Install VirtualBox. The ZigBee Virtual Gateway runs on Ubuntu Linux within a Virtual Machine for Windows or OS X. To begin, download and install VirtualBox 4.3.12. The installed executable is titled Oracle VM VirtualBox Manager. VirtualBox 4.3.12 for Windows: VirtualBox 4.3.12 for OS X: http://download.virtualbox.org/virtualbox/4.3.12/virtualbox-4.3.12-93733-win.exe http://download.virtualbox.org/virtualbox/4.3.12/virtualbox-4.3.12-93733-osx.dmg Note: Do not install or use any other version of VirtualBox. 2. Download the Virtual Appliance. Download the Virtual Appliance.zip file from Silicon Labs and extract to a temporary directory. Notice the terms Virtual Appliance and Virtual Machine will be used interchangeably throughout this user s guide. 3. Install the Virtual Appliance. a. Launch Oracle VM VirtualBox Manager and import the Virtual Appliance ("File" "Import Appliance"). Figure 2.1. Import Appliance b. Select the build.ovf file in the unzipped Virtual Machine folder and press Next. Figure 2.2. Import Appliance File Selection silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 2

UG129: ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) User's Guide Installation and Configuration c. Accept the default Appliance settings and select Import. Figure 2.3. Import Appliance Settings 4. Install ZigBee USB Virtual Gateway Hardware. Plug the ZigBee USB Virtual Gateway Hardware into an available USB port. Figure 2.4. ZigBee USB Virtual Gateway Hardware silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 3

Installation and Configuration 5. Select the ZigBee USB Virtual Gateway Hardware. From the Virtual Box manager, select "Machine" "Settings", select "USB", and add a USB Device Filter for the Silicon Labs CEL EM3588 ZigBee USB stick, as shown in the figure below. This setting will persist through power cycles. 6. Configure the Network. Figure 2.5. Select the ZigBee USB Virtual Gateway Hardware From the Virtual Box manager select "Machine" "Settings", then "Network". Change the Attached to: selection from "NAT" to "Bridged Adapter" and select the desired network adapter Name:. This setting will persist through power cycles. Figure 2.6. Attach to Bridged Adapter and Select Name of the Desired Adapter silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 4

Installation and Configuration 7. Run the Virtual Appliance. Launch VirtualBox 4.3.12, select the virtual appliance, and press Start. After configuration steps 1 5, it's possible to move directly to this step the next time you launch the virtual appliance. Figure 2.7. Run the Virtual Appliance 8. Confirm the ZigBee USB Virtual Gateway Hardware is selected. Right-click to open the USB devices menu on the Virtual Machine system tray and confirm the "Silicon Labs CEL EM3588 ZigBee USB Stick" is selected. Figure 2.8. Select the ZigBee USB Virtual Gateway Hardware 9. Confirm network connectivity. The adapter will indicate a successful connection by displaying the icon, as shown below. Figure 2.9. Network Connection Successful silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 5

Install, Update, or Run the Gateway 3. Install, Update, or Run the Gateway To launch the ZigBee Gateway, double-click the icon on the desktop. The first time the gateway is launched, you will be directed to localhost: 3001/update to accept a license agreement and install software. You can return to this page to check for periodic updates. After software is installed, you will be directed to localhost. Figure 3.1. Launch the ZigBee Gateway 3.1 Setup In the Network Maintenance section of the Setup tab, confirm that ZigBee Network: Up is shown, and if not, refer to Section 4. Troubleshooting for possible solutions. On first boot the PAN ID is randomly assigned, the channel is set to 11, and the power is set to 20 dbm. This configuration can be changed in the "Extended Network Form Settings" section, and on subsequent boots the settings are restored. The PAN ID is a 16-bit number expressed in hexadecimal format, the channel can be set to any valid ZigBee channel (11-26), and the valid power level range is 20 dbm to 20 dbm. Note that range checking is enforced. Figure 3.2. Network Maintenance silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 6

Install, Update, or Run the Gateway Select the + Device button and initiate the network join procedure for the desired devices. The lighting demo board enters join mode by pressing S1 ten times rapidly, the contact sensor by pressing S1 for more than two seconds, and the dimmer switch by pressing S3 for more than two seconds. Additional information can be found in the user's guide for each device. Devices will appear in the list with their name, unique device ID, and state. The name is reported by each device and the unique device ID is assigned each time the device joins a ZigBee network. If a device is on a network and communicating with the gateway, its state will be labeled as joined. A device failing to respond will be labeled unresponsive. The request to leave the network is sent by selecting the X next to the device, and will be labeled "leave sent" if there is no response from the device. Devices may become unresponsive or indicate leave sent because they are asleep, turned off, or out of range. When the device wakes, turns on, or comes back into range, the unresponsive device will be labeled as joined and a device labeled leave sent will be removed from the device list. The ZigBee Contact Sensor Reference Design (RD-0030-0201) will indicate open/close state, active/alarm state, temperature, and the join/leave-sent/unresponsive state. The open/close state is sent by the contact sensor immediately upon change of state to indicate the magnet away (open) or near (closed) the reed switch. The alarm state is sent by the contact sensor immediately upon change of state when the tamper alarm is activated by pressing button S1 for more than four seconds and then releasing. The ZigBee Lighting Demo Board Reference Design (RD-0020-0601 and RD-0035-0601) will present a toggle button to toggle the state of the light and indicate the join/leave-sent/unresponsive state. The toggle button sends the ZCL light toggle command. The ZigBee Capacitive Sense Dimmer Switch Reference Design (RD-0039-0201) will show the joined/leave sent/unresponsive state. Figure 3.3. Attach Devices The USB Virtual Gateway Reference Design allows the user to create rules to bind one device to another. To create a rule, select the + Set Rule button, choose the desired input node and output node, and select Bind. Multiple rules can be set for both Input Nodes and Output Nodes. For example, both the contact sensor and dimmer switch input nodes can bind to the dimmable color light, shown below. If two input nodes send a command to an output node, the commands are executed in the order received. Figure 3.4. Device Binding Rules silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 7

Install, Update, or Run the Gateway 3.2 Home The home tab duplicates the setup information and offers extended information with the Show Extended Info button. An HA Color Light also shows on/off and dimming, color temperature, and hue/saturation controls. The extended information includes: Node EUI Gateway EUI Node State (joined, leave sent, unresponsive) Firmware version Firmware Image type Manufacturer ID OTA bytes sent Updating indicator (via OTA) Endpoint 1 device ID Available OTA images list Available OTA update images are located here: /opt/siliconlabsgateway/webserver/ota_avail_file Note: The OTA update process will take approximately ten minutes for non-sleepy devices and up to several hours for sleepy devices. Note: Only one device should be in the "Attached Device" list prior to beginning the OTA update process. Figure 3.5. Home Tab silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 8

Install, Update, or Run the Gateway 3.3 Diagnostics The diagnostics tab offers a network test and logging options. The network test sends rapid on/off commands to a selected light in order to determine several key performance metrics of the ZigBee network. It is configured by selecting the desired light, setting the period (ms) and iterations, and selecting Run Network Test. The test measures network throughput and RF conditions. The Refresh Log button will update the test output tab. The result is shown in the Test Output log tab, and the log file is located here: /opt/siliconlabsgateway/webserver/logs/customer Test.log The backend output tab displays all web server command routing. The Console Log Streaming option enables log updates to the backend output tab. The Advanced Callback Logging option enables extra statistic logging such as: message time stamps, acknowledgement errors, link quality (LQI), and receive signal strength (RSSI). In typical use, logging this information is not necessary, and disabling this option reduces gateway overhead. The backend output log file is located here: /opt/siliconlabsgateway/webserver/logs/gatewaytransport.log The gateway output tab shows all ZigBee gateway commands and data. The Console Log Streaming option enables log updates to the gateway output tab. In typical use, logging this information is not necessary, and disabling this option reduces gateway traffic and overhead. The gateway output tab can also be used to send command line interface (CLI) commands. The gateway output log file is located here: /opt/siliconlabsgateway/logs/gateway.log 3.4 About The About tab shows all versions and displays the web server IPv4 address for the purpose of connecting a mobile handset, tablet, or another computer to the gateway. Note: The Running on IP address is updated when refreshing the browser window. 3.5 Shutdown To properly close the gateway, from the Virtualbox Manager select "Machine" "Close" as shown in the figure below, or close the web browser and all active terminal windows on the desktop. Figure 3.6. Shutdown silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 9

Next Steps 4. Next Steps The ZigBee USB Virtual Gateway Reference Design (RD-0002-0201) is designed to demonstrate ZigBee gateway functionality with Silicon Labs ZigBee reference designs such as Lighting Reference Designs (RD-0020-0601 and RD-0035-0601), ZigBee Contact Sensor Reference Design (RD-0030-0201) and ZigBee Capacitive Sense Dimmer Switch Reference Design (RD-0039-0201). For next steps, refer to the user s guides for each of these reference designs. The ZigBee USB Virtual Gateway is also designed as a reference to demonstrate the software functions and can be used as a baseline for further development and porting to a Linux platform. To aid in the understanding of the software architecture, refer to the figure below. Figure 4.1. Software Architecture The virtual machine environment includes the EmberZNet Pro ZigBee stack binaries and server software source code. To modify the binaries it is necessary to acquire a ZigBee development kit EM35x-DEV. You can learn more about purchasing and using a ZigBee development kit at: https://www.silabs.com/products/wireless/zigbee/pages/zigbee-getting-started.aspx. The server source code is available for study and modification within the virtual machine. The directory structure is as follows: /opt/siliconlabsgateway/bin/siliconlabsgateway ZigBee gateway manager executable (source available from Silicon Labs) /opt/siliconlabsgateway/webserver Backend node.js source files, interpreted by npm /var/www Webserver react.js source files, served by Apache silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 10

Troubleshooting 5. Troubleshooting 5.1 ZigBee Network Down Confirm the ZigBee USB Virtual Gateway Hardware is available, as shown in the figure below. Figure 5.1. Confirm ZigBee USB Virtual Gateway Hardware Availability If the ZigBee USB Virtual Gateway Hardware does not appear as an option, or if an error such as shown in the figure below, it may be in use by the Windows or OS X host operating system. Close the Virtual Machine and Oracle VM VirtualBox Manager, remove the ZigBee USB Virtual Gateway Hardware, and confirm in Device Manager (Windows) or System Information (OS X) that the device is no longer present. If not, repeat steps 7 9 from Section 2. Installation and Configuration. Figure 5.2. Error Condition 5.2 Unable to Add Devices The ZigBee end node may not be in the active network search state. Refer to the user s guide for each device and verify network search mode. 5.3 Unable to Remove Devices When attempting to remove ZigBee end nodes by selecting the X next to the device name, the message leave sent may appear but the device remains in the device list. The device may be powered down or out of range, and unable to acknowledge the request. Once powered up and in range, the end node will acknowledge the request to leave and disappear from the device list. silabs.com Smart. Connected. Energy-friendly. Rev. 0.2 11

Simplicity Studio One-click access to MCU and wireless tools, documentation, software, source code libraries & more. Available for Windows, Mac and Linux! IoT Portfolio www.silabs.com/iot SW/HW www.silabs.com/simplicity Quality www.silabs.com/quality Support and Community community.silabs.com Disclaimer Silicon Laboratories intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using or intending to use the Silicon Laboratories products. Characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "Typical" parameters provided can and do vary in different applications. Application examples described herein are for illustrative purposes only. Silicon Laboratories reserves the right to make changes without further notice and limitation to product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the included information. Silicon Laboratories shall have no liability for the consequences of use of the information supplied herein. This document does not imply or express copyright licenses granted hereunder to design or fabricate any integrated circuits. The products are not designed or authorized to be used within any Life Support System without the specific written consent of Silicon Laboratories. A "Life Support System" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personal injury or death. Silicon Laboratories products are not designed or authorized for military applications. Silicon Laboratories products shall under no circumstances be used in weapons of mass destruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons. Trademark Information Silicon Laboratories Inc., Silicon Laboratories, Silicon Labs, SiLabs and the Silicon Labs logo, Bluegiga, Bluegiga Logo, Clockbuilder, CMEMS, DSPLL, EFM, EFM32, EFR, Ember, Energy Micro, Energy Micro logo and combinations thereof, "the world s most energy friendly microcontrollers", Ember, EZLink, EZRadio, EZRadioPRO, Gecko, ISOmodem, Precision32, ProSLIC, Simplicity Studio, SiPHY, Telegesis, the Telegesis Logo, USBXpress and others are trademarks or registered trademarks of Silicon Laboratories Inc. ARM, CORTEX, Cortex-M3 and THUMB are trademarks or registered trademarks of ARM Holdings. Keil is a registered trademark of ARM Limited. All other products or brand names mentioned herein are trademarks of their respective holders. Silicon Laboratories Inc. 400 West Cesar Chavez Austin, TX 78701 USA http://www.silabs.com