sigfox world expo - beginners workshop

46
Introduction to Sigfox Sigfox World IoT Expo September 2017

Upload: nicolas-lesconnec

Post on 21-Jan-2018

304 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Sigfox World Expo - Beginners Workshop

Introduction to Sigfox Sigfox World IoT Expo

September 2017

Page 2: Sigfox World Expo - Beginners Workshop

Introduction

Page 3: Sigfox World Expo - Beginners Workshop

About Sigfox

IoT Communication Service

Available in 35 countries right now

Low Energy + Simplicity

Chipsets from several major silicon vendors

Page 4: Sigfox World Expo - Beginners Workshop

Sigfox architecture

Page 5: Sigfox World Expo - Beginners Workshop
Page 6: Sigfox World Expo - Beginners Workshop

Online resources

Technical information : http://makers.sigfox.com

Videos : http://youtube.com/sigfox

Q&A : http://ask.sigfox.com

Github: http://github.com/sigfox

Page 7: Sigfox World Expo - Beginners Workshop

Hardware solutions

Page 8: Sigfox World Expo - Beginners Workshop

Hardware

Sigfox is not a hardware vendor

Ecosystem of established partners

Page 9: Sigfox World Expo - Beginners Workshop

Hardware solutions

Modules available from $2

Offers combining Sigfox with Wifi , BLE, GPS

Fast track for product certification

Arduino & Raspberry Pi : Check partners.sigfox.com

Page 10: Sigfox World Expo - Beginners Workshop

Core concepts

Page 11: Sigfox World Expo - Beginners Workshop

Simplicity

No connection

No configuration

No pairing

No signaling

Page 12: Sigfox World Expo - Beginners Workshop

Low Energy

Years of battery life

tens of mAmps while transmitting

idle (µAmps) 99.x%

Independent solutions

Reduce maintenance & TCO

Page 13: Sigfox World Expo - Beginners Workshop

Properties

Good indoor propagation

Simple 2-way communication

Long Range between emitter and receivers

Page 14: Sigfox World Expo - Beginners Workshop

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 15: Sigfox World Expo - Beginners Workshop

Two-way communication

Devices can receive updates sent from your application server

Each communication is instigated by the device

Page 16: Sigfox World Expo - Beginners Workshop

Small messages

Useful payload: up to 12 bytes

Up to 140 times each day (contract)

100 bits/s

Page 17: Sigfox World Expo - Beginners Workshop

Less is more !

GPS coordinates (lat x lng) : 6 bytes

Temperature: 2 bytes

State reporting : 1 byte

Heartbeat, update request : 0 byte

Keep it as simple as possible

Page 18: Sigfox World Expo - Beginners Workshop

Example: Sensit

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 19: Sigfox World Expo - Beginners Workshop

Let’s play !

Page 20: Sigfox World Expo - Beginners Workshop

Useful Resources

http://build.sigfox.com

Session resources http://bit.ly/SigfoxWorldBeginners

XKit http://thinxtra.com/xkit

Questions ? http://ask.sigfox.com

Github

http://github.com/sigfox

http://github.com/nicolsc

Page 21: Sigfox World Expo - Beginners Workshop

Register

http://backend.sigfox.com/activate

Provider: Thinxtra

Country : Czech Republic

ID/PAC : Check sticker

Page 22: Sigfox World Expo - Beginners Workshop

Hello World

Page 23: Sigfox World Expo - Beginners Workshop

Arduino Setup

Open the Arduino IDE

Select the board (COM port)

Board type : Arduino Uno

Page 24: Sigfox World Expo - Beginners Workshop
Page 25: Sigfox World Expo - Beginners Workshop

Xkit Demo App

Copy libraries and DemoApp from

https://github.com/aureleq/Xkit-Sample

Upload code (board: Arduino/Genuino Uno)

Open Serial Monitor

Check messages on backend

Page 26: Sigfox World Expo - Beginners Workshop

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 27: Sigfox World Expo - Beginners Workshop
Page 28: Sigfox World Expo - Beginners Workshop

Email notification

Page 29: Sigfox World Expo - Beginners Workshop

Callback setup

Device Type menu

Click on your device type name

Enter the Callbacks menu

Select new default callback

Page 30: Sigfox World Expo - Beginners Workshop
Page 31: Sigfox World Expo - Beginners Workshop
Page 32: Sigfox World Expo - Beginners Workshop
Page 33: Sigfox World Expo - Beginners Workshop
Page 34: Sigfox World Expo - Beginners Workshop

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 35: Sigfox World Expo - Beginners Workshop
Page 36: Sigfox World Expo - Beginners Workshop

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 37: Sigfox World Expo - Beginners Workshop

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 38: Sigfox World Expo - Beginners Workshop
Page 39: Sigfox World Expo - Beginners Workshop
Page 40: Sigfox World Expo - Beginners Workshop

How to request a downlink

Same AT command, with additional parameters

AT$SF=[hex byte]*, 1

Page 41: Sigfox World Expo - Beginners Workshop

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 42: Sigfox World Expo - Beginners Workshop

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 43: Sigfox World Expo - Beginners Workshop

Sample input output

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

OK

+RX BEGIN

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

+RX END

Page 44: Sigfox World Expo - Beginners Workshop

Geoloc callback

Simply create a SERVICE > GEOLOC callback, and receive latitude + longitude + accuracy

Page 45: Sigfox World Expo - Beginners Workshop