webnesday - introduction to lorawan

Post on 14-Apr-2017

286 Views

Category:

Engineering

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

03.05.2023 1

Introduction toLoRaWAN

Martin HaasWebnesday (11.01.2017)

03.05.2023 2

About me• Martin Haas (@tineler)• Founder & Engineer @adnexo_gmbh

https://www.adnexo.ch

03.05.2023 3

Overview• What?• Why?• How?

03.05.2023 4

LoRaWHAAAAT?

03.05.2023 5

LoRa WANLong Range Wide Area Network

03.05.2023 6

LoRa• Layer 1 (physical)• Enables long-range communication

link• Highly dependent on environment

• Cities / buildings: ~ 2.5km• Countryside: up to 45km+

• Data rate 0.3 – 50 kbps• Frequency band (Europe): 868 MHz• Duty cycle 1%• 36 Sekunden / h

03.05.2023 7

Data Rates• Adaptive data rate scheme (ADR)• “Use lower spreading factor if signal is

strong”

Source: https://blog.surf.nl/en/lora-the-internet-of-things

03.05.2023 8

LoRaWAN• Defines communication protocol and

system architecture• Specified by LoRa Alliance (cisco, IBM,

Semtech, TTN, Swisscom, BFH, …)

03.05.2023 9

Architecture

Source: https://www.lora-alliance.org/portals/0/documents/whitepapers/LoRaWAN101.pdf

03.05.2023 10

Device Classes• Class A• Two short receive windows after uplink

• Class B• Slotted communication

• Class C• Receives continuously

03.05.2023 11

Information stored in end-device• Device Address (DevAddr, 32 bits)• 7 MSB: Network Identifier (NwkID)• 25 LSB: Network Address (NwkAddr)

• Application Identifier (AppEUI)• Network session key (NwkSKey)• Application session key (AppSKey)

• Frame Counters

03.05.2023 12

Activation by Personalization (ABP)• Manually configured• DevAddr• NwkSKey (unique!)• AppSKey (unique!)

03.05.2023 13

Over-the-Air Activation (OTAA)• Manually configured• End-device identifier (DevEUI, 64 bits)• AppEUI• AES-128 key (AppKey)

• From accept message• DevAddr• NwkSKey• AppSKey

03.05.2023 14

Network Architecture

Source: https://www.lora-alliance.org/portals/0/documents/whitepapers/LoRaWAN101.pdf

03.05.2023 15

Security• Security on network level• Unique Network Key

• Security on application level• Unique Application Key

• Secure usage required!• Find more on the Internet…

03.05.2023 16

YAWT???Yet Another Wireless Technology?

03.05.2023 17

Different Wireless Technologies

Source: Swisscom

03.05.2023 18

IoT challenges• Sensing a complex environment• Connectivity• Power is critical• Security is vital• IoT is complex• Cloud is important• Device Updates

03.05.2023 19

03.05.2023 20

Kind of…• Sensing a complex environment • Connectivity • Power is critical • Security is vital • IoT is complex • Cloud is important • Device Updates

helps helps not improves

03.05.2023 21

How?

03.05.2023 22

What you need• End-Device• Access to a Network• Gateway• Account

• Little programming skills

03.05.2023 23

End-Device

03.05.2023 24

Send message (MicroPython)

03.05.2023 25

Gateways

03.05.2023 26

Networks (in Switzerland)• The Things Network• LORIOT• Swisscom LPN

03.05.2023 27

The Things Network• Worldwide, free Network for makers• Driven by communities

03.05.2023 28

The Things Network in Switzerland• https://ttn-ch.slack.com

03.05.2023 29

The Things Network• Free of charge• Open Source• Active user base• Register Applications and Gateways here:

• https://console.thethingsnetwork.org• Streaming Data using MQTT (more to come)

• Clients available for Java, Node-RED, Node.js• Define Payload functions online• Data Storage Integration

https://www.thethingsnetwork.org/

03.05.2023 30

TTN – Node.js Clientvar ttn = require('ttn'); var client = new ttn.Client(region, appId, appAccessKey, [options]);

client.on('connect', function cb(connack) {});

client.on('message', [deviceId], [field], function cb(deviceId, data) {});

03.05.2023 31

Response"port": 1,"counter": 10,"payload_raw": {

"type": "Buffer","data": [ 1 ]

},"payload_fields": { "led": true }, "metadata": {

"time": "2016-09-07T12:50:07.068771281Z","frequency": 868.1,"modulation": "LORA","data_rate": "SF7BW125","coding_rate": "4/5","gateways": [{

"gtw_id": "0000024B08060112","timestamp": 3955426155,"time": "2016-09-07T12:50:07.053048Z","channel": 4,"rssi": -109,"snr": 5.8,"rf_chain": 1 ]}

}

03.05.2023 32

LORIOT• Free of charge up to 10 end-devices

and 1 Gateway• Possibility of “private networks”

03.05.2023 33

LORIOT• Build-in Output Types• Amazon AWS IoT• IBM Bluemix IoT Foundation• HTTP Push• Iron.io IronMQ• PubNub• TLS Socket• WebSocket• Azure IoT Hub

03.05.2023 34

Swisscom• 80% of Swiss population covered• For enterprise customers• HTTP request

03.05.2023 35

Swisscom

03.05.2023 36

Swisscom

Source: Swisscom

03.05.2023 37

Swisscom• Disclaimer

«Die Abdeckungskarten zeigen die Verfügbarkeit des LPN-Services für den Aussenbereich (Strassen, Trottoirs, öffentliche Plätze, etc.). Die ausgewiesene Versorgung beruht auf Prädiktionen, die nicht alle Feinheiten der Ausbreitungscharakteristik eines LoRa-Funksignals berücksichtigen können. Die Angaben zur zukünftigen Abdeckung stellen die momentane Planung dar, die definitiv realisierte Abdeckung kann davon abweichen. Bei den vorliegenden Karten und Abdeckungs-Angaben handelt es sich deshalb um eine ungefähre Indikation und Swisscom kann für die aufgezeigte LPN-Service-Abdeckung entsprechend keine Gewähr übernehmen.»

03.05.2023 38

The End!

top related