IoT device in Minutes with ST s BlueNRG Pierre-Yves BERGER Rutronik Manchester UK 9 th of September, 2014
Agenda 2 Bluetooth vs Bluetooth Smart It all starts by the hardware Introduction Power consumption Continues by developing the software How does this look like Some applications examples And ends with a qualification Demonstration & evaluation tools Moving forward, IoT is not just about Bluetooth Smart
Bluetooth vs Bluetooth Smart 3
Bluetooth CLASSIC / SMART READY / SMART Up to 3.0 = DUAL MODE = LOW ENERGY Streaming Devices (audio, data...) Classic Bluetooth Hub of the Wireless Network Bluetooth SMART READY Low data rate, Low energy Devices (Sensors...) Bluetooth SMART
Version History 5 BT 1.x 1.x BT2.0 2.0 BT2.0+EDR 2.0+EDR BT3.0 3.0 3.0 + HS BT4.0 4.0 Smart 4.0 Smart Ready BT4.1 4.1 Smart 4.1 Smart Ready
Hardware overview 6
Bluetooth Smart Network Processor BlueNRG 7 RF Features Complete PHY, link layer and Host providing GATT level interfaces Air data rate up to 1 Mbps Operating voltage from 2.0V to 3.6V, integrated SMPS Clocking flexibility Low power (32kHz): Integrated Ring oscillator or external crystal Oscillator. Main (16MHz or 32MHz): External Crystal Oscillator. Input voltage monitoring and temperature sensor. Support Master or Slave mode of operations (up to 8 slaves) Other features Bluetooth Smart 4.0 (single mode low energy) AES 128-bit encryption co-processor Flexible host interface : SPI, GPIOs ACI Application Control interface Qualified as a Bluetooth sub-system What you need to remember! Bluetooth Smart 4.0 qualified sub-system Lowest power consumption in the field Sensitivity RX Power (peak) Tx Power Shutdown -88dBm 7.7mA with DCDC 8.3mA @ 2dBm with DCDC 5nA QFN32 5x5x0.9 WLCSP 2.6x2.6
BALUN companion chip for BlueNRG 8 9 external components into 1 die 1.19mm² ST IPD Technology on glass High space saving Faster Time to market High Reliability High performance RF solution No temperature dispersion, parasitic elements 1.4x0.85x0.65 BALF-NRG-01D3
BlueNRG Application schematic 9 Component High performance Mode Standard Mode C9 0.8pF 0.7pF C10 0.7pF 0.7pF C11 51pF 51pF C14 1pF 1pF C15 1.2pF 0.8pF C16 51pF 51pF L2 1.2nH 1.4nH L3 2.7nH 3.7nH L4 1nH 1nH High Performance or Standard Mode selectable through BOM High Performance : TX output power up to +8dBm Standard Mode : TX output power up to +5dBm BlueNRG can be routed on a single layer PCB further reducing costs
Application schematics & DCDC usage 10 DCDC converter active Current consumption cut at cost of a 10µH inductor DCDC converter not active
Key Performances 11 Current Consumption [Vin=3.3V] TX performance RX Performance Parameter Typ. Value No DCDC Typ. Value With DCDC Unit Reset 5 5 na Stand-by (Slave & Master) 1.4 (S) 2 (M) 1.3 (S) - 2(M) µa Sleep (pending XO/role conditions) 1.7 ~ 3.5 1.7 ~ 3.5 µa Active (CPU, flash and RAM) 3.5 3.3 ma TX @ +2dBm 17.2 8.3 ma RX 14.3 7.7 ma Config. Parameter Typ. Value Unit High Power Standard Power Output power for the lowest power setting -15 dbm Output power for the highest power setting +8 dbm Output power for the lowest power setting -18 dbm Output power for the highest power setting +5 dbm Parameter Typ. value Unit Sensitivity level for 0.1 % BER -88 dbm In band blocking C/I for an wanted signal level of -67 dbm: Co-channel interference Interference at frequency offset foffs = 1 MHz Interference at frequency offset foffs = 2 MHz Interference at frequency offset foffs 3 MHz Interference at frequency offset foffs 6 MHz 12 8-21 -30-40 db db db db db
Power consumption : On a use case! 12 Typical use case: BlueNRG device that reports* status every 100ms Connection duration between (1) & (2): Duration connection = 1.252ms (measured) Average consumption between (1) & (2): Current connection = 4.46mA (measured) Connection (wake-up) interval : Duration interval = Every 100ms (for this example) Average sleep current : Current interval = 1.7µA (as per datasheet) Average power consumption : 57.5 µa Battery life (230mAh) : ~160 days * Few bytes of data (ATT operation: 20/22 bytes)
Power consumption : Examples cont d 13 Conditions: 3V, 32kHz & 16MHz crystals, DCDC, +2dBm output. Test Item Measured Result Comment Off 5 na No RAM retention Not connected or advertising 1.7 µa standby mode, slave small GATT DB 2 µa standby mode, master or slave big GATT DB Advertising Connected No Data Connected One packet for each connection event. 13 ua (1.28s interval) 31µA (500ms interval) 5.4 µa (1.28s interval) 11µA (500ms interval) 49µA (100ms interval) 6.6 µa (1.28s interval, 19B data) 14µA (500ms interval, 19B data) 65µA (100ms interval, 19B data) All adv channels, with data (e.g. name, power level, flag) Current due to communication with external micro is included
Software Overview 14
BlueNRG Software partitioning 15 BlueNRG embeds all the Bluetooth Smart protocol stack Only application remains in the host MCU BLE Profiles are not mandatory and can be implemented through applications directly (ST can provide examples) BlueNRG is a BQB qualified device: RF qualified Bluetooth Smart protocol stack qualified
BlueNRG BlueNRG ACI Interface 16 ACI stands for Application Control Interface Used as interface to the host MCU (on an SPI connection) Built as an extension of HCI commands same format as the commands and event packets Uses VS (Vendor specific) commands Some (but not all) HCI commands are also accessible through ACI. ACI Vendor Specific commands Allows control of GAP, GATT, L2CAP Provides access to some HCI commands HCI Low level commands Interface accessible through ACI
BlueNRG firmware options 17 BlueNRG is provided with 3 firmware for 3 modes of operations Allows specific configuration for specific applications Allows power saving trade-offs (RAM2 is off during sleep for power save) MODE 1 : Slave and Master (only one connection) roles Number of attribute records Number of services Attributes value max size MODE 2 : Slave and Master (only one connection) roles MODE 3 : Slave and Master (up to 8 slaves) RAM Used 33 5 330 RAM1 Number of attribute records Number of services Attributes value max size RAM retention 70 15 554 RAM1+RAM2 Number of attribute records Number of services Attributes value max size RAM retention 36 5 275 RAM1+RAM2
Typical Memory Footprint 18 Based on an application running on an STM32L device embedding a Cortex M3 core. Simple Application Code interfacing to BlueNRG BlueNRG Sensor Demo Flash RAM Notes 2~4 KB 0.8~1.5 KB 15 KB 2 KB Profile Application ACI + Profile framework Flash RAM Notes 9 KB 3 KB HID-over-GATT 6 KB 2 KB Heart Rate Monitoring 2.3 KB Common Profile code Profile specific code Profile specific code
BlueNRG example applications 19 Application Profile 4.0 Description & scope Examples @ Alert Notification Profile allows a device like a watch to obtain information from a cellphone about incoming calls, missed calls and SMS/MMS messages Blood Pressure Profile enable a device to obtain blood pressure measurement and other data from a non-invasive blood pressure sensor that exposes the Blood Pressure Service Find Me Profile defines the behavior when a button is pressed on a device to cause an immediate alert on a peer device. This can be used to allow users to find devices that have been misplaced www.ihere accessory HID over GATT Profile Human Interface device allow to plug device such as mouse, keyboard Health Thermometer Profile enable a data collection device to obtain data from a thermometer sensor that exposes the Health Thermometer Service Heart Rate Profile enable a data collection device to obtain data from a Heart Rate Sensor that exposes the Heart Rate Service www.polar Fitness (1) Only Slave.
BlueNRG example applications 20 Application Profile 4.0 Description & scope Examples Phone Alert Status Profile used to obtain the Phone Alert Status exposed by the Phone Alert Status service in the peer device. The information of Alert Status and Ringer Setting of a phone can be received and changed by the Phone Alert Status service. This profile also enables the device to configure ringer status on the peer device Proximity Profile defines the behavior when a device moves away from a peer device so that the connection is dropped or the path loss increases above a preset level, causing an immediate alert www.lock /unlock Scan Parameters Profile used to provide devices with information to assist them in managing their connection idle timeout and advertising parameters to optimize for power consumption and/or reconnection latency Time Profile used to obtain the date and time, and related information such as time zone as exposed by the Current Time service in the peer device. www.watch
Qualification process 21
Qualified Bluetooth SMART 22 October 11, 2013 RF, LL, HCI Host stack Master & Slave QUALIFIED!
What it takes to Qualify BlueNRG 23 Request for a declaration ID 4000$ for associates 8000$ for adopters Qualify the design at a test house The Stack is already qualified in BlueNRG (previous slide) The HW design (Antenna, layout) needs to be qualified Should last a few days Cost would be around 4000$~5000$ according to the test house prices The application does not need to be qualified* THAT S ALL DONE : Qualification cost < 15k$ * Unless it uses Bluetooth Smart profiles, therefore additional test house + qualification cost will be deemed.
Development tools 24
BlueNRG Evaluation kit hardware 25 ST proposes a complete development kit including a generic motherboard (STM32- based) and a Blue-NRG daughter board. Motherboard : STM32L1 µcontroller Mini USB (A) JTAG 1 user button, 1 joystick (G) Accelerometer (LIS3DH) Temperature sensor (STLM75) 5 user LEDs (I) AAA battery holder Compatible with SPIRIT1 daughter-boards Daughter Board BlueNRG Bluetooth smart network processor 16MHz Crystal, an Low power 32KHz Balun, matching and SMA connector
BlueNRG Evaluation Kit Software 26 PC Software to control/test BlueNRG GUI enables RF performance testing HCI Commands testing Bluetooth connection testing Unitary test of commands Evaluation kit provided with Accelerometer F/W example IAR project example (require an ST- Link device)
BlueNRG: Demonstration Kit 27 Sensor Profile demo It implements a proprietary Bluetooth profile as an example This profile exposes two services: Acceleration Service Acceleration characteristic value Free Fall characteristic(1) Environmental Service Temperature characteristic Available as STEVAL-IDB002V1 Application available with source: Android (4.3 needed) iphone / ipad (1) The condition is detected if the acceleration on the 3 axes is near zero for a certain amount of time
ST proposes an BlueNRG USB dongle : STM32L1 µcontroller USB interface Optional JTAG connector (not mounted) Chip antenna UFL connector (for conducted tests) ST Reference : STEVAL-IDB003V1 BlueNRG USB dongle
BlueNRG shield for STM32 Nucleo ST propose an BlueNRG shield X-NUCLEO-IDB04A1: Integrated antenna Integrated ST Balun (BALF-NRG-01D3) 16MHz & 32kHz Crystals Enables power consumption measurement (jumper) S/W porting running on Nucleo STM32L1 & STM32L0
BlueNRG pre-developed SMART profiles 30 Available profiles (slave role) (1) Alert Notification Profile Blood Pressure Profile Find Me Profile HID over GATT Profile Health Thermometer Profile Heart Rate Profile Phone Alert Status Profile Proximity Profile Scan Parameters Profile Time Profile (1) Not available on BlueNRG-DK SW package (available upon specific request).
BlueNRG SW package (1/2) 31 It contains all the SW components allowing to evaluate, test and demo the BlueNRG product functionalities Easy to install & use Extract the content of BlueNRG_DK_- x.x.x-setup.zip file into a temporary directory. Launch BlueNRG-DK-x.x.x-Setup.exe and follow all the instructions. Default installation package is C:\Program Files (x86)\stmicroelectronics BlueNRG-DK-x.x.x SW package structure
BlueNRG SW package (2/2) 32 BlueNRG GUI folder BlueNRG documentation folder BlueNRG stack & STM32L binary images PC drivers for DFU and Virtual COM Code for sending ACI cmds & definition of BlueNRG events Platform-dependent files. BlueNRG Sensor Profile Demo: EWARM prj, source & header files (1) (1) BLE Sensor Profile, Slave component running over STEVAL-IDB002V1 board. It interfaces with the Smartphone Sensor Demo Master component.
Moving Forward 33
Other applications, other techs 34 Smart Cities / Grid Smart Parking, Smart Lighting, Smart Metering, Photovoltaic, E-Mobility Logistics Fleet Management, Quality of shipment Indication, Industrial Control: M2M Application, Indoor Location, smart Agriculture, Home & Building Automation: Security, Video Surveillance, Energy Monitoring, ehealth Patients Monitoring, Fall Detections, Social alarms Consumer devices Wearables, phone accessories.
169MHz Today s ST RF Devices Portfolio 35 SPIRIT 1 SP1ML868 Sub-GHz Transceivers & Modules Up to 16dBm output power Packet handler Embedded SMPS STS1TX TX only version of SPIRIT1 Up to 16dBm output power SP1ML915 Module including STM32+SPIRIT1+ Antenna 14 x 13.4 x 2.5 mm SPGRF Sub-GHz RF module SPIRIT1+Balun+Antenna ** BALF-SPI-01D3 for SPIRIT1 868 MHz **BALF-SPI-02D3 for SPIRIT1 433 MHz Bluetooth Smart & Modules BlueNRG Bluetooth smart solution GATT level i/f QFN, CSP Package SPBTRF-LE BT v4.0 Single mode BTLE Network processor module Include BlueNRG+Antenna 11.5 x 13.5 x 2.0 mm * BAL-NRG-01D3 for BlueNRG Bluetooth Modules SPBT2632C2 SPBT2632C1 SPBT2932 Integrated antenna BT3.0 module Class 2 & Class 1 variants Integrated antenna BT4.0 Dual Mode module Data support (2014) Audio support (2015) 2,4GHz Wi-Fi Modules SPWF01SA.11 SPWF01SC.11 Wi-Fi Modules 802.11bgn Serial interface Embedded 1MB flash SPWF01SA.21 SPWF01SC.21 SPWF01SP.21 Wi-Fi Modules Serial interface No embedded user flash
36