LoraWAN Technology Luka Mustafa, Institute IRNAS, November 2018 - - PowerPoint PPT Presentation

lorawan technology
SMART_READER_LITE
LIVE PREVIEW

LoraWAN Technology Luka Mustafa, Institute IRNAS, November 2018 - - PowerPoint PPT Presentation

LoraWAN Technology Luka Mustafa, Institute IRNAS, November 2018 IRNAS.EU CC BY-SA 4.0 LoRa LoRaWan IRNAS.EU CC BY-SA 4.0 What is LoRa ? Wireles eless s modulat lation ion Radio physical layer Low bandwidth & energy


slide-1
SLIDE 1

IRNAS.EU CC BY-SA 4.0

Luka Mustafa, Institute IRNAS, November 2018

LoraWAN Technology

slide-2
SLIDE 2

IRNAS.EU CC BY-SA 4.0

LoRa ≠ LoRaWan

slide-3
SLIDE 3

IRNAS.EU CC BY-SA 4.0

What is LoRa ?

 Wireles

eless s modulat lation ion

 Radio physical layer  Low bandwidth & energy  Uses ISM bands  Great link budget (> 150 dB)

slide-4
SLIDE 4

IRNAS.EU CC BY-SA 4.0

LoraWAN network

slide-5
SLIDE 5

IRNAS.EU CC BY-SA 4.0

What is LoRaWan ?

 Communi

municat cation ion protocol tocol built above LoRa modulation

 Data rate from 300 bps to 5.5 kbps (up to 50kbps using FSK)  Features :

Bi-directional communication

 Mobility 

Localization

slide-6
SLIDE 6

IRNAS.EU CC BY-SA 4.0

slide-7
SLIDE 7

IRNAS.EU CC BY-SA 4.0

LoRa(Wan)

slide-8
SLIDE 8

IRNAS.EU CC BY-SA 4.0

History

 2007 : Nanoscale-Labs  2009 : Cycleo  2012 : Semtech  2015 : LoRa Alliance

slide-9
SLIDE 9

IRNAS.EU CC BY-SA 4.0

Radio Basics

slide-10
SLIDE 10

IRNAS.EU CC BY-SA 4.0

Radio Keying : OOK

slide-11
SLIDE 11

IRNAS.EU CC BY-SA 4.0

Radio Keying : FSK

slide-12
SLIDE 12

IRNAS.EU CC BY-SA 4.0

Radio Keying : PSK

slide-13
SLIDE 13

IRNAS.EU CC BY-SA 4.0

Spread Spectrum

slide-14
SLIDE 14

IRNAS.EU CC BY-SA 4.0

Chirp Spread Spectrum

slide-15
SLIDE 15

IRNAS.EU CC BY-SA 4.0

Chirp Spread Spectrum

 Chirp frequency :

slide-16
SLIDE 16

IRNAS.EU CC BY-SA 4.0

LoRa

slide-17
SLIDE 17

IRNAS.EU CC BY-SA 4.0

Chirp Spread Spectrum in LoRa

slide-18
SLIDE 18

IRNAS.EU CC BY-SA 4.0

Chirp Spread Spectrum in LoRa

 Phase shiftings

= where the data is

~ PSK over chirp

slide-19
SLIDE 19

IRNAS.EU CC BY-SA 4.0

LoRa demodulation

x =

slide-20
SLIDE 20

IRNAS.EU CC BY-SA 4.0

LoRa demodulation, with noise

x =

slide-21
SLIDE 21

IRNAS.EU CC BY-SA 4.0

LoRa Modulation

 Spread-spectrum technique and a variation of chirp spread

spectrum (CSS)

 LoRa uses Spreading Factors to set the modulation rate (SF7 to

SF12)

slide-22
SLIDE 22

IRNAS.EU CC BY-SA 4.0

LoRa Spreading Factors

SF7 SF8 SF9 ...

slide-23
SLIDE 23

IRNAS.EU CC BY-SA 4.0

LoRa Spreading Factors

Spreading Factor Symbols/second Bitrate TOA (10 bytes, ms) SNR limit (dB) SF 7 976 5469 56

  • 7,5

SF 8 488 3125 103

  • 10

SF 9 244 1758 205

  • 12,5

SF 10 122 977 371

  • 15

SF 11 61 537 741

  • 17,5

SF 12 30 293 1483

  • 20
slide-24
SLIDE 24

IRNAS.EU CC BY-SA 4.0

Benefits of the Modulation

 Very resistant to interferences  Very low sensibility to fading & multipath  Good sensitivity (below noise level)  Doppler effect resistant

Moving devices

High clock tolerance

 LoRa reception is super simple

slide-25
SLIDE 25

IRNAS.EU CC BY-SA 4.0

LoRaWan

slide-26
SLIDE 26

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : Device class

 Class A

Emit on request, listen only after emit → ultra-low energy

 Class B

Emit on request, listen based on time interval → low energy

 Class C

Emit on request, always listen → « high » energy

slide-27
SLIDE 27

IRNAS.EU CC BY-SA 4.0

LoRaWan Network Architecture

slide-28
SLIDE 28

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : authentication

 ABP :

  • Dev addr
  • AppSKey
  • NwkSKey

 OTAA :

  • DevEUI
  • AppEUI
  • AppKey
  • AppSKey and NwkSKey

derivated from AppKey & Network response

slide-29
SLIDE 29

IRNAS.EU CC BY-SA 4.0

LoRaWan Network Encryption

slide-30
SLIDE 30

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol

preamble phdr phdr_crc phy PL crc mhdr mac PL mic fhdr fport frm PL dev addr fctrl fcnt fopts mtype rfu major Can contains MAC commands

slide-31
SLIDE 31

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : MAC commands

 LinkCheckReq, LinkCheckAns = connectivity check  LinkADRReq, LinkADRAns = change emit settings like SF  DutyCycleReq, DutyCycleAns = update device DC  RXParamSetupReq, RXParamSetupAns = change RX window  DevStatusReq, DevStatusAns = get dev. status like battery  NewChannelReq, NewChannelAns= channel upadte  RXTimingSetupReq, RXTimingSetupAns = change RX window

slide-32
SLIDE 32

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : Devices

 Joining the network (if OTAA)  Converting your payload as a LoRaWan packet  Sending the packet  Listening for downlink packets  Converting the packet back to payload

slide-33
SLIDE 33

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : Gateways

 Receiving radio packets  Checking CRC (message integrity, only for uplink)  Forwarding to network server  Listening for downlink messages to forward to devices

slide-34
SLIDE 34

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : Network Server

 Dealing with join requests  Dealing with devices addresses  Choosing time and gateways to use for downlink  En/Decrypting MAC payload

slide-35
SLIDE 35

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : App. Server

 Receiving packets from devices  Scheduling responses to devices  En/Decrypting FRM Payload (the real payload)  In fact, do something with the data...

slide-36
SLIDE 36

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : Localisation

 Triangulation

Accuracy (3gw) :

→ ~ 180 m in crowded area

→ ~ 350 m in clear area

 Accuracy (4gw)

→ ~ 95 m in crowded area

→ ~ 210 m in clear area From semtech

slide-37
SLIDE 37

IRNAS.EU CC BY-SA 4.0

LoRaWan Network : Localisation

 Triangulation  Big-Data

Accuracy (3gw) :

→ ~ 35 m in crowded area

→ ~ 220 m in clear area

Accuracy (4gw)

→ ~ 22 m in crowded area

slide-38
SLIDE 38

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : Duty Cycle

 The more messages on the same frequency & SF = the higher

collision probability

 We want reliable transmission  We want a lot of devices per gateway (>1000)  → we need the keep the collision probability low enough !  →

Typically, < 10 % or even < 5 %

slide-39
SLIDE 39

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : Duty Cycle

 A gateway listen on 8 frequencies and all SF  We want > 1000 devices / gateway  We want < 10% of duty cycle  →

30 seconds / day / devices gives a DC < 5%

slide-40
SLIDE 40

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : Duty Cycle

 Fair-use TTN policy: max. 30 seconds/device/day  For a 10-bytes PL we have max:

20 messages/day at SF12

500 messages/day at SF7

 Much more using SF7-250 or FSK modulation (lower range & higher energy)

 Downlink is limited to < 10 messages/device/day

slide-41
SLIDE 41

IRNAS.EU CC BY-SA 4.0

LoRaWan protocol : ADR

Spreading Factor SNR limit (dB) SF 7

  • 7,5

SF 8

  • 10

SF 9

  • 12,5

SF 10

  • 15

SF 11

  • 17,5

SF 12

  • 20

 Reception of a packet on  SF12 with SNR = -7,5dB  Check the best SF with a  margin of 5dB  Send MAC command to request  SF9 on the device

slide-42
SLIDE 42

IRNAS.EU CC BY-SA 4.0

Luka Mustafa, Institute IRNAS, November 2018

TheThingsNetwork LoraWAN

slide-43
SLIDE 43

IRNAS.EU CC BY-SA 4.0

slide-44
SLIDE 44

IRNAS.EU CC BY-SA 4.0

The Things Network : Principles

 Standards compliant  Compliant with spectrum regulations  Open source  Designed for distribution and decentralization  One global, free and open network

slide-45
SLIDE 45

IRNAS.EU CC BY-SA 4.0

The Things Network : History

 Jul. ‘15 : Announce of The Things Network  Sept. ‘15 : First gateways installed in Amsterdam

→ Croft environment started

 Oct. ‘15 : KickStarter campaign started  Nov. ‘15 : KickStarter end with > 2x funding!  Mar. ‘16: Staging environment setup

slide-46
SLIDE 46

IRNAS.EU CC BY-SA 4.0

The Things Network : Numbers

 > 30,000 members  > 5,000 gateways  > 200 communities  > 55 countries  ... and counting !

slide-47
SLIDE 47

IRNAS.EU CC BY-SA 4.0

The Things Network : Architecture

R

Router Routes raw packets from gateways to brokers

NC

Network Controller Node state: data rate and frequency management

H

Application Handler Decryption, deduping, works on behalf of apps A Application User application Gateway Send data to and receive data from nodes

B

Broker Decoupling from Router and Application Handler

slide-48
SLIDE 48

IRNAS.EU CC BY-SA 4.0

The Things Network : Architecture

H

S1, S2 S2, S1, S3 S2, S1, S3 S3, S2

B R A

NC

Private Network

B R

NC

H B R

NC

H H H

NR

A A

Private Storage Handler

A

slide-49
SLIDE 49

IRNAS.EU CC BY-SA 4.0

The Things Network : Gateways

slide-50
SLIDE 50

IRNAS.EU CC BY-SA 4.0

The Things Network : Coverage

slide-51
SLIDE 51

IRNAS.EU CC BY-SA 4.0

The Things Network : Coverage

slide-52
SLIDE 52

IRNAS.EU CC BY-SA 4.0

The Things Network : Coverage

slide-53
SLIDE 53

IRNAS.EU CC BY-SA 4.0

352 KM 160 KM

LoRaWan : Performance

slide-54
SLIDE 54

IRNAS.EU CC BY-SA 4.0

160 PARTICIPANTS 74 ORGANIZATIONS 11 COUNTRIES

slide-55
SLIDE 55

IRNAS.EU CC BY-SA 4.0

slide-56
SLIDE 56

IRNAS.EU CC BY-SA 4.0

Network in Maribor

  • Gateways on Pohorje and Urban
  • Gateways in the city center
  • Test network with Kerlink

supporting geolocation

  • Good coverage of the city center

+ wide area from Pohorje, up to 100km range, fields of Dravsko polje and much more

slide-57
SLIDE 57

IRNAS.EU CC BY-SA 4.0

TTN mapper

slide-58
SLIDE 58

IRNAS.EU CC BY-SA 4.0

Sources

 Thomas Telkamp - LoRa crash course – 10 Nov. ‘16  Matt Knight - Decoding LoRa – 05 Oct. ‘16  Johan Stokking – The Things Network – Jul. ‘15  TTNMapper.org – Nov. ’16  Romain Cambier - @r_cambier – shareif – Oct18  Luka Mali – LTFE – Oct18  Infiswift Solutions – Oct18