A brief introduction to LoRaWAN given at the Webnesday in St. Gallen on January 11th 2017. The focus is to give an idea on what LoRaWAN is, why it helps for IoT applications and how to use it (in Switzerland).
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
18.01.2017 6
7. Data Rates
• Adaptive data rate scheme (ADR)
• “Use lower spreading factor if signal is strong”
• SF =
𝑐ℎ𝑖𝑝 𝑟𝑎𝑡𝑒
𝑠𝑦𝑚𝑏𝑜𝑙 𝑟𝑎𝑡𝑒
18.01.2017 7
Source: https://blog.surf.nl/en/lora-the-internet-of-things
8. LoRaWAN
• Defines communication protocol and
system architecture
• Specified by LoRa Alliance (cisco, IBM,
Semtech, TTN, Swisscom, BFH, …)
18.01.2017 8
10. Device Classes
• Class A
• Two short receive windows after uplink
• Class B
• Slotted communication
• Class C
• Receives continuously
18.01.2017 10
18. IoT challenges
• Sensing a complex environment
• Connectivity
• Power is critical
• Security is vital
• IoT is complex
• Cloud is important
• Device Updates
18.01.2017 18
27. The Things Network
• Worldwide, free Network for makers
• Driven by communities
18.01.2017 27
28. The Things Network in Switzerland
• https://ttn-ch.slack.com
18.01.2017 28
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/
18.01.2017 29
30. TTN – Node.js Client
18.01.2017 30
var 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) {});
37. Swisscom
• Disclaimer
18.01.2017 37
«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.»