An Introduction to CSRmesh - Qualcomm Developer Network · PDF fileAn Introduction to CSRmesh...

31
An Introduction to CSRmesh™

Transcript of An Introduction to CSRmesh - Qualcomm Developer Network · PDF fileAn Introduction to CSRmesh...

An Introduction to CSRmesh™

2

• CSRmeshTM creates a mesh network from existing CSR Bluetooth Smart & Smart Ready devices

• CSRmeshTM enables you to increase the scale of what you can control via your mobile device

• This presentation is an overview of the CSRmeshTM capabilities that are enabling innovative products for The Internet of Things.

OverviewCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

3

OverviewCSRmesh™

LightingHeating

Switches

Thermostats Sensors

OR

AndroidiPhone

PC

Allows you to control anything from anywhere in the world Access

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

CSR1010BLE

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

4

• Current solution too complex to setup?

• Need capability to use a smartphone without having to use an access point or router?

• Need whole-home or building coverage beyond radio range of normal WiFi or Bluetooth?

• Do you want something simpler?

• Current solution too expensive?

Is this solution right for you?CSRmesh™

XConfidential and Proprietary – Qualcomm Technologies International, Ltd.

5

Extends range of Bluetooth Smart by repeating messagesNo setup required, no hub or access point required for local networkMinimal propagation delay ~15ms node to node

Messages can be sent to an individual node or to a groupFlood mesh – no routing tablesNo single point of failure

Simple provisioningSmartphone application and QR codes

The network is secureMessages are encrypted to prevent eavesdroppingOptional authentication to prevent man-in-the-middle attacks

CSRmesh featuresCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

6

CSRmesh™

CSR1010 BLES1

CSR1010 BLEL4

CSR1010 BLEL3

CSR1010 BLEL2

CSR1010 BLEL1

CSR1010 BLEL5

CSR1010 BLEL8

CSR1010 BLEL7

CSR1010 BLEL6

Tx range S1

Tx range L1-L3

Tx range L4-L5

Tx range L6-L8

Smart phone Config. & Control

Broadcast

Re-Broadcast – hop1

Re-Broadcast – hop2

Re-Broadcast – hop3

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

7

Devices are organised into secure networksUp to 65535 devices per network

Networks are secured using a network keyCan be pre-generated or derived from a pass phrase

“39MargettStreet” => 0x56e62270cacd25283c01f2eee3d7e92b

All devices within network are trusted devicescan send messages to any other group of devices

CSRmesh OverviewCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

8

Device can be a part of multiple networksDifferent roles or security profiles

Networks can physically overlap

CSRmesh OverviewCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

9

Devices configured to process messages sentdirectly to their DeviceID

to the Broadcast GroupID 0x0000

to the GroupIDs that they have been configured to use

GroupIDs can therefore be considered to give semantics“LivingRoom” Light 100%

CSRmesh OverviewCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

10

Messages from single devicesEach device within the network is configured with a unique 16-bit DeviceID

Devices can be organised into groups

Messages are sent to “destinations”Either a DeviceID or a GroupID

CSRmesh OverviewCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

11

Devices are identified using a 128-bit UUID− no MAC Address from IEEE is required− self-management of allocated random UUIDs possible− 5,316,911,983,139,663,491,615,228,241,121,378,304 devices

Devices publish a 64-bit Authorisation Code− either as a QR-Code – linking to your app− or as a ShortText code− NDhd-pbbD-Hb9D-9frR-b68T

Use an app to provision service− can use cloud services to store information

ProvisioningCSRmesh™

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

12

Step 1a - InstallationCSRmesh™

Device has a “Barcode”

Scan barcode using App

App securely distributesa network key to device

App knows about switchSwitch is now part of Network

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

13

Step 1b - InstallationCSRmesh™

Device has a “Barcode”

Scan barcode using App

App securely distributesa network key to device

App knows about lightSwitch and light are now part of Network

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

14

Step 2 - ConfigurationCSRmesh™

App programs light to bein Group 1

Any number of lights or switches can be in a single

groupApp programs switch to bein Group 1

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

15

Step 3 - UseCSRmesh™

User presses switch to turn light onGroup 1: Power On

Messages are secure and are delivered

quickly and reliably, even in a large building.

User presses switch to turn light offGroup 1: Power Off

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

16

Reliable and Unreliable TransactionsCSRmesh™

• Unreliable transactions

• Reliable transactions

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

17

Example Dimmer SwitchCSRmesh™

• While rotating dimmer switch− only send

LIGHT_SET_LEVEL_NO_ACK message

• When dimmer switch stops moving− send LIGHT_SET_LEVEL message

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

18

Example RGB LightCSRmesh™

• RGB lights can be changed “over time”− send LIGHT_SET_RGB with color and “duration”

− LIGHT_STATE is sent to acknowledge this command− then LIGHT_STATE is sent once at commanded color

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

19

Network SecurityCSRmesh™

• Secure device association to the network and distribution of the network key− Diffie-Hellman-Merkle key exchange to prevent eavesdroppers− Authorisation codes are used to prevent man-in-the-middle attack

• Message encryption and authentication− Prevents against eavesdropping, replay and man-in-the-middle attacks− All messages also have Message Authentication Code

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

20

Technical DesignCSRmesh™

• Mesh Transport Layer− Authenticates messages against known Network Keys− Enables relaying of messages through mesh network

• Mesh Association Protocol− Network management

• Mesh Control Protocol− Simple opcode / parameters− Opcodes grouped by models− Exposes set of models supported

Mesh Transport Layer (MTL)

Mesh Association Protocol

Mesh Control Protocol

Light model

Power model

State model

...

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

21

ModelsCSRmesh™

• Config Server model− Device discovery within the model, ID assignments, models implemented etc.

• Group model− Controls grouping of the devices by physical location or semantic meaning (“Kitchen”, “Living

Room”, “Security control” etc.)• Power model− Power state of the device – on, off, standby

• Switch model− Controls individual switches and changes state of the other devices or groups

• Light model− Controls brightness and colour of the light

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

22

ModelsCSRmesh™

• Firmware model− Requests and controls the firmware update procedure

• Ping model− Pings specific device or group of devices in the network and allows estimation of the network

physical topology• Relay model− Remotely controls relay capabilities of the device (and bridging to the other technologies)

• Data model− Allows streaming of the data in custom format

• Battery model, Sensor model, Event model, Volume model, WallClock model etc.

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

23

CSRmesh 2.x

Provides path from locally-controlled mesh to global connectivity• Local control over Bluetooth

• Wi-Fi®-enabled gateway allows integration into “smart home” ecosystem

• Cloud connectivity grants the “smart home” control from anywhere

Connectivity is incremental• Gateway-only deployments are allowed:

“gateway” can be TV or STB

From local to global connectivity

GATEWAY

LOCAL

WIFI GATEWAY

CLOUD

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

Development resources

25

CSRmesh node application runs on CSR101x/CSR102x silicon• Reuses µEnergy SDK for development, debugging and deployment

• Provided as add-on package• Example turn-key applications as source code• Bearer, transport and protocol layers as libraries with model and core API exposed• Additional production-line and development tools (mesh sniffer, programming tool, QR code generator)

Development kit to enable product prototyping• 3× CSR101x development boards

• Two push buttons, switch, RGB LED, temperature sensor• CSR102x IoT kit is in development

• Programmer kit

Mesh nodeDevelopment package

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

26

Example controller applications for Android and iOS• Bearer, transport and protocol layers provided as library with model and core API exposed

• Source code for example turn-key controller and configuring application

Example gateway implementation• Based on OpenWRT package

• Uses CSR8510/CSR8811 for Bluetooth communication

• Bearer, transport and protocol layers provided as pre-compiled daemon

• Cloud and IP-based communication provided as source code

• Example application to illustrate API usage

Phone and gatewayDevelopment package

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

27

Example cloud implementation• Provided as Amazon AWS deployment

• Contains example management application and illustrates cloud-gateway communication approach

Phone applications illustrate communication across all levels – node, gateway and cloud

CloudDevelopment package

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

28

CSRmesh™Development Board

Part number: DB-CSR1010-10185-1A

• Demo vehicle for CSRmesh™ applications− RGB LED− 2 push buttons (dimmer or volume control)− Slide on-off switch− External I²C temperature sensor

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

29

CSRmesh™Development Kit

Part number: DK-CSR1010-10184-1A

• Comprises:• 3 CSRmeshTM development boards• Programmer and cables• Quick start guide

Confidential and Proprietary – Qualcomm Technologies International, Ltd.

30

IoT Development Kit Builds on CSR1010 version DK-CSR1025-10280-1A

• 3 x development boards included• Access to the latest SDK included• Programmer inclided• White & RGB LEDs• PIR sensor• Control relay• External Flash (option)• Printed F antenna• Single crystal• Activation code enables access to SDK• Intended for use with CSRmesh 2.1

PIRSensor

Relay(Voltage free contacts)

Printed-F antenna

White &RGB LEDs

CSRmesh and CSR102x are products of Qualcomm Technologies International, Ltd.

Thank you

All data and information contained in or disclosed by this document is confidential and proprietary information of Qualcomm Technologies, Inc. and/or its affiliated companies and all rights therein are expressly reserved. By accepting this material the recipient agrees that this material and the information contained therein is to be held in confidence and in trust and will not be used, copied, reproduced in whole or in part, nor its contents revealed in any manner to others without the express written permission of Qualcomm Technologies, Inc. Nothing in these materials is an offer to sell any of the components or devices referenced herein.

©2016 Qualcomm Technologies, Inc. and/or its affiliated companies. All Rights Reserved.

Qualcomm is a trademark of Qualcomm Incorporated, registered in the United States and other countries. Other products and brand names may be trademarks or registered trademarks of their respective owners.

References in this presentation to “Qualcomm” may mean Qualcomm Incorporated, Qualcomm Technologies, Inc., and/or other subsidiaries or business units within the Qualcomm corporate structure, as applicable. Qualcomm Incorporated includes Qualcomm’s licensing business, QTL, and the vast majority of its patent portfolio. Qualcomm Technologies, Inc., a wholly-owned subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of Qualcomm’s engineering, research and development functions, and substantially all of its product and services businesses, including its semiconductor business, QCT.

Follow us on:For more information, visit us at: www.qualcomm.com & www.qualcomm.com/blog