QSG105 GETTING STARTED WITH SILICON LABS WIRELESS NETWORKING SOFTWARE



Similar documents
UG103.8 APPLICATION DEVELOPMENT FUNDAMENTALS: TOOLS

1 Software Overview ncp-uart ash-v3-test-app ash-v3-test-app Command Line Options Testing... 2

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

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

UG103.8: Application Development Fundamentals: Tools

UG103.9 EMBER APPLICATION DEVELOPMENT FUNDAMENTALS: ZLL

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

AN220 USB DRIVER CUSTOMIZATION

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

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

AN220 USB DRIVER CUSTOMIZATION

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

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

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

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

AN437. Si4432 RF PERFORMANCE AND FCC COMPLIANCE TEST RESULTS. 1. Introduction. 2. Relevant Measurements to comply with FCC

How To Develop A Toolstick

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

AN335 USB DRIVER INSTALLATION METHODS. 1. Introduction. 2. Relevant Documentation. 3. DPInst Installation and Customization

AN335 USB DRIVER INSTALLATION UTILITY. 1. Description. 2. Installation Install Package

UG103-13: Application Development Fundamentals: RAIL

UG104 TESTING AND DEBUGGING APPLICATIONS FOR THE EMBER EM2XX AND EM35X PLATFORMS

ZigBee Technology Overview

Dell Statistica Document Management System (SDMS) Installation Instructions

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

AN728 OVER-THE-AIR BOOTLOAD SERVER AND CLIENT SETUP USING EM35X DEVELOPMENT KITS

Silect Software s MP Author

In the idle state, the TIP lead will be high impedance to ground and the RING lead will have the battery voltage. See Figure 1.

Important Notes for WinConnect Server VS Software Installation:

Silabs Ember Development Tools

Microsoft SharePoint 2010 End User Quick Reference Card

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

UG110 EMBER EM35X DEVELOPMENT KIT USER GUIDE

AvePoint Tags 1.1 for Microsoft Dynamics CRM. Installation and Configuration Guide

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

F9 Integration Manager

VeriSign PKI Client Government Edition v 1.5. VeriSign PKI Client Government. VeriSign PKI Client VeriSign, Inc. Government.

DocAve 6 Service Pack 1 Job Monitor

Dell One Identity Cloud Access Manager How to Configure for High Availability

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Business Portal for Microsoft Dynamics GP Field Service Suite

Moxa Device Manager 2.0 User s Guide

[The BSD License] Copyright (c) Jaroslaw Kowalski

ArcMail Technology Defender Mail Server Configuration Guide for Microsoft Exchange Server 2003 / 2000

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

INSTALLATION GUIDE. Trimble AutoBid Mechanical Software

Novell ZENworks Asset Management 7.5

ProSystem fx Document

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

NETWRIX CHANGE NOTIFIER

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

WatchDox Administrator's Guide. Application Version 3.7.5

eadvantage Certificate Enrollment Procedures

FOR WINDOWS FILE SERVERS

CodeWarrior Development Studio Floating Licensing Quick Start

IntelliTouch Remote Control & Monitor for Service Professionals. User s Guide. ScreenLogic Wireless Connection Kit Installation Guide

Lab 05: Deploying Microsoft Office Web Apps Server

Setup and Configuration Guide for Pathways Mobile Estimating

Avaya Network Configuration Manager User Guide

Microsoft Dynamics GP. Workflow Installation Guide Release 10.0

User Manual. Thermo Scientific Orion

HP Intelligent Management Center v7.1 Virtualization Monitor Administrator Guide

Altiris Task Server 6.0 Help

Cisco UCS Director Payment Gateway Integration Guide, Release 4.1

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

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Moxa Device Manager 2.3 User s Manual

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

VERITAS Backup Exec TM 10.0 for Windows Servers

Adobe Summit 2015 Lab 718: Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers

Microsoft Dynamics GP Release

Intel Unite Solution. Standalone User Guide

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

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

WatchDox for Mac User Guide

Business Portal for Microsoft Dynamics GP Project Time and Expense User s Guide

Security Analytics Engine 1.0. Help Desk User Guide

Creating Forms With Adobe LiveCycle Designer 8.2

QT9 Quality Management Software

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

How to Attach Files in Blackboard Learn , Messages, Discussions, and Assignments

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

Ver USERS MANUAL

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

Windows 7: Using USB TAP on a Classic CodeWarrior Installation (MGT V9.2 DSC V8.3)

Lepide Software. LepideAuditor for File Server [CONFIGURATION GUIDE] This guide informs How to configure settings for first time usage of the software

Live Maps. for System Center Operations Manager 2007 R2 v Installation Guide

Important Notes for WinConnect Server ES Software Installation:

Manufacturing Representative SSL VDM Login User s Guide

Using SSH Secure Shell Client for FTP

Creating a Patch Management Dashboard with IT Analytics Hands-On Lab

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

ReadyNAS Setup Manual

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

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

Learning Management System (LMS) Quick Tips. Contents LMS REFERENCE GUIDE

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

System Overview and Terms

Transcription:

GETTING STARTED WITH SILICON LABS WIRELESS NETWORKING SOFTWARE This quick start guide provides basic information on configuring, building, and installing applications using the Thread, EmberZNet RF4CE, and Connect protocols. If you are developing with EmberZNet PRO, including developing a dual-protocol network using EmberZNet PRO along with EmberZNet RF4CE, see UG110, EM35x Development Kit User Guide, for similar information. New in This Revision Additional detail on compiling and bootloading provided. Contents 1 Overview... 2 1.1 Support... 2 1.2 Documentation... 2 1.3 Software Components... 2 1.3.1 Network Stack... 2 1.3.2 Development Environment... 2 1.3.3 Application Frameworks... 3 1.3.4 Hardware Abstraction Layer... 3 2 Building a Sample Application... 3 2.1 Configure Application Builder with Your Stack... 3 2.2 Create a New Application Based on a Sample... 4 2.3 Generate the Application... 7 2.4 Build the Application... 8 2.5 Load the Binary onto your Device... 8 3 Interacting with your Sample Application... 10 Rev 0.2 Copyright 2015 by Silicon Laboratories QSG105

1 Overview This guide is designed for new users of one the Silicon Labs development kits, such as the EM35x Development kit, who are just getting started using one of the example applications provided with the software installer. This guide assumes that you have already: Opened and set up your development kit as described in the Quick Start Guide (QSG) included with the kit. Registered your kit and downloaded the software stack as described either in the QSG itself or by going to the URL in the QSG. Downloaded the remaining software components as described in the release notes included with the software stack. Depending on your software, you may find additional Getting Started software detail in other documents: Connect AN888: EZR32 Simple TRX Application Quick Start Guide AN889: Silicon Labs Connect Quick Start Guide RF4CE The Quick Start Guide included in both EM34x development kit variants also has instructions for loading a prebuilt sample application. 1.1 Support Registered users can access the Silicon Labs support portal at https://www.silabs.com/support. Use the support portal to contact Customer Support for any questions you might have during the development process. 1.2 Documentation The stack installer provides a documentation index (in documentation/index.htm and also linked from a Start Menu entry) that contains links to documentation locations and brief descriptions of each document s purpose. Documents are also available through the support portal as Adobe PDF files. 1.3 Software Components 1.3.1 Network Stack The network stack is an advanced implementation of a wireless protocol stack. The network stack API is documented in online API reference as well as other documents installed with the stack installer, or available through the development environment. The network stack is delivered as a collection of libraries that you can link to your applications. A description of each library is provided in the development environment. 1.3.2 Development Environment Along with the stack, Silicon Labs provides a development environment, Ember Desktop or Simplicity Studio. Both environments require the compiler IAR-EWARM. Both environments contain two tools that you will use to get started: Application Builder and Network Analyzer. Application Builder, sometimes referred to as AppBuilder, is an interactive GUI tool that allows you to configure a body of Silicon Labs-supplied code to implement devices, such as a ZigBee Smart Energy meter or a Connect temperature sensor, within an application profile. Network Analyzer manages the Development Kit hardware and displays network and node activity in real time. It includes: Tiered views of network activity, letting you drill down from a high-level map of node interactions to the details of each packet. 2 Rev. 0.2

Customizable filters that let you specify exactly which network activities to display. Log files that save captured data, so you can step through transactions and events for detailed analysis. For detailed information about these tools and the development environment itself, refer to its online help. 1.3.3 Application Frameworks Application frameworks are, in essence, working software designs that you can modify to meet your needs using Application Builder. They provide common basic services and, when combined with device-specific code, provide you with most of the over-the-air behavior for your device. Some common usage case examples based on the relevant application framework are provided with each Silicon Labs stack release. A pre-built application, Node Test, is also provided for functional testing of RF modules. This guide covers getting started with application frameworks for Thread, single-protocol RF4CE networks, and Silicon Labs Connect. The AFV2 application framework, based around the ZCL (ZigBee Cluster Library), is for use when developing ZigBee PRO applications with the EmberZNet stack, including dual protocol networks using both EmberZNet PRO and EmberZNet RF4CE. AFV2 has a different development workflow that is documented in UG102, Ember Application Framework Developer Guide. 1.3.4 Hardware Abstraction Layer The hardware abstraction layer (HAL) acts as a conduit between the network stack and the node processor and radio. Separating network stack functionality from the specific hardware implementation enables easy portability. HAL code is provided as a combination of pre-built libraries for complex, stack-critical functionality and C source code that you can alter in order to customize, extend, or reduce device functionality across various hardware platforms. The HAL API is documented in the online API reference. 2 Building a Sample Application To build a sample application you must: 1. Configure Application Builder so it can find the stack you are using. 2. Create a new application based on a sample 3. Generate the application files 4. Build the application image using the IAR-EWARM compiler 5. Load the image onto your device. You can then interact with the application on the device to form a network or send data. For some steps, the procedure varies slightly depending on whether you are working with Ember Desktop or Simplicity Studio. For these steps, two sets of instructions are provided. 2.1 Configure Application Builder with Your Stack 1. Open the Preferences window. Ember Desktop: Go to File > Preferences. Simplicity Studio: Click the gear icon in the top right-hand corner of the window. Rev. 0.2 3

2. In the Preferences window s left frame, click Network Applications to open the configuration dialog for Application Builder (Figure 1) Figure 1. Application Builder Configuration 3. Click Add. 4. Browse to the location where you have installed the stack. 5. Click Open. 6. Verify the list of installed stacks now contains now contains your stack. 7. Click OK. 2.2 Create a New Application Based on a Sample The available sample applications depend on your configured stack, and are described in the development environment. To demonstrate the interoperability features of a network, you may need to build two different sample applications, such as a client and a server application or a sensor and sink application. 1. Select a sample application In Simplicity Studio: 1. In Application Builder, go to File > New > Project > Silicon Labs AppBuilder Project 2. In the Applications and Stacks window, select the framework you will be using. 3. Click Next >. 4. In the Select Sample Application dialog, uncheck Start with blank application. 5. Select a sample application. 6. Click Next >. 4 Rev. 0.2

In Ember Desktop: 1. Go to File > New > Application Framework Configuration... 2. Select an Application Type. 3. Click Next >. 4. Select the stack you loaded in the first step. 5. Click Next >. 6. Click Start from a selected sample application. 7. Select one of the provided sample applications. 8. Click Next >. 2. In the Project Information window, specify a location for your application. Note: the location must be on the same Windows partition as the stack. 3. Specify a name for your application. 4. Click Finish. Figure 2. Project Information Window Simplicity Studio By default Simplicity Studio loads with the platform of your connected starter kit. To modify the platform for your application, click Next > Instead of Finish (Figure 3). This dialog also shows the various build configurations available. Rev. 0.2 5

Figure 3. Platform Configuration Note: You must have a Toolchain and Build target selected and configured for the Finish button to enable. If you do not see the Finish button enabled, check your Toolchains and Build targets by clicking on the links at the bottom of the dialog. 6 Rev. 0.2

2.3 Generate the Application When you finish creating your sample application, an Application Builder General tab opens (example shown in Figure 4). Figure 4. Application Builder General Tab 1. If the architecture parameters shown for MCU and Radio, and Board Type are not correct for your target device, change them by clicking on one of the configuration buttons and then selecting from its list. In general, the initial configuration settings for sample applications should be correct. 2. Select your chosen module card from the Board Type List in the General Configuration Tab. This ensures that the generated PHY configuration is optimized for your radio board. 3. Click Generate in the upper right corner of the tab. 4. An overwrite dialog is presented. CAUTION: If you are starting from a sample application, uncheck the box for the callbacks file. The implementation of the application is contained in the callbacks file, and overwriting it will remove the sample functionality. 5. When generation is complete a dialog shows the generated files, one of which has the extension.eww. Click OK. Rev. 0.2 7

2.4 Build the Application With Ember Desktop 1. Open IAR-EWARM. 2. Select File>Open>Workspace and navigate to the location you selected for your sample application. 3. Select the application.eww file and click Open. 4. Select Project>Make or press F7. If the application builds without errors, you are ready to install the image on a device With Simplicity Studio Click Build in the top tool bar. Your sample application will compile based on its build configuration. You can change the build configuration at any time in the Project Explorer View by right clicking on the project and going to Build Configurations > Set Active. You can also build your application directly in IAR-EWARM by opening IAR-EWARM and opening the generated project file inside IAR as described above. 2.5 Load the Binary onto your Device Note: If you are using a wireless starter kit (WSTK), make sure that the power switch on your WSTK board is set in the AEM position when attempting to flash your device. 1. Go to the Adapters View in either the Application Builder Perspective or in the Network Analyzer Perspective. If the Adapters View is not open, select Window > Show View > Adapters. 2. Right-click on your device of choice, select Connect and then Upload Application. The Select Binary Image dialog is displayed (Figure 5). 3. Navigate to the.s37,.bin or.hex image you wish to upload. 4. Check Bootloader, then navigate to the stack s Tools folder, and select the bootloader for your platform. 5. Check Erase Chip, to make sure that any previous bootloader or other non-volatile data is erased before your new image is uploaded.. The After Load options are Run (begin executing the code immediately) and Reset (wait for an event, such as a debugger to connect or manual initiation of a boot sequence). During initial development you will typically leave this set to Run. 6. Click OK. You will be notified once the upload is complete, 8 Rev. 0.2

Figure 5. Uploading.bin or.hex Images Simplicity Studio If you have compiled your application in Simplicity Studio, you will notice some images listed under the Binaries menu item in the Project Explorer View. You can flash your image to a device by right-clicking on the image you wish to load and selecting Flash to device. Rev. 0.2 9

3 Interacting with your Sample Application You can interact with your loaded sample application through your development environment s Console interface using a CLI (command line interpreter). The console interface allows you to form a network and send data. Right-click on your adapter in the Adapters View. Choose Connect and then Launch Console. Figure 6. Launch Console To get a prompt on the Console Serial 1 tab, press Enter. If you do not get a prompt, make sure the PB1 and PB2 jumpers are connected on the breakout board. 10 Rev. 0.2

Each sample application includes information on the basic use of the Command Line Interface in the Sample Application Description displayed on the General Tab of your.isc file in the Application Builder perspective (Figure 7). Please refer to this documentation for more information on how to run the sample application you have chosen. Figure 7, CLI Information Rev. 0.2 11

CONTACT INFORMATION Silicon Laboratories Inc. 400 West Cesar Chavez Austin, TX 78701 Tel: 1+(512) 416-8500 Fax: 1+(512) 416-9669 Toll Free: 1+(877) 444-3032 For additional information please visit the Silicon Labs Technical Support page: http://www.silabs.com/support Patent Notice Silicon Labs invests in research and development to help our customers differentiate in the market with innovative low-power, small size, analog-intensive mixed-signal solutions. Silicon Labs' extensive patent portfolio is a testament to our unique approach and world-class engineering team. The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. Silicon Laboratories assumes no responsibility for errors and omissions, and disclaims responsibility for any consequences resulting from the use of information included herein. Additionally, Silicon Laboratories assumes no responsibility for the functioning of undescribed features or parameters. Silicon Laboratories reserves the right to make changes without further notice. Silicon Laboratories makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Silicon Laboratories 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. Silicon Laboratories products are not designed, intended, or authorized for use in applications intended to support or sustain life, or for any other application in which the failure of the Silicon Laboratories product could create a situation where personal injury or death may occur. Should Buyer purchase or use Silicon Laboratories products for any such unintended or unauthorized application, Buyer shall indemnify and hold Silicon Laboratories harmless against all claims and damages. Silicon Laboratories, Silicon Labs, and Ember are registered trademarks of Silicon Laboratories Inc. Other products or brandnames mentioned herein are trademarks or registered trademarks of their respective holders. 12 Rev. 0.2