Energy profiler and Network analyzer Training Lab manual for

Similar documents
Using Network Analyzer Tool to Monitor Bluetooth Mesh Traffic

QSG139: Bluetooth Development with Simplicity Studio

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

AN1045: Bluetooth Over-the-Air Device Firmware Update for EFR32xG1 and BGM11x Series Products

AN888: EZR32 Simple TRX Application Quick Start Guide

QSG107: SLWSTK6101A/B Quick-Start Guide

QSG107: SLWSTK6101A/B Quick-Start Guide

UG313: Thunderboard Sense 2 Bluetooth Low Energy Demo User's Guide

QSG139: Getting Started with Bluetooth Software Development

QSG155: Using the Silicon Labs Dynamic Multiprotocol Demonstration Applications

Exhibitor Software User s Manual. Exhibitor Software V

QSG126: Bluetooth Developer Studio Quick-Start Guide

Ember Desktop User Guide. Version 3.3 Build 1985

Instruction Manual MOBILE

Using the Microsoft Remote Desktop on non-windows devices

UG366: Bluetooth Mesh Node Configuration User s Guide

QSG107: SLWSTK6101A Quick-Start Guide

Mobile App Installation & Configuration

QSG106: Getting Started with EmberZNet PRO

AN888: EZR32 Quick Start Guide

Figure 1. Simplicity Studio

Developing Intelligent Apps

LogicStudio Training Guide

Read Temperature Data

AN1114: Integrating Silicon Labs Bluetooth Applications with the Micrium RTOS

When attending an adobe room, you will view the room utilizing your computer and use a phone for the audio.

InDesign Tutorial: Working with InDesign panels. InDesign Tutorial: Working with InDesign panels. The InDesign Tools panel

AN1143: Using Micrium OS with Silicon Labs Thread

Getting Started with Keil µvision 3 and C51

DATA ARCHIVING SOFTWARE V.

QSG153: Micrium s μc/probe Tool Quick- Start Guide

Tap BLE API Documentation

Department of Physics & Astronomy Lab Manual Undergraduate Labs. A Guide to Logger Pro

Locate your Advanced Tools and Applications

Alibre Design Tutorial - Simple Revolve Translucent Glass Lamp Globe

Si117x Static HRM/SpO2

FRONTLINE TEST SYSTEM

Exploring Windows 8. Starting Windows 8 for the First Time. About Windows 8 User Interface and Features. Get Started. Unlock Your Computer and Sign In

Before beginning this lab, you ll probably want to review sections 3.5 and 3.7 in the text.

Adesto Serial Flash Demo Kit: Quick Start Guide

The Sales Rep s Guide to Using Drive

Tizen-based Samsung TV Web Simulator Guide

BIRD SONG SYSTEM Using Image J to Measure Areas

SW860 FlukeView Software

Step 2: After opening the file, you should see following window. Select all the code, right click and then copy the code

Record Zoom Session. Launch Zoom. Set Up Your Presentation

PC, Mac, ipad and Android Tablet Bluetooth Instructions. Electronic Cutter PC SETUP. by Sizzix. Make sure the PC has Bluetooth capabilities

Access Control Using Intelligent Application Bypass

Controlling electrical home appliances, using Bluetooth Smart Technology (October 2015) Pedro José Vieira da Silva

QSG108: Getting Started with Silicon Labs Bluetooth Software

Installing Microsoft Desktop Connection for MAC YOU RE USING THE MOST RECENT COPY (SEE LINK) OF MICROSOFT

Kaltura Quick Start Guide

Getting Started with the NH Stone Wall Mapper January 2019

Project Debugging with MDK-ARM

JNIOR Support Tool Release Notes

Spreadsheet View and Basic Statistics Concepts

EDGEVue Web. User Guide. Accessing EDGECloud services for S-400 Series and M-300 Series Dataloggers. temptimecorp.com

PSM-Mobile User s Manual

HPE MyRoom Visual Remote Guidance (VRG) Quick Reference Guide

Pre-Lab Excel Problem

DNS Server Status Dashboard

How to Customize MyWebCampus Page

Note: To record with the ios App your Panopto server must be 4.3 or higher.

In this lab, you will build and execute a simple message flow. A message flow is like a program but is developed using a visual paradigm.

Chemistry Excel. Microsoft 2007

UG119: Blue Gecko Bluetooth Smart Device Configuration Guide

Plotting Points. By Francine Wolfe Professor Susan Rodger Duke University June 2010

Nextiva Drive The Setup Process Mobility & Storage Option

Real Monitor and Real Monitor Viewer

eiconsole for Healthcare Getting Started Tutorial

eiconsole for Healthcare Getting Started Tutorial

Enter your Appserv username and password to sign in to the Website

VISION BASICS. Introduction (note materials updated for Vision 6.8.0)

Comparative Neuroanatomy Tutorial: Hippocampal Quantification with ImageJ

Navigator Software User s Manual. User Manual. Navigator Software. Monarch Instrument Rev 0.98 May Page 1 of 17

USER MANUAL SATORI TEAM

Vision Pointer Tools

WhatsUp Gold Wireless v16.4

Track-It User s Guide. 1. Table of Contents. Track-It User Guide

Spectrometer Visible Light Spectrometer V4.4

PediGait IP. Users Manual

EFM32 EFM32GG11 Giant Gecko Family QSG149: EFM32GG11-SLSTK3701A Quick-Start Guide

Network Management Software ALLNET Zone Controller

Configuration of performance counters in RTMT

QSG113: Getting Started with Silicon Labs Thread

GeoVISTA Studio Tutorial. What is GeoVISTA Studio? Why is it part of the map making and visualization workshop?

Content. 1. Overview Setup Demonstration Linux Application Project on DE10-Nano Android Application Project...

You can retrieve the chart by inputting the symbol of stock, warrant, index futures, sectoral

SPIRIT USER S GUIDE TABLE OF CONTENTS

3. Software Operation

Mini Mini GlobiLab Software Quick Start Guide

Online End User Manual

Content Analysis for Workshop Smart Builder e-learning Authoring Tool By: Smruti Shah Roll No. 9 MA-ET

Introduction to Qualtrics ITSC

Overview of Adobe Fireworks

Farm Options - Customer Index

FLANDERS MX-5 CLUB OSMAND MANUAL

WhatsUp Gold v16.0 Wireless User Guide

SystemVue 2011 Fundamentals (version ) LAB EXERCISE 1. SystemVue Basics

Profiling Applications and Creating Accelerators

Transcription:

Energy profiler and Network analyzer Training Lab manual for KEY FEATURES BLE SDK V2.0.0 or later This training demonstrates the of usage of the Energy profiler and the Network analyzer modules of Simplicity Studio v4. Demonstration of Energy Profiler Demonstration of Network Analyzer silabs.com Smart. Connected. Energy-friendly Rev. 0.1

Setting up Example Project 1 Setting up Example Project First let s start with one of the SDK examples as a basis. 1. Make sure you have connected one of the Bluetooth SDK compatible boards to your computer, and the device is visible in Simplicity Studio v4. Also check that the Preferred SDK is set to Bluetooth Smart SDK v2.0.1. 2. Create a new Thermometer project, either from the list of examples or by clicking a New Project (Bluetooth Smart framework -> SDK 2.0.1 -> SOC Thermometer) 3. In the IDE and the project s ISC-file, press to generate the project to include stack and other linked files and HWconfiguration to match your settings silabs.com Smart. Connected. Energy-friendly Rev. 0.1 1

Measuring Energy Consumption with Energy Profiler 2 Measuring Energy Consumption with Energy Profiler Energy profiler can be used to monitor the energy consumption of a Blue Gecko Modules and SoCs online. 1. Click the Profile as button and select Simplicity Energy Profiler Target in the popup window 2. Click OK. This will automatically a. Build your project b. Upload it to the device c. Start Energy Profiler silabs.com Smart. Connected. Energy-friendly Rev. 0.1 2

Measuring Energy Consumption with Energy Profiler 3. A new Energy Profiler perspective appears. You can switch easily between Simplicity IDE and Energy Profiler perspectives in the perspective switcher of Simplicity Studio in the upper right corner of the main window. 4. Stop the recording of energy consumption by clicking on 5. You can see peaks in the energy consumption diagram. Click on one of them and zoom in with the time until you see small dots appearing on the diagram. These dots repre- axis zoom sent measurement points. Note, that the maximum consumption is much greater than you could see it on the diagram before zoom! This is because in zoomed-out mode, the shown values are averaged. If you need exact values, always zoom in! You can also see, that the peak consist of 3 distinguishable peaks. These peaks correspond to the 3 advertisement packets broadcasted on the 3 advertisement channel. When the device is not advertising, it is put in deep sleep mode. Hence you can measure sleep current in other time instances. silabs.com Smart. Connected. Energy-friendly Rev. 0.1 3

Measuring Energy Consumption with Energy Profiler 6. To measure average consumption, simply click and drag your mouse over a time interval. A new bar will appear showing consumption information for the given interval. Here we use 100ms advertisement interval, hence we chose the measured interval to be 100ms to obtain a proper average consumption. Overall average is measured as well, but this is influenced by transient events. 7. Click on the arrow between the project name, and click on End Session to disconnect from the device. 8. Switch back to Simplicity IDE perspective 9. Open main.c and find the line gecko_cmd_le_gap_set_adv_parameters(160,160,7); change it to silabs.com Smart. Connected. Energy-friendly Rev. 0.1 4

gecko_cmd_le_gap_set_adv_parameters(160,160,5); This will result in advertising only on 2 channels instead of 3 channels. Also change.sleep.flags=sleep_flags_deep_sleep_enable, to.sleep.flags=0, Measuring Energy Consumption with Energy Profiler This will disable sleep mode, i.e. the device will not be put into sleep mode if there is nothing to do. 10. Click on the Profile icon again to start profiling, pause measurement and zoom in to a peak. Now you can see, that there are only 2 peaks corresponding to the 2 advertisement packet, and higher consumption around them, since the device remains in EM0 mode, instead of being put into deep sleep. 11. Click on the arrow between the project name, and click on End Session to disconnect from the device. 12. Switch back to Simplicity IDE perspective silabs.com Smart. Connected. Energy-friendly Rev. 0.1 5

Tracing packets with Network analyzer 3 Tracing packets with Network analyzer BGM modules have a so called Packet Trace Interface (PTI). With this interface all transmitted and received packets can be obtained from the device. 1. Click the arrow next to the Profile as button and select Profile As Network Analyzer Target 2. Select the device and click OK on the popup window. Uncheck Launch console and start capture session for now. 3. A new Network Analyzer perspective appears. You can switch easily between Simplicity IDE and Network Analyzer perspectives in the perspective switcher of Simplicity Studio in the upper right corner of the main window. 4. If you are not sure, you have the latest version of your code on the device, upload your program: right click on your device, choose disconnect then upload application, select your binary file, press OK, right click on your device again and choose connect. silabs.com Smart. Connected. Energy-friendly Rev. 0.1 6

Tracing packets with Network analyzer 5. Select File > Preferences. Browse for Network Analyzer > Decoding > Stack Versions, and make sure Bluetooth Smart is your default stack profile. Press OK. This would ensure, that the packets are parsed as Bluetooth packets. 6. Right click on your device and choose Start capture. This will open up a new window and start capturing your packets. silabs.com Smart. Connected. Energy-friendly Rev. 0.1 7

Tracing packets with Network analyzer 7. While capturing, open your Blue Gecko app on your smart phone, and connect to Thermometer Example. silabs.com Smart. Connected. Energy-friendly Rev. 0.1 8

Tracing packets with Network analyzer 8. Stop capturing with right click on the device > Stop capture 9. Investigate the captured packets silabs.com Smart. Connected. Energy-friendly Rev. 0.1 9

Tracing packets with Network analyzer You will find, that related packets like requests and responses make together a transaction. These transactions are listed separately in the Transactions window. To find the first packet of the transaction, simply click on the transaction. To see the details of the packet, simply click on the packet. You can see both the raw and the parsed format of the packet in the Hex Dump / Event Detail windows. Now examine some packets: a. All connection starts with advertising. One of the devices has to advertise itself, in order to make possible for others to connect to them. Find the ADV indication packet. Click on it, and find the name of the device in the Hex Dump. b. The connection is initiated with Connect Request packet. Find the Connect Request packet! Click on it, and in the Event Details (the parsed version of the packet) find the Interval parameter. This determined the connection interval. Take the value, change the hex to decimal, and multiply it with 1.25. Now you have the connection interval in ms. Compare this value with the transaction durations in the Transactions window. The transaction interval has to be slightly more than the connection interval. c. The thermometer example send indications every second to report the temperature continuously. Find a Handle Value Indication packet. Find the Attribute Value, change the order of the 2 nd and 3 rd bytes and convert it to decimal. Divide by 1000 to get the temperature value in C. E.g. if the Attribute Value is 00447800FD, the temperature is 0x7844 / 1000 = 30.788 C. Compare it to the measured temperature on your smart phone. silabs.com Smart. Connected. Energy-friendly Rev. 0.1 10