Bluetooth Smart Development with Blue Gecko Modules. Mikko Savolainen October 2015

Similar documents
BT121 Bluetooth Smart Ready Module. May 2015

BT121 Bluetooth Smart Ready Module. July 2016

BLE121LR Bluetooth Smart Long Range Module 5/12/2014 1

Developing Accessories for the Apple HomeKit Ecosystem. November 2016

BLED112 Bluetooth Smart USB Dongle 9/16/2013 1

Bluegiga Bluetooth Smart Software v.1.3 5/28/2014 1

nblue TM BR-MUSB-LE4.0-S2A (CC2540)

Bluegiga Wi-Fi Software 9/19/2013 1

UG119: Blue Gecko Bluetooth Smart Device Configuration Guide

Bluegiga WF121 Wi-Fi Module. Embedded Wi-Fi modules. for affordable connectivity

QSG107: SLWSTK6101A/B Quick-Start Guide

WF121: b/g/n module. Product Presentation

QSG107: SLWSTK6101A/B Quick-Start Guide

The Software of Things T Y S O N T U T T L E C E O S I L I C O N L A B S A S P E N C O R E C E O S U M M I T S H E N Z H E N 8 N O V E M B E R 2018

QSG139: Getting Started with Bluetooth Software Development

QSG126: Bluetooth Developer Studio Quick-Start Guide

AN980: BLUETOOTH SMART SDK

LM931 Bluetooth low energy Module

BLUEGIGA BLUETOOTH SMART SOFTWARE

nblue TM BR-LE4.0-S2A (CC2540)

QSG108: Getting Started with Silicon Labs Bluetooth Software

SPBTLE-1S ArTM. October STMicroelectronics

BLUETOOTH SMART READY SOFTWARE

TI SimpleLink dual-band CC1350 wireless MCU

LM930 Bluetooth low energy Module (with U.FL Connector) Standalone (With Embedded Bluetooth v4.1 Stack)

QSG107: SLWSTK6101A Quick-Start Guide

BRD4301A Reference Manual

Adafruit Feather nrf52840 Express

From Imagination to the IoT. October 5 th, 2015

CC26xBxA Bluetooth Smart and IoT Module

Frequently Asked Questions

Wi-Fi technologies. Krisztian Kovacs, September 29, 2016

Company Introduction 4. Technology and Services Introduction 5. Bluegiga iwrap Software 25. Wi-Fi Modules 30. WF111 Wi-Fi Module 32

EVE2 BLE Datasheet. The EVE Platform features standardized IO, common OS and drivers and ultra-low power consumption.

New STM32WB Series MCU with Built-in BLE 5 and IEEE

EVE2 BLE CAN Datasheet

Frequently Asked Questions

Hands-On Workshop: ARM mbed

Silicon Labs - Wireless Solutions

Wireless Module Bluetooth R Smart Module EYSGCN Series EYSGJN Series EYAGJN Series Overview. Sep. 14, 2015 Version 1.0

BLUETOOTH SMART PROFILE TOOLKIT

BLUEGIGA BLUETOOTH SMART SOFTWARE

Datasheet. RS485 description The UART/RS485 physical layer gives support for UART communication and higher level Modbus protocol.

LM931 Bluetooth low energy Module Standalone (With Embedded Bluetooth v4.1 Stack)

Wireless Module Bluetooth R low energy Module Overview. Dec. 9, 2016 Version 1.4

mbed Kit User Guide of NQ62x daughter board

Wireless Module Bluetooth R low energy Module Overview. May 30, 2018 Version 1.8

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

LM930 Bluetooth low energy Module (with IPEX Connector) Standalone (With Embedded Bluetooth v4.1 Stack)

5 things you want to know about Bluetooth 5

PRODUCT COMPARISON GUIDE

New STM32WB Series MCU with built-in Bluetooth 5 and IEEE

Bluetooth Low Energy Portfolio

Particle E Series Cloud-integrated hardware platform for cellular IoT devices

ARROW ARIS EDGE Board User s Guide 27/09/2017

SmartBond DA Smallest, lowest power and most integrated Bluetooth 5 SoC. Applications DA14585

AN1053: Bluetooth Device Firmware Update over UART for EFR32xG1 and BGM11x Series Products

AN1086: Using the Gecko Bootloader with the Silicon Labs Bluetooth Applications

WAVETEK BLE-WT51822AA/AB. Revision History. Bluetooth low energy Module WT51822AA (256k) /AB (128k) (Bluetooth Low Energy BT4.0) PRODUCT SPECIFICATION

Intel Galileo gen 2 Board

MCU Solutions for IoT A U G U S T

AN888: EZR32 Quick Start Guide

Hands-On Workshop: ARM mbed : From Rapid Prototyping to Production

A Real-Time BLE enabled ECG System for Remote Monitoring

STM32G0 MCU Series Efficiency at its Best

Intel Research mote. Ralph Kling Intel Corporation Research Santa Clara, CA

Optimization of IoT Sensing Systems Based on Bluetooth Smart SiP Modules. Chris Barratt Insight SiP Sophia Antipolis France October 15 th 2015

PBLN52832 DataSheet V Copyright c 2017 Prochild.

Bluetooth modules. Modules and turnkey solutions with embedded Bluetooth firmware and AT command

NRF51822 Eval Kit User Manual

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Wireless-Tag WT51822-S1

ArduCAM CC3200 UNO board

BLE MODULE SPECIFICATIONS

HARDWARE REFERENCE IMM-NRF51822

Use of ISP1807-LR Evaluation Boards

WiFi and Wireless System on Module Applications and Bluegiga products

CSR102x Bluetooth Smart Product Line Overview

QSG155: Using the Silicon Labs Dynamic Multiprotocol Demonstration Applications

AIM: To create a project for implement a wireless communication protocol on an embedded system- ZigBee.

Connect with Simplicity

AN888: EZR32 Simple TRX Application Quick Start Guide

Typical Applications: GHz Bluetooth low energy systems - Proprietary 2.4 GHz systems - Sports and leisure equipment - Mobile phone accessories,

ARROW ARIS EDGE S3 Board User s Guide 21/02/2018

WT32i Bluetooth Audio Module

Use of ISP1880 Accelero-Magnetometer, Temperature and Barometer Sensor

Quick Start Guide. Bluetooth Low Energy expansion board based on SPBTLE-RF module for STM32 Nucleo (X-NUCLEO-IDB05A1) Version 1.

Embedded Linux With Raspberry Pi IOT

Understanding Bluetooth Low Energy. Hary Radakichenane RF Marketing Manager Raffaele Riva RF Application Manager

UG160: Wizard Gecko BGTool User's Guide

Quick Start Guide. Bluetooth Low Energy expansion board based on BlueNRG for STM32 Nucleo (X-NUCLEO-IDB04A1) Version 1.

ČVUT FEL v Praze, U-BLOX IOT MODULES

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232DEXA

UG235.01: Developing Code with Silicon Labs Connect

HOW TO INTEGRATE NFC CONTROLLERS IN LINUX

BLE010V5 1. (Based on CSR1010) Bluetooth Modules. User s Manual V1.5

FOR IOT PRODUCT DEVELOPMENT

Use of ISP1507-AL Evaluation Boards

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

Oberon M2M IoT Platform. JAN 2016

Transcription:

Bluetooth Smart Development with Blue Gecko Modules Mikko Savolainen October 2015

Agenda Bluetooth & the IoT BGM111 Bluetooth Smart Module Blue Gecko Bluetooth Smart Software Software Development Flow Bluetooth Developer Studio How to Find Resources? How to Get Support? Question and Answers 2 Silicon Labs Confidential

Bluetooth and the IoT Ultra low power - Ability to run years on coin cell batteries Connectivity to consumer devices - smart phones, tablets, PCs Supported by major platforms - ios, Android 4.3, Windows 8, OSX and Linux Reliable and robust - AFH, retransmissions and 24-bit CRCs Secure paring, privacy, MITM protection and AES-128 Standardized profiles - cover key use cases (HR, HID, Glucose, Proximity etc.) Enables profiles to be developed as Apps - fast deployment Customer specific profiles no need to wait OS support 3 Silicon Labs Confidential

Introducing the Fully integrated, pre-certified Bluetooth Smart module solution Saves $100-200k in development costs Saves $50k in certification costs Fastest path to low-power wireless connectivity for the Internet of Things 6-12 months faster time-to-market Easy migration path to Silicon Labs Blue Gecko SoC solutions Same software runs on both the module and the SoC 4 Silicon Labs Confidential

Drop-In and Connect Integrated Blue Gecko Bluetooth SoC and Antenna 8 dbm TX High performance 2 dbi gain antenna Software configureable TX power Range up to 200 meters Worldwide Certifications Bluetooth, CE, FCC, IC, Japan and S-Korea 5 Silicon Labs Confidential

Use Energy-Friendly Hardware Powerful MCU ARM Cortex-M4F @ 40 MHz 32kb RAM and 265kB Flash 24kB free RAM and 160kB free flash for apps or OTA Crypto Hardware AES 128/256, SHA-1/2 + ECC Flexible Peripherals Serial: UART, SPI and I2C GPIO with interrupts Analog: 12-bit ADC, DAC and comparator Timers: Timer, RTC, Pulse counter/pwm etc. 6 Silicon Labs Confidential

Easily Extend and Customize Bluetooth Smart Software Bluetooth 4.1 compliant Upgradable to Bluetooth 4.2 Central and peripheral support Free Bluetooth Smart SDK Easy-to-use BGScript TM scripting API BGAPI TM Serial Protocol for apps with host BGLIB TM API for native C applications on host Easy-to-use Tools Energy Profiler RF testing Debug and firmware updates Bluetooth Developer Studio plug-ins 7 Silicon Labs Confidential

Blue Gecko Wireless Starter Kit SEGGER J-LINK LCD BGM111 Module Board Battery + USB powered Buttons Joystick LED Sensors: Temperature Humidity Accelerometer 8 Silicon Labs Confidential

Blue Gecko Bluetooth Smart Software Integrated Bluetooth Smart Software Implements ATT, GATT, SMP and GAP Central and peripheral roles Supports aby GATT based profile Flexible, Easy-to-Use APIs BGAPI TM serial protocol for apps with host BGLIB TM host C-library implementing BGAPI BGScript TM scripting for standalone apps Profile Toolkit TM for building GATT profiles Free Software Development Kit Script development tools BGLIB source code for hosts Example applications in script and C Bluetooth Smart profile examples 9 Silicon Labs Confidential

BGScript Scripting Language Simple event-driven BASIC-like application scripting language Abstracts away the complexity of Bluetooth development, embedded programming and hardware interfaces Enables fast, simple firmware development into Blue Gecko Bluetooth Smart modules Eliminates the need for external MCU 10 Silicon Labs Confidential

Blue Gecko BGAPI Serial Protocol (NCP mode) A well-defined, lightweight serial protocol that works over UART interface Host Stack BGAPI command BGAPI response BGAPI event Some commands will produce events Command validation Command processing Used when the application resides on an external host MCU Contains APIs for GAP, GATT, security manager, connection management, flash and peripheral interfaces Small RAM and flash requirements on the host 11 Silicon Labs Confidential

BGLIB Host Library A portable C library that implements the BGAPI serial protocol parser Abstracts the BGAPI serial protocol and provides high-level C functions and callbacks for application developers Contains APIs for GAP, GATT, security manager, connection management, flash and peripherals Easy to port to various host systems from embedded MCUs to OS platforms including Windows, Linux or OSX 12 Silicon Labs Confidential

Blue Gecko Profile Toolkit A development tool for GATT-based services Simple XML based description langugage for describing services, data and access properties Templates available for most common Bluetooth Smart services 13 Silicon Labs Confidential

ios and Android Apps Reference applications for both ios and Android Implement basic Bluetooth Smart profiles Developer mode for Bluetooth debugging Available in source code 14 Silicon Labs Confidential

BGScript or NCP Development Flow Project Configuration of architecture (NCP vs. BGScript) Hardware type selection Definition of resource files Firmware output file Project File Hardware configuration Bluetooth Services (GATT) Application code (BGScript) Firmware for Blue Gecko Hardware configuration Host interface configuration Peripheral configurtion NCP mode Firmware for Blue Gecko Application code (BGLIB) GATT Services Bluetooth Smart profiles, services and characteristics Application code Either BGScript code Code developed on top of BGLIB for external host 15 Silicon Labs Confidential

Bluetooth Developer Studio Bluetooth Developer Studio can automate and simplify code development Contains all adopted Bluetooth Smart profiles Auto-generates: Project file template Hardware configuration file template Bluetooth Smart GATT database BGScript or BGLIB application code Has a simple and intuitive user interface Download: here 16 Silicon Labs Confidential

Building a Bluetooth Smart Profile Start the Bluetooth Developer Studio Drag and drop the desired profile from the Profiles tab to the designer view Open GAP dialog Configure GAP settings Device name Advertisement parameters Security modes Note: This is a mandatory step Add any other additional services you like 17 Silicon Labs Confidential

Auto-generate a Blue Gecko Project Once you have built your profile and service collection Go to Tools -> Generate Code Select: Blue Gecko Project Generator Press Generate The Developer Studio will generate: A project template A hardware configuration file template GATT.xml with the selected profiles and services BGScript or BGLIB application code template 18 Silicon Labs Confidential

The Project File <project device="bgm111"> The hardware type <gatt in="gatt.xml" /> The GATT file name and location <hardware in="hardware.xml" /> <scripting> </scripting> Hardware configuration file location <script in="bgscript.bgs" /> Enables BGScript and defines the file For NCP projects, just leave this out <image out="firmware.bin" /> Name of the firmware output 19 Silicon Labs Confidential

The Hardware Configuration <uart index="1" baud="115200" flowcontrol="false" bgapi="false"/> Enables UART and configures settings bgapi="false = NCP mode disabled bgapi= true = NCP mode enabled <gpio port="a" pin="5" mode="pushpull" out="1"/> <gpio port="a" pin="3" mode="pushpull" out="0"/> Configures GPIO pins Similar settings for other peripheral interfaces. See: Configuration guide for details 20 Silicon Labs Confidential

Bluetooth Smart Services and Characteristics <service uuid="1816" advertise="true"> Starts a service definition uuid="1816" 16-bit UUID of the service advertise="true UUID added to Advertisement data <characteristic uuid="2a5c" id="xgatt_1816_2a5c" > <properties read="true" /> <value type="hex" length="2" user="true" /> </characteristic> Starts a characteristic definition uuid= 2A5C" id="xgatt_1816_2a5c" properties read="true type="hex" length="2 16-bit UUID of the characteristic ID used by the application Allowed ATT operations Data type and length user="true Value provided by the application 21 Silicon Labs Confidential

The Application Code (BGScript) Variables: For every GATT characteristic a variable is generated procedure initgatt() This procedure can be used to intialize the dynamic values in GATT procedure initgap() Intializes the GAP settings, like advertisement parameters 22 Silicon Labs Confidential

The Application Code (BGScript) event system_boot(major, minor, patch, build, bootloader, hw) Generated on power-up runs initgatt() and initgap() event le_connection_opened( ) Generated when Bluetooth connection established event le_connection_closed(reason, connection) Generated when Bluetooth connection closed/lost 23 Silicon Labs Confidential

Compiling and Installing Firmware Connect Blue Gecko Wireless Starter Kit to your PC via USB Turn the Power swtich to AEM position Start BGTool and use Upload tool to compile and download the firmware Alternatively you can use: bgbuild.exe f project.xml to compile and install the firmware from the command line Test your application Note: For NCP mode this works in a same way, except the application code is generated in C for the host (BGLIB API) 24 Silicon Labs Confidential

How to Find Resources? Documents: Link Software downloads: Link Kits and Modules: BGM111 and Kit Bluetooth Developer Studio Link Bluetooth Smart specifications Link 25 Silicon Labs Confidential

How to Get Support? Knowledgebase: Search of information not in manuals Community: Share information with other users Create a Support Request: Get one-to-one support from our Application Engineers 26 Silicon Labs Confidential

Questions and Answers www.silabs.com