Wireless Sensor Networks BLUETOOTH LOW ENERGY. Flavia Martelli

Similar documents
PM0257. BlueNRG-1, BlueNRG-2 BLE stack v2.x programming guidelines. Programming manual. Introduction

Bluetooth low energy technology Bluegiga Technologies

Energy Efficient Mobile Compu4ng Building low power sensing devices with Bluetooth low energy. Simo Veikkolainen Nokia May 2014

Bluetooth LE 4.0 and 4.1 (BLE)

Bluetooth Low Energy (Bluetooth Smart)

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

Multihop Data Transfer Service for Bluetooth Low Energy

Inside Bluetooth Low Energy

A Real-Time BLE enabled ECG System for Remote Monitoring

Computer Networks II Advanced Features (T )

Performance Evaluation of Bluetooth Low Energy Communication

Bluetooth Low Energy Protocol Stack

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

Introduction to Bluetooth Low Energy

Internet of Things Bill Siever. New Applications. Needs. Wearables. Embedded Smarts. Simple to Setup. Networking w/ Long Battery Life (Low Power)

When is Bluetooth not Bluetooth?

Bluetooth: Short-range Wireless Communication

Bluetooth Demystified

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

Bluetooth 5 Presenter Tomas O Raghallaigh )

BT121 Bluetooth Smart Ready Module. May 2015

CS263: Wireless Communications and Sensor Networks

Texas Instruments Tech Day Bluetooth Low Energy CC2540. ANT+ CC2570 and CC2571

Implementing A Bluetooth Stack on UEFI

Wireless Sensor Networks

Guide to Wireless Communications, 3 rd Edition. Objectives

Bluetooth. Bluetooth Radio

BLED112 Bluetooth Smart USB Dongle 9/16/2013 1

CIS 700/002 : Special Topics : Bluetooth: With Low Energy comes Low Security

CS4/MSc Computer Networking. Lecture 13: Personal Area Networks Bluetooth

WIRELESS TECHNOLOGIES

Bluetooth Low Energy Portfolio

Detecting Parkinson Tremor Using Bluetooth

BT121 Bluetooth Smart Ready Module. July 2016

DASH7 ALLIANCE PROTOCOL - WHERE RFID MEETS WSN. public

BT2540 Bluetooth 4.0 BLE (CC2540) Module Users Manual

Beetle: Many-to-many communication in Bluetooth LE. Amit Levy, Laurynas Riliskis, Philip Levis, David Mazières, and Keith Winstein

SMART Technologies. Introducing bluetooth low energy and ibeacon

Click to edit Master title style Buzzing Smart Devices

KW41Z IEEE and BLE Coexistence Performance

LMU Bluetooth Chipset Application Note

On the Potential of Bluetooth Low Energy Technology for Vehicular Applications

Core System Package [Low Energy

WPAN/WBANs: ZigBee. Dmitri A. Moltchanov kurssit/elt-53306/

Amarjeet Singh. February 7, 2012

Introduction to Bluetooth Wireless Technology

Sensor-to-cloud connectivity using Sub-1 GHz and

Bluetooth Low Energy CC2540/41 Mini Development Kit User s Guide

PAN1740 Design Guide

ENRNG3076 : Oral presentation BEng Computer and Communications Engineering

Bluetooth SIG Liaison Report May 2009

By FaaDoOEngineers.com

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

Local Area Networks NETW 901

12/2/09. Mobile and Ubiquitous Computing. Bluetooth Networking" George Roussos! Bluetooth Overview"

TI SimpleLink dual-band CC1350 wireless MCU

Use of ISP1880 Accelero-Magnetometer, Temperature and Barometer Sensor

By Ambuj Varshney & Akshat Logar

1. IEEE and ZigBee working model.

BLE as Active RFID. Tutorial presented by Jeffrey Dungen at IEEE RFID 2017

Overview. Applications. Features. Pin assignment

Inside Bluetooth. Host. Bluetooth. Module. Application RFCOMM SDP. Transport Interface. Transport Bus. Host Controller Interface

BLUE bean. Data sheet

Embedded Systems. 8. Communication

Bluetooth: Technology and Applications. Yang Bo, CTTL SYS, CAICT

Ah-Hoc, PAN, WSN,... Introduction Bluetooth ( ) Zigbee ( ) Renato Lo Cigno

Bluetooth Smart: The Good, The Bad, The Ugly... and The Fix

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

Master Projekt 2. Autor: Heiner Perrey. Performance Analysis of Bluetooth Low Energy with Merkle s Puzzle. Date: May 20, 2012

ENVIRONMENTAL SENSING PROFILE

MOBILE COMPUTING. Bluetooth 9/20/15. CSE 40814/60814 Fall Basic idea

IoT device in Minutes with ST s BlueNRG

RF Transceivers and Modules

NDB-C0706A Dual Mode Bluetooth Module

C300RU. Version Mbps 11n Wireless USB adapter. Technical Specification Sheet

e-pg Pathshala Quadrant 1 e-text

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

[A SHORT REPORT ON BLUETOOTH TECHNOLOGY]

Message acknowledgement and an optional beacon. Channel Access is via Carrier Sense Multiple Access with

Wireless Body Area Networks. WiserBAN Smart miniature low-power wireless microsystem for Body Area Networks.

Eclipse IOT day April 3016 LoRa Overview. Wyres SAS 2016

Outline. TWR Module. Different Wireless Protocols. Section 7. Wireless Communication. Wireless Communication with

Bluetooth. Basic idea

Beetle: Operating System Support for the Internet of Things

Multi-link support for up to four simultaneous connections in any combination of roles

Davide Quaglia Assistant CS depart University of Verona, Italy

March 21, BT22 Datasheet. Amp ed RF Technology, Co., Ltd.

nrf Connect Bluetooth low energy

APAC Application Support Manager Magic Lin

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

Bluetooth Core Specification v5.1

Page 1 of 6. nblue BR-XB-LE4.0-D2A Summary Datasheet Copyright BlueRadios, Inc.

MOBILE COMPUTING 4/3/18. Bluetooth. Bluetooth. CSE 40814/60814 Spring 2018

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

Introduction Enjoy business-class, high-speed wireless and Bluetooth connectivity on your desktop with the Intel ac PCIe x1 Card.

BLUEGIGA BLUETOOTH SMART SOFTWARE

BT-22 Product Specification

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

DASH7 Alliance Protocol

ALPW-BLEM103 Datasheet 1.0 Bluetooth Low Energy HCI

Transcription:

Wireless Sensor Networks BLUETOOTH LOW ENERGY Flavia Martelli flavia.martelli@unibo.it

Outline Introduction Applications Architecture Topology Controller specifications: Physical Layer Link Layer Host specifications: upper layers Products on the market 2

Introduction (1/2) Bluetooth: Wireless technology for short-range communication Replacement to cables connecting portable and/or fixed electronic devices Key features: worldwide operation robustness low power consumption low cost interoperability 3

Introduction (2/2) Bluetooth Core Specification v4.0 (adopted 30 June 2010) Two main configurations 1. Basic Rate (BR) Optional Enhanced Data Rate (EDR) and Alternate MAC and PHY (AMP) extensions 2. Low Energy (LE) Lower power consumption devices operated with coin cell batteries Lower complexity Lower cost Lower data rates 4

Applications (1/7) Automotive 5

Applications (2/7) Sports and fitness 6

Applications (3/7) Healthcare 7

Applications (4/7) Entertainment 8

Applications (5/7) Home automation 9

Applications (6/7) Security and proximity 10

Applications (7/7) Advertising YOU ARE HERE 11

Architecture Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 12

Implementation modes Single-mode (stand-alone) implementation: targeted at low power consumption and small size devices Dual-mode implementation: extension to a classic Bluetooth radio, targeted at mobile phones and PCs LE single-mode device Dual-mode device LE single-mode device 13

Network topology Piconet: star topology Slaves Master Broadcast group Scanners Advertiser 14

Controller specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 15

Physical Layer (1/2) Modulation: Gaussian Frequency Shift Keying (GFSK) Bandwidth-bit period product: BT = 0.5 Modulation index: 0.45 < h < 0.55 Bit-rate: R b = 1Mbit/s Transmission power: -20 dbm < P tx < + 10 dbm Receiver sensitivity: -70 dbm [BER < 0.1%] 16

Physical Layer (2/2) Band: ISM @ 2.4 GHz 40 channels of 2 MHz f = 2402 + i*2 MHz, i=0,,39 17

PHY performance (1/2) BLUETOOTH LOW ENERGY 18

PHY performance (2/2) Normalized power spectrum [db] 1.5 Rb 802.15.4 3 MHz Bluetooth LE 1.5 MHz 19

Controller specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 20

Link Layer: state machine Scanner Listen to Advertising packets Advertiser Tx Advertising packets Initiator Listen to Advertising packets and respond to initiate a connection Slave/Master Tx/Rx data packets 21

Link Layer: channels RF Channels are allocated into two types: 1. Advertising physical channel (i = 0, 12, 39): discovering devices, initiating a connection, broadcasting data 2. Data physical channel (the other 37 RF channels): communication between connected devices 2480 2478 2476 2474 2472 2470 2468 2466 2464 2462 2460 2458 2456 2454 2452 2450 2448 2446 2444 2442 2440 2438 2436 2434 2432 2430 2428 2426 2424 2422 2420 2418 2416 2414 2412 2410 2408 2406 2404 2402 MHz 39 38 37 Adv 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Data 22

Link Layer: events Advertising events t Connection events t 23

Passive scanning Scanner Advertiser Found device Advertisement Advertisement Advertisement Channel (x) Channel (y) Channel (z) Advertisement Advertisement Advertisement 24

Active scanning Scanner Advertiser Advertisement Scan Request Found device (name, services) Scan Response (name, services) 25

Broadcasting data Scanner Advertiser Advertisement (data) Found device (data) Advertisement (data) Advertisement (data) Advertisement (data) Advertisement (data) Advertisement (data) 26

Initiating a connection Initiator Advertiser Advertisement Connect Request Communication event interval Master "poll" Data Ack "null" Slave Channel (x) Channel (y) 27

Link Layer: PDU Preamble Access Address 1 byte 4 bytes 2 bytes PDU Header PDU Payload CRC variable (0 37 bytes) 3 bytes 01010101 or 10101010 Frequency synchronization Symbol timing estimation Automatic gain control Error checking Identifies a LL connection between two devices Fixed sequence for advertising PDUs 28

Link Layer: advertising PDU Preamble Access Address 1 byte 4 bytes 2 bytes PDU Header PDU Payload CRC variable (0 37 bytes) 3 bytes PDU type Res. TxAdd RxAdd Length Res. 4 bits 2 bits 1 bit 1 bit 6 bits 2 bits PDU type Packet name PDU type Packet name 0000 ADV_IND 0011 SCAN_REQ 0001 ADV_DIRECT_IND 0100 SCAN_RSP 0010 ADV_NONCONN_IND 0101 CONNECT_REQ 0110 ADV_SCAN_IND other Reserved 29

Link Layer: data PDU Preamble Access Address 1 byte 4 bytes 2 bytes PDU Header PDU Payload CRC variable (0 37 bytes) 3 bytes LLID NESN SN MD Res. Length Res. 2 bits 1 bit 1 bit 1 bit 3 bits 5 bits 3 bit LLID Packet type 00 Reserved Logical Link Identifier: data or control PDU Next expected sequence number and sequence number: Acknowledgment Flow control 01 LL Data PDU: continuation fragment of an L2CAP message or empty PDU 10 LL Data PDU: start of an L2CAP message 11 LL Control PDU More Data bit 30

HCI specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 31

Host Controller Interface The HCI provides a uniform interface method of accessing Bluetooth Controller s capabilities (command PHY and LL, access hardware status, control registers) Optional implementation Possibility of realizing separate Host and Controller interoperability of different subsystems 32

Host specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 33

L2CAP (1/2) L2CAP provides connection-oriented and connection-less data services to upper layer protocols Protocol multiplexing capability (not in case of LE only Controller) Segmentation and reassembly Per-channel flow control and retransmission 34

L2CAP (2/2) PDU format Length CID Payload 2 bytes 2 bytes Variable (as specified in Length ) 0x0004 = Attribute Protocol 0x0005 = LE L2CAP Signaling channel 0x0006 = Security Manager Protocol 35

Host specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 36

Attribute Protocol (1/2) Attribute is data Value with a meaning (UUID), permissions (read/write), that is addressable by a handle Attributes expose data on a remote device ATT is a peer-to-peer protocol between a server and a client Server: contains attributes, receives requests, executes, responds, can indicate values Client: sends requests, commands, waits for responses, can confirm indications 37

Attribute Protocol (2/2) Operations on attributes Push: the server sends the data to the client when it changes or according to configuration Pull: a client request the data from the server when it needs it Set: configuring a server (actuator) Broadcast: the server periodically broadcast the data (using LL advertising PDUs) Get: the client requests for attributes handles and UUID to discover the services that the server offers 38

Host specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 39

Generic Attribute Profile The GATT profile is designed to be used by an application or another profile It defines how to use the ATT Protocol to discover, read, write and obtain indications of server attributes, as well as configuring broadcast of attributes Attributes are grouped in services service = collection of data and associated behaviors characteristic = value used in a service along with properties and descriptors (how it is accessed, displayed and represented) 40

Host specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 41

Generic Access Profile A bluetooth profile defines the required functions and features of each layer in the Bluetooth system GAP: base profile implemented by all devices Basic requirements of a device Description of behaviours and methods for device discovery, connection establishment, security, authentication, association models, service discovery Four LE device roles: Broadcaster Observer Peripheral Central 42

Host specification Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 43

Device profiles Profiles can be organized in a hierarchy Application Profile #1 Generic Profile #1 GAP Application profile: top level profile that describes application interoperability 44

Security specifications Generic Access Profile (GAP) PUID Remote Control Proximity Heart Rate Generic Attribute Profile (GATT) Attribute Protocol (ATT) Security Manager Protocol (SMP) Logical Link Control and Adaptation Protocol (L2CAP) Host Controller Interface (HCI) Link Layer (LL) Physical Layer (PHY) 45

Security (1/4) Bluetooth Low Energy provides Eavesdropping protection Man In The Middle protection Privacy of devices Security functions are split between host and controller Controller LL: encryption and authentication Host SMP: security protocol 46

Security (2/4) Encryption and authentication AES128 CCM cryptography Both hardware and software solutions A Message Integrity Check field is included in every encrypted PDU at the end of the payload Bit stream process: 47

Security (3/4) SMP Defines how to setup a secure link Key management and exchange Master Slave Non secure LL connection established SMP_PAIRING_REQUEST SMP_PAIRING_RESPONSE Pairing over SMP Phase 1 Phase 2 Establishment of encrypted connection with key generated in Phase 2 SMP_SECURITY_INFORMATION SMP_IDENTITY_INFORMATION Phase 3 (optional) 48

Security (4/4) Privacy Feature used to prevent device tracking Two types of address 1. Public: IEEE MAC address 2. Random: obtained through a hash function from the IRK (Identity Resolving Key) Random addresses may be resolved only knowing the IRK Random addresses may be changed frequently in time 49

Products on the market (1/7) NORDIC nrf8001 Integrates both Controller and Host Serial interface to support external application microcontrollers Designed for Peripheral role devices Temperature sensor 50

Products on the market (2/7) Texas Instrument CC2540 Integrates Controller, Host and Application Peripherals to interface with analog and digital sensors Single mode device Mini development kit includes: CC 2540 Keyfob (LE slave), with an accelerometer sensor CC2540 USB Dongle (LE master) 99 $ 51

Products on the market (3/7) BLUEGIGA BLE 112 Low Energy Module Integrates Controller, Host and Application space for customer applications (no external processor needed) Hardware interfaces to connect sensors and/or simple user interfaces Single mode device Designed for master and slave roles Battery monitor and temperature sensor 52

Products on the market (4/7) BLUEGIGA BLED 112 Low Energy USB Dongle Integrates Controller, Host and Application Single mode USB device enabling LE connectivity for PCs and other devices having a USB port BLE 112 Starter Kit includes: 2 BLE112 Modules 2 BLED112 USB Dongles 440 $ 53

Products on the market (5/7) Device NORDIC nrf8001 Tx power [dbm] min max Rx sensitivity [dbm] - 18 0-87 TI CC2540-20 + 4-93 BLUEGIGA BLE 112 / BLED 112-23 + 4-93 Current consumption Power supply [V] Tx (@ 0 dbm) 13 ma 27 ma 27 ma Rx sleep min max 14.5 ma 19.6 ma 22.1 ma 0.5 µa 1.9 3.6 0.4 µa 2 3.6 0.4 µa 2 3.6 54

Products on the market (6/7) Dayton Industrial Co. Ltd Heart Rate Belt Based on nrf8001 chip Heart rate monitors are one of the first and most sought after use cases for Bluetooth low energy [Johnson Chan, Product Engineering Manager at Dayton] 55

Products on the market (7/7) Casio G-SHOCK Watch Automatic correct time update Incoming calls and messages notification 56

References Specification of the Bluetooth System, version 4.0, available at www.bluetooth.org, June 2010 www.bluetooth.com www.ti.com www.nordicsemi.com www.bluegiga.com http://world.casio.com/news/2011/watch_prototype/ 57

Flavia Martelli flavia.martelli@unibo.it +39 051 20 93549