sigfox makers tour - torino

122
Sigfox Makers Tour #16 Torino

Upload: nicolas-lesconnec

Post on 15-Apr-2017

842 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Sigfox Makers Tour - Torino

Sigfox Makers Tour#16 Torino

Page 2: Sigfox Makers Tour - Torino

Introduction

Page 3: Sigfox Makers Tour - Torino

Schedule

Intro

Slides - All about Sigfox

Demos .. hopefully

Workshop - Your turn to work

Enjoy !

Page 4: Sigfox Makers Tour - Torino

About usAlessandro Cremonini

Sales Sigfox ItaliaGianfranco Sita

Nettrotter (Sigfox Operator Italia)Nicolas Lesconnec

Dev Relations Sigfox

Page 5: Sigfox Makers Tour - Torino

Sigfox

Page 6: Sigfox Makers Tour - Torino

Sigfox basics

Page 7: Sigfox Makers Tour - Torino

About Sigfox

Sigfox is not selling chips

Sigfox is not building connected solutions

Sigfox has invented a radio protocol

Sigfox operates a global network

Page 8: Sigfox Makers Tour - Torino

Why Sigfox ?

Need for a solution dedicated to the IoT, not an existing one tweaked for it.

We only serve the IoT, that’s why we’re doing it efficiently

Page 9: Sigfox Makers Tour - Torino
Page 10: Sigfox Makers Tour - Torino

New possibilities

Existing solutions: Cheaper connection & extended battery life

Enables totally new IoT applications

Backup connectivity for higher bandwidth devices

Page 11: Sigfox Makers Tour - Torino

How to communicate

Detect something to send (that’s the hard part)

Power on the communication module

Send

Message is picked up by the network

Data is received on your server

Page 12: Sigfox Makers Tour - Torino

How hard ?

Send an AT command

You receive an HTTP Request on your application server

Page 13: Sigfox Makers Tour - Torino

Core concepts

Page 14: Sigfox Makers Tour - Torino

Out of the box

No connection

No configuration

No pairing

No signaling

Page 15: Sigfox Makers Tour - Torino

Energy efficiency

The Sigfox protocol has been designed to maximise energy efficiency

Tx: <50 mA during a few seconds (25mW ; 14dB)

Key factor: idle consumption (unconnected 99.x% of the time)

Idle consumption: a few µA

Page 16: Sigfox Makers Tour - Torino

Very Long Range

Best case scenario

+100km between transmitter & receiver (base station)

Real life

A few kms (city) to tens of kms (countryside), depending on the topography

Page 17: Sigfox Makers Tour - Torino

Outdoor & Indoor

Good indoor propagation properties

Of course, you need to consider signal attenuation (~20dB)

Page 18: Sigfox Makers Tour - Torino

Two-way communication

Devices can receive updates sent from your application server

Each communication is instigated by the device

Page 19: Sigfox Makers Tour - Torino

Small messages

Useful payload: up to 12 bytes

Up to 140 times each day

100 bits/s

Page 20: Sigfox Makers Tour - Torino

Payload examples

GPS coordinates (lat x lng) : 6 bytes

Temperature: 2 bytes

State reporting : 1 byte

Heartbeat, update request : 0 byte

And … who needs full bytes when 5 bits are enough ?

Page 21: Sigfox Makers Tour - Torino

Payload examples

A (int): 17568 —> 0100010010100000B (0-32): 17 —> 010001C (state): 3 —> 10Frame: 01000100 10100000 01000110Frame: 0x44 0xA0 0x46AT$SF=44A046

Page 22: Sigfox Makers Tour - Torino

More !

816b1954 | 10000001 01101011 00011001 01010100

10000001 01101011 00011001 01010100 Active mode (Temp)

10000001 01101011 00011001 01010100 Temp. MSB & LSB

10000001 01101011 00011001 01010100 Humidity x2

Temp : 0110011001 = 409 . (409-200) / 8 = 26.125°C

Humidity: 01010100 = 84. 84/2 = 42%

Page 23: Sigfox Makers Tour - Torino

Low cost of communication

Small subscription fees

Short SW development cycle

Low cost HW components

Page 24: Sigfox Makers Tour - Torino

Security

Page 25: Sigfox Makers Tour - Torino

Security

Each message is signed with a key unique to the device

Messages can be encrypted or scrambled

No keys exchanged over the network, no handshake

Security is an ever ongoing effort

Page 26: Sigfox Makers Tour - Torino

Message signature

With each message, a hash is calculated & sent; using:

Device ID

Secret key, unique to the device. Never transmitted OTA

Payload

Internal increment

Page 27: Sigfox Makers Tour - Torino

Radio properties

Great tolerance to interferors

Jamming resistant

Interception is hard: UNB & frequency diversity

Page 28: Sigfox Makers Tour - Torino

Jammers

Page 29: Sigfox Makers Tour - Torino

Interferors

Page 30: Sigfox Makers Tour - Torino

RadioUltra Narrow Band

Page 31: Sigfox Makers Tour - Torino

Sigfox use

The network currently monitors a 192KHz part of the spectrum

Each message is ~100Hz wide

Page 32: Sigfox Makers Tour - Torino

UNB Analogy

Page 33: Sigfox Makers Tour - Torino

Undesired signals (aka real life)

Page 34: Sigfox Makers Tour - Torino

Sigfox messages

Page 35: Sigfox Makers Tour - Torino

Sigfox messages

Page 36: Sigfox Makers Tour - Torino

Regulations

Page 37: Sigfox Makers Tour - Torino

Regulations

Sigfox is operating on unlicensed Sub-GHz frequency bands all over the world

We just have to pick the right central frequency

Easy, right ?

Page 38: Sigfox Makers Tour - Torino
Page 39: Sigfox Makers Tour - Torino

ETSI Duty cycle

Page 40: Sigfox Makers Tour - Torino

Unlicensed bands

Compliant with regulations

ETSI 300-220

FCC Part 15

ANATEL 506

AS/NZS 4268

Page 41: Sigfox Makers Tour - Torino

Different bands

Regional regulations affect

Central frequency

Power Output / Data Rate

Spectrum access

Handled by the Sigfox stack

Same hardware can be used, with software switches

Page 42: Sigfox Makers Tour - Torino

Coverage

Page 43: Sigfox Makers Tour - Torino

Global network

Sigfox is offering a global network, not a solution to build private networks

Roaming is included is the standard service

Devices will work the same all over the network

Page 44: Sigfox Makers Tour - Torino

Current coverage

25 countries

~1.5 million km²

~360 million people

Page 45: Sigfox Makers Tour - Torino

Current coverage

Nationwide coverage

! France

" Czech Republic

# Ireland

$ Luxembourg

% Netherlands

& Portugal

' Spain

Page 46: Sigfox Makers Tour - Torino

Countries under rollout

( Brazil

) Colombia

* Mexico

+ United States

,Australia

- New Zealand

. Oman

/ Singapore

0 Taiwan

1 Belgium

2 Denmark

3 Finland

4 Germany

5 Italy

6 United Kingdom

Page 47: Sigfox Makers Tour - Torino
Page 48: Sigfox Makers Tour - Torino
Page 49: Sigfox Makers Tour - Torino

Demo #1

basic hello world message

Page 50: Sigfox Makers Tour - Torino

Current use cases

Examples of solutions already in production

Page 51: Sigfox Makers Tour - Torino

Internet of Things ?

Consumer gadgets

Boring & usefulIoT

Page 52: Sigfox Makers Tour - Torino

Perfect Sigfox use cases

Independent solutions

no user, no power socket, no local network

Shy devices

Doesn’t speak much, but only useful data

Page 53: Sigfox Makers Tour - Torino

Sigfox foundation

Page 54: Sigfox Makers Tour - Torino

Antarctica

Tracking scientists & assets

Long reach

Ease of use

Robust trackers

Page 55: Sigfox Makers Tour - Torino

Wildlife

Rhinos tracking & monitoring

Anti poaching operation

Implant & play

Long reach

Page 56: Sigfox Makers Tour - Torino

Industry

Page 57: Sigfox Makers Tour - Torino

Predictive maintenance

Optimize & anticipate maintenance

Alerts when customer needs support

Lower operation costs

Increased safety and/or customer satisfaction

Page 58: Sigfox Makers Tour - Torino

Connected boilers

Remote monitoring of boilers

Improve maintenance cycles

Page 59: Sigfox Makers Tour - Torino

Remote sites monitoring

Intrusion detection

Fault detection

Works in remote areas

Plug & play

Low cost

Page 60: Sigfox Makers Tour - Torino

Health & Assisted living

Page 61: Sigfox Makers Tour - Torino

Assisted Living Box

Elderly people benefiting from home services

Monitor carers come & go

NFC badge reader

ROI : 6 months

Increased service quality

Page 62: Sigfox Makers Tour - Torino

Defibrillators

Guarantee that the equipment is in working order

Reduced costs (easy installation)

Notifications

Central supervision

Page 63: Sigfox Makers Tour - Torino

Public sector

Page 64: Sigfox Makers Tour - Torino

Smart parking

Parking spots monitoring

Real time guidance for users

Traffic optimization

Local enforcement optimization

Page 65: Sigfox Makers Tour - Torino

Waste management

Optimize costs of collection

Plug & play

Years of battery life

Page 66: Sigfox Makers Tour - Torino

Connected dumpster

Improve collecting of recycled textiles

Filling level monitoring

Route optimisation

New usage data

Page 67: Sigfox Makers Tour - Torino

Fire hydrants

Detect faulty hydrants

Fraud detection

Increased security

Long battery life

Easy integration

Page 68: Sigfox Makers Tour - Torino

Air quality

Closer monitoring of air quality

Local precision

Better monitoring

Data produced for pollution prediction

Page 69: Sigfox Makers Tour - Torino

Street lighting

Save Energy & Costs

Improved maintenance

Light intensity management

Page 70: Sigfox Makers Tour - Torino

Water level monitoring

Numerous applications

Ease of use

Low cost

Page 71: Sigfox Makers Tour - Torino

Utilities

Page 72: Sigfox Makers Tour - Torino

Metering

Different solutions

Smart or add-on to existing meters

Low cost of installation & operation

Page 73: Sigfox Makers Tour - Torino

Solar panels monitoring

Remotely monitor solar panel output

Fault detection

Easy to install

Simple, robust

Page 74: Sigfox Makers Tour - Torino

Home & lifestyle

Page 75: Sigfox Makers Tour - Torino

Sound detector

« Shazam » of home security

Out of the box connectivity

Low TCO

Easy pan-european deployment

Page 76: Sigfox Makers Tour - Torino

Home Alarm System

Backup connectivity for GSM solution

Jamming resistant

Continuity of service

Self deployment

High capacity network

Page 77: Sigfox Makers Tour - Torino

Smoke detector

Get alerted even when out

Easy install

Fault detection

Page 78: Sigfox Makers Tour - Torino

Water quality monitoring

Swimming pool water quality monitor

Long reach (> WiFi)

No install

Page 79: Sigfox Makers Tour - Torino

GPS Trackers

Low cost, high precision trackers

No setup

No companion device required

Long reach

Cross borders

Page 80: Sigfox Makers Tour - Torino

Agriculture

Page 81: Sigfox Makers Tour - Torino

Crop management

Smart irrigation

Environnement sensors

Ease of use

Yield optimisation

24/7 data

Page 82: Sigfox Makers Tour - Torino

Connected Beehives

Automate & optimize honey production

Scales

Remote monitoring

Long battery life

Page 83: Sigfox Makers Tour - Torino

Weather monitoring

Accurate & personal weather data

Affordable

Easy installation

Long battery life

Page 84: Sigfox Makers Tour - Torino

Retail & other services

Page 85: Sigfox Makers Tour - Torino

Button

Simplest interface possible

Press a button ; trigger a service

No installation

Cloud-based service

Page 86: Sigfox Makers Tour - Torino

Customer Satisfaction

Effortless customer feedback

No wiring

No pairing

Long battery life

Page 87: Sigfox Makers Tour - Torino

Fleet management

Page 88: Sigfox Makers Tour - Torino

Stolen car recovery

Locate & recover stolen assets

Small form factor

Long battery life

Combined with UHF

Page 89: Sigfox Makers Tour - Torino

Hardware solutions

Page 90: Sigfox Makers Tour - Torino

Hardware

SIGFOX is not a hardware vendor

Ecosystem of established partners : Atim, Atmel, OnSemi, SiLabs, TI, …

More to come soon

Page 91: Sigfox Makers Tour - Torino

Solutions

Modules

Easy to get started

Atim, Telit, TD

Chipsets

Cheaper

Atmel, OnSemi

Transceivers

SiLabs, Texas

Instrument

Quite expensive

for industrialisation

Skills needed

Ref.Designs

Cheapest solution

Skills++ needed

Certification

program

Page 92: Sigfox Makers Tour - Torino

Antenna

Not optional :)

Best way to ruin a great device is to mess the antenna integration

Balance between design & performance

We’re here to help you get in touch with specialists if needed

Page 93: Sigfox Makers Tour - Torino

Prototyping

Arduino & Raspberry Pi kits available from various websites

Check out http://partners.sigfox.com for the full details

Page 94: Sigfox Makers Tour - Torino

Cloud

Page 95: Sigfox Makers Tour - Torino

Get your data

View messages : Sigfox web platform

Get messages : REST API (pull)

Receive new messages : HTTP Callbacks (push)

Page 96: Sigfox Makers Tour - Torino

Callbacks

Each message received from your devices will be forwarded to your application server

Customisable headers & body

You can set more than one callback

Page 97: Sigfox Makers Tour - Torino

3rd party platforms

You can easily push your data to a 3rd party platform :

AWS, Azure, Telefonica, thethings.iO, IBM, Samsung…

Page 98: Sigfox Makers Tour - Torino

Downlink messages

A downlink message can be

Semi automatic : sent directly by the network

Customised : sent by your own application server

Page 99: Sigfox Makers Tour - Torino

Semi automatic callback

Simply set up the message to send, it can be:

an hardcoded frame

pre defined variable (timestamp, rssi)

Page 100: Sigfox Makers Tour - Torino

Downlink callbacks

Same mechanism as for the uplink callback, set an URL

Reply with the 8-byte downlink frame

Respect this JSON format :{

'{{deviceId}}': {

'downlinkData':{{data}}

}

}

Page 101: Sigfox Makers Tour - Torino

Workshop session

Page 102: Sigfox Makers Tour - Torino

Contribute back

Page 103: Sigfox Makers Tour - Torino

Contribute

Don’t forget to publish your experimentsCode Samples, HW design, fails … will be useful to other peopleWe all start by copy/pasting ;)

Your own website, github, hackster.io, instructables … your call!

Page 104: Sigfox Makers Tour - Torino

Useful Resources

Workshop slides http://bit.ly/SMTSmartEverything

Questions ? http://ask.sigfox.com

Github http://github.com/sigfox/makers-tour-resources

Github http://github.com/nicolsc

Page 105: Sigfox Makers Tour - Torino

Register

http://backend.sigfox.com/activate

Provider: Arrow // SmartEverything

Country : Italy

Device ID & PAC: sticker on the board

Page 106: Sigfox Makers Tour - Torino

HELLO WORLD

Page 107: Sigfox Makers Tour - Torino

SmartEverything test

Open the Arduino IDE

Select the board

Board type : Smart Everything Fox (USB)

Try one of the File > Examples > SmartEverything samples

Sigfox : File>Examples>SmartEverything>Sigfox>DataModeEu

Page 108: Sigfox Makers Tour - Torino

Hello World Sketch

#include <Arduino.h> #include <Wire.h>

void setup() { SerialUSB.begin(115200); SigFox.begin(19200); delay(500);

Sigfox.print("+++"); }

void loop() {

char output;

SigFox.print("AT$SF=CAFECAFE");

SigFox.print("\r"); }

Page 109: Sigfox Makers Tour - Torino

Message received ?

http://backend.sigfox.com

Navigate to the devices menu in the top bar

Click on the ID of your device

Enter the messages menu from the left navigation column

Page 110: Sigfox Makers Tour - Torino

First callback

Page 111: Sigfox Makers Tour - Torino

Callback setup

Device Type menu

Click on your device type name

Enter the Callbacks menu

Select new default callback

Page 112: Sigfox Makers Tour - Torino

Callback setup

TYPE : DATA UPLINK

Choose a CHANNEL : URL (EMAIL for a quick test)

Url pattern: URL of your own server

Use HTTP method: GET/POST/PUT

Page 113: Sigfox Makers Tour - Torino

Callback status

In the Devices > Messages panel, you have a indicator of the callback status (an arrow)

Black : in progress

Green : Callback OK

Red : Callback KO (at least one of the callbacks failed)

Click the arrow to display details.

Page 114: Sigfox Makers Tour - Torino

Downlink

Page 115: Sigfox Makers Tour - Torino

How does it work ?

Send a message, with a downlink flag

Once message is sent, the module gets back to sleep

After 20s, it will wake up automatically, in Rx mode

It will wait 20s for a downlink message

Afterwards it will get back to sleep

Page 116: Sigfox Makers Tour - Torino

Downlink setup

To setup an automatic callback :

Device Type > Info > Edit

In the Downlink data settings, set the following :

Downlink Mode : DIRECT

Set the following value : 123400000BADCAFE

Page 117: Sigfox Makers Tour - Torino

How to request a downlink

Same AT command, with additional parametersAT$SF=[hex byte]*, 1

Page 118: Sigfox Makers Tour - Torino

Handle the response

When entering Rx mode, the module will display+RX BEGIN

Received frame (if any) will be displayed as:+RX= [byte] [byte] [byte] [byte] [byte] [byte] [byte] [byte]

End of Rx mode+RX END

Page 119: Sigfox Makers Tour - Torino

Downlink callback

In Device Type > Info > Edit

change Downlink mode to CALLBACK

Create a new default callback, with TYPE : DATA | BIDIR

Then set up your URL

Page 120: Sigfox Makers Tour - Torino

Sample input output

AT$SF=55 50 4C 49 4E 4B, 2, 1

OK

+RX BEGIN

+RX=44 4F 57 4E 4C 49 4E 4B

+RX END

Page 121: Sigfox Makers Tour - Torino

Sample code

Arduino

https://github.com/sigfox/makers-tour-resources/tree/master/SmartEverything/downlink

Server side

https://github.com/nicolsc/sigfox-downlink

PR welcome in different languages

Page 122: Sigfox Makers Tour - Torino

Keep in touch

[email protected]

twitter: @nlesconnec