artm bluenrg-mesh presentation - emcu...bluenrg-mesh 1.0 now 2018 • friendship/low power protocol...

36
BlueNRG-Mesh Application Release to Market Julien Tiron RF application engineer EMEA application Analog & MEMS Group

Upload: others

Post on 29-Jun-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-MeshApplication Release to Market

Julien TironRF application engineer

EMEA application

Analog & MEMS Group

Page 2: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-MESH 2

Easily connecting appliances to iOS/Android, out-of-the-box

Page 3: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-Mesh ARtM

Bluetooth Mesh Specification

BlueNRG-Mesh Solution

BlueNRG portfolio

Getting started with BlueNRG-Mesh

Page 4: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth MESH official announcement 4

July 18, 2017 - Bluetooth SIG Announces Mesh Networking Capability

Brings proven, global interoperability and the mature, trusted ecosystem of Bluetooth

technology to industrial-grade device networks

Page 5: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-MESH is here 5

Page 6: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Extending Bluetooth Capabilities 6

one-to-onePAIRING

DATA TRANSFER

- Sports & fitness devices

- Health and wellness devices

- Peripherals and accessories

one-to-manyBROADCASTING

LOCALIZED INFORMATION

- Point of interest beacons

- Item finding beacons

- Way finding beacons

many-to-manyMESH

LARGE DEVICE NETWORKS

- Building automation

- Wireless sensor networks

- Asset tracking

Page 7: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth® Mesh TopologyManaged Flooding

7

PROXY

NODE

RELAY

NODE

RELAY

NODE

RELAY

NODE

NODENODE

NODE

NODE

RELAY

NODE

LOW

POWER

NODELOW

POWER

NODE

Advertising Bearer

Advertising “not relayed”

Advertising “Low power”

GATT (BLE connection)

The Bluetooth Mesh working group chose for mesh network mechanism a flooding

protocol. Compared to routed protocols, it is much more simpler to deploy. To stay

efficient, the BLE Mesh take advantage of a managed flooding network.

Page 8: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Built-in Security 8

Mesh communications

• Encrypted with 128-bit AES-CCM

• Multiple layers security thanks to the network/application

keys shared during provisioning

• Privacy through obfuscation

• Protection from multiple types of attack:

Replay attack

Bit-Flipping attack

Eaves Dropping attack

Man-in-the-middle attack

Trashcan attack

Configured node

Provisioning

• 256-bit ECDH algorithm

(public/private keys)

• Exchange several

security keys

• Set a unique address

for the device

• Two separate BLE

connections to secure

the communication link

Unconfigured device

Device added

to the network

Page 9: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Proven, Global Interoperabilitybased on a full-stack specification and models

9

A model represents a specific behavior or service and defines a set of states and messages that act on these states.

Model examples are Device Configuration, Sensor Reading, Light Control or Vendor Specific models.

The Bluetooth SIG MESH Profile defines a standard access layer to exchange

messages between a BLE device and a Smart Application (Controller) for simple

control and monitoring applications using models.

CONTROLLER

Android, iOS

or embedded

HOW DEVICE FEATURES ARE EXPOSED

Page 10: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth® Mesh Applications 10

• Building automation

• Wireless sensor networks

• Asset tracking

• Smart home

• Street lighting

• Industry 4.0

• …

The Bluetooth SIG MESH Specification intends to extend the capabilities of Bluetooth

Smart chips to answer more and more complex applications. The protocol has been

developed with the Smart Lighting industry in mind.

Page 11: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth Mesh Specification

BlueNRG-Mesh Solution

BlueNRG portfolio

Getting started with BlueNRG-Mesh

BlueNRG-Mesh ARtM

Page 12: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

13

IOS and Android comprehensive SDK

Ultra-Secure solution (ECDH, AES-128,…)

Deploy a Bluetooth Mesh network

Page 13: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-MESH SDKfor Embedded, Android and iOS

13

Hardware Abstraction

Layer API

Boards Support

PackagesDrivers

ST BlueNRG-Mesh

LibraryMiddleware

HW ComponentsSTM32

+

BlueNRG-MS

Applications LED Light Demo

BlueNRG-1

or

BlueNRG-2

ST BlueNRG

Core Stack

Android BlueNRG-Mesh

Core Stack

ST BlueNRG-Mesh

Android App

Bluetooth Chip

Android BT4.x Stack

Android Application

Framework

Linux Kernel

Sensor Demo

BlueNRG-MESH SDK Android SDK

iOS BlueNRG-Mesh

Core Stack

ST BlueNRG-Mesh

iOS App

Bluetooth Chip

iOS BT4.X Stack

iOS Application

Framework

XNU Kernel

iOS SDK

Available on SoC and network processor

+

Page 14: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-Mesh in Numbers 14

Power consumption

7 mA average

SoC Memory footprint

109 KB Flash

20 KB RAM

Application Payload

8 bytes unsegmented

64 bytes segmented

Dual chip Memory footprint

88 KB Flash

19 KB RAM

Provisioning procedure

15 seconds average

BLE Mesh 1.0 certification

End of June 2018

Network size

Constantly tested on 30 nodes network

Compatible with both BLE 4.X or 5.0

Hop latency

10-20 ms

Page 15: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Proprietary Lighting demonstration 15

Smart CityStreet Lighting, General

Purpose Messaging

Smart HomeLighting, HVAC,

Security/Access Control,

Healthcare, Asset Tracking,

Assisted Living, Smart Meters

• Same network may have multiple applications running

• For example: Lights, sensors, switches co-exist

• Single network has same “Network key”

• Different application will have different “Application key”

Standard BLE

Connection

Page 16: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

SDK resources 16

Embedded Android IOS

• UM2290: Android API Guide

• UM2180: Getting started with Android

• UM2361: Getting started for iOS App

• UM2295: Getting started with Mesh

Embedded Firmware

Documents

Page 17: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-Mesh Roadmap 17

• Firmware library

• Android and IOS library

• Transport layer

compliant to Bluetooth

Mesh 1.0

• OTA firmware upgrade

(point-to-point)

• Configuration model

• Vendor model

BlueNRG-Mesh 1.0

NOW 2018

• Friendship/Low Power

protocol

• Lighting model

• Sensor model

• Generic model

BlueNRG-Mesh 1.1• Provisioning over

Advertising

• Sub-net implementation

• Directed

Forwarding/Routing

BlueNRG-Mesh 1.2

2019

• Support Bluetooth Mesh

1.1 specification

• OTA firmware upgrade

over the mesh

BlueNRG-Mesh 2.X

Page 18: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-Mesh ARtM

BLE Mesh Specification

BlueNRG-Mesh Solution

BlueNRG portfolio

Getting started with BlueNRG-Mesh

Page 19: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-2 processor 19

Just add Sensors!

The lowest power

consumption

Processing power

on demand

Flexible memory

architecture

Maximum security

Sensors

25 µA/MHz

0.9 µA sleep

8.3 mA Tx

7.7 mA Rx

Low-power

architecture,

Cortex-M0 @ 32

MHz

256 KB eFLASH

24 KB ULL RAM

(with full RAM

data retention)

ECC-256

AES-128

Factory UID

Secure KEY

Page 20: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth® SMART offering Roadmap

Discrete20

Cortex-M0

Output power: +8dBm

Rx:7.3mA

Tx: 8.2mA@0dBm

QFN32, WCSP34

BlueNRG

Cortex-M0

Master & Slave

Output power: +8dBm

Rx: 7.3mA

Tx: 8.2mA@0dBm

QFN32, WCSP34

BlueNRG-MS

In production

BLE 4.1

BLE 4.0

Application Processor = SoC

Network Processor

Cortex-M0

256KB Flash, 24kB RAM

I²C, SPI, UART, ADC

Output power: +8dBm

Rx: 7.3mA

Tx: 8.2mA@ 0dBm

QFN32 , QFN48 WCSP34

BlueNRG-2

BLE 4.2

no more use for new design

BLE 4.2 : secure

connection & privacy 1.2

BLE 4.2 : data packet

extension length

Cortex-M0

160KB Flash, 24kB RAM

I²C, SPI, UART, ADC

Output power: +8dBm

Rx: 7.3mA

Tx: 8.2mA@ 0dBm

QFN32 (AEC), WCSP34

BlueNRG-1

BLE 4.2

Page 21: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

21

In production

Application Processor = SoC

Network Processor

FCC, CE

Cortex-M0

Master & Slave

Output power: +4dBm

11.5x13.5x2

SPBTLE-RF

BLE 4.1

Bluetooth® SMART offering Roadmap

Modules

FCC, CE

Cortex-M0

Master & Slave

Output power: +4dBm

11.5x13.5x2

SPBTLE-RF0

FCC, CE

Cortex-M0

160KB Flash,

I²C, SPI, UART, ADC

Output power: +4dBm

11.5x13.5x2

SPBTLE-1S

BLE 4.2

BLE 4.1

Page 22: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Bluetooth Low Energy stackBLE network processor vs BLE application processor

22

Network processor:

• Dual chip solution

• Peripheral/memory flexibility

• Adding BLE connectivity to

existing designs

• SPI interface

• External MCU examples

based on STM32

• Support BLE 4.1

Application processor:

• Single chip solution

• Cost reduction

• Hosting customer application

• Small form factor

• Can also behave like a

network processor

• UART, SPI interfaces when

used as network processor

• Support BLE 4.2

Bluetooth Mesh stack

Application

Application Controller

Interface

External MCU

BLE Protocol stack

Application Controller

Interface

Link Layer

2.4GHz Radio

BlueNRG network processor

BlueNRG application processor

IOs

Communication

Peripherals

M0 Core

BLE Protocol stack

Application and Profiles

Link Layer

2.4 GHz Radio

Bluetooth Mesh stack

Page 23: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BlueNRG-Mesh ARtM

BLE Mesh Specification

BlueNRG-Mesh Solution

BlueNRG portfolio

Getting started with BlueNRG-Mesh

Page 24: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Lighting demo requirements24

• Hardware Requirement

• NUCLEO-L152RE + X-NUCLE-IDB05A1

(firmware 7.2C)

• STEVAL-IDB007V1 Board with BlueNRG-1 SoC

• STEVAL-IDB008V1 Board with BlueNRG-2 SoC

• USB type A to Mini-B USB cable to connect the

Nucleo board to the PC

• USB type A to Micro-B USB cable to connect the

IDB007V1 board to the PC

• (Software on demand) STEVAL-BLUEMIC1

Board, small form-factor and battery powered

• (Software on demand) STEVAL-IDB007V1M

Board with SPBLTE-1S

• Software Requirement

• USB driver for Android smartphones

• Android SDK Platform Tools(adb)

• ST-Link Utility to install ST-Link USB driver

• IDB007V1 BlueNRG-1 Flasher

• STSW-BNRGUI PC tool to upgrade BlueNRG-MS firmware

Page 25: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Flash the board and

install Android application25

• Once the package installed, Go to BlueNRG-

Mesh\Embedded\Projects\BlueNRG-

1\Applications\Lighting_Demo\Binary

• Drag-and-drop the BlueNRG1_Lighting_Demo.bin in

the mass storage named IDB007VX or BlueNRG-1

• First option: Once the package installed, Go to

BlueNRG-Mesh\Android\apk, Android apk file is

available

• Second option: go on the Play Store and search for

BlueNRG-Mesh. Install BlueNRG-Mesh Android app

• Make sure the Bluetooth and positioning features are

activated

Embedded Android

Page 26: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

User interface quick reference 26

RESET Button

PUSH1 Button

PUSH2 Button

LD2:

User LED

(Green)

USER

Button

(Blue)

DL3

LED

(Blue)

DL1

LED

(Yellow)

DL2

LED

(Red)RESET

Button

(Black)

STEVAL-IDB00XVX NUCLEO-L152RE

Page 27: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Android BlueNRG-Mesh application 27

Provisioning Group Subscription Individual Control

Progress bar Second panel

Page 28: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Create New GroupGroup Control

Android BlueNRG-Mesh application 28

Node Options

Third panel

Click on add

group

Page 29: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Warnings and Potential issues 29

• Connection lost panel => no available unconfigured

device or node part of the current network.

• MAC address in DF:FF:FF:FF:FF:FF => no unique ID in the BlueNRG chip

(one board possible by network)

• Resetting a device configuration: push and release the reset button, then

push “Button 1” for 5 seconds

• Resetting a smartphone network: in the Android filesystem root, delete the

file “Configuration”

Page 30: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Additional resources

• Bluetooth Mesh deep dive:

• Bluetooth Mesh specification

• Bluetooth Mesh overview

• Bluetooth Mesh FAQ

• Software resources available this week (firmware, Android): http://www.st.com/en/embedded-software/stsw-bnrg-mesh.html

• BlueNRG-Mesh Android application available on Play Store: https://play.google.com/store/apps/details?id=com.st.bluenrgmesh&hl=en

30

Page 31: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Come see it live at Embedded World 2018 31

• Event from 27/02/2018 to 01/03/2018 in Nuremberg, Germany

• BlueNRG-Mesh booth: Demonstration pod 33, Hall 4A 138&238

• CES demo video

Page 32: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Questions?

Page 33: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Annexes

Page 34: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

The mesh messaging modelPublish and Subscribe

34

Example: client device (switch) can post

messages and server device (light bulb) can be

notified about new command arrival.

Page 35: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

BLE Mesh system architecture 35

Network Management, Authentication of network messages,

Relay & forwarding of messages.

Addressing: Unicast, Broadcast, Grouping

Segmentation & re-assembly

Format of Application data, Management of right application context

User scenarios / Application. e.g Lighting, Sensor

Configuration of Mesh, Management

Encryption, decryption and authentication of Application data

Advertising bearer, GATT bearer

Page 36: ARtM BlueNRG-Mesh presentation - EMCU...BlueNRG-Mesh 1.0 NOW 2018 • Friendship/Low Power protocol • Lighting model • Sensor model • Generic model BlueNRG-Mesh 1.1 • Provisioning

Mesh Technologies Comparison 37

Technology Advantage Disadvantage Comments

BLE (Mesh) Available in phones

No single point of failure

High security

Low-Power

BTH SIG standard

o Low bandwidth Has key the advantages over

other technologies for smart-

home

Widely adopted technology (iOS,

Android, Windows, ..)

ZigBee Stable and Mature o Not available in phones

o Need a Gateway to phone

o Gateway may be single point of failure

o 250kbps data-rate

Disadvantaged for home-automation

6LoWPAN IEEE standard o Not available in phones

o Needs a gateway to phone

o No standard for all communication

layers

Wi-SUN is aligned more for Smart-

City applications

Wi-Fi Available in Phone

High Bandwidth

Web connectivity

Some Mesh examples

available

o High power requirement limits usability

for home-automation

o Expensive

Widely adopted technology

ANT+ Available in limited Phones

Few mesh demo

o Only limited phones support it