Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Webnesday - Introduction to LoRaWAN

2,989 views

Published on

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).

Published in: Engineering
  • Be the first to comment

Webnesday - Introduction to LoRaWAN

  1. 1. Introduction to LoRaWAN Martin Haas Webnesday (11.01.2017) 18.01.2017 1
  2. 2. About me • Martin Haas (@tineler) • Founder & Engineer @adnexo_gmbh 18.01.2017 2 https://www.adnexo.ch
  3. 3. Overview • What? • Why? • How? 18.01.2017 3
  4. 4. LoRaWHAAAAT? 18.01.2017 4
  5. 5. 18.01.2017 5 LoRa WAN Long Range Wide Area Network
  6. 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. 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. 8. LoRaWAN • Defines communication protocol and system architecture • Specified by LoRa Alliance (cisco, IBM, Semtech, TTN, Swisscom, BFH, …) 18.01.2017 8
  9. 9. Architecture 18.01.2017 9 Source: https://www.lora-alliance.org/portals/0/documents/whitepapers/LoRaWAN101.pdf
  10. 10. Device Classes • Class A • Two short receive windows after uplink • Class B • Slotted communication • Class C • Receives continuously 18.01.2017 10
  11. 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 18.01.2017 11
  12. 12. Activation by Personalization (ABP) • Manually configured • DevAddr • NwkSKey (unique!) • AppSKey (unique!) 18.01.2017 12
  13. 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 18.01.2017 13
  14. 14. Network Architecture 18.01.2017 14 Source: https://www.lora-alliance.org/portals/0/documents/whitepapers/LoRaWAN101.pdf
  15. 15. Security • Security on network level • Unique Network Key • Security on application level • Unique Application Key • Secure usage required! • Find more on the Internet… 18.01.2017 15
  16. 16. YAWT??? Yet Another Wireless Technology? 18.01.2017 16
  17. 17. Different Wireless Technologies 18.01.2017 17 Source: Swisscom
  18. 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
  19. 19. 18.01.2017 19
  20. 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 18.01.2017 20
  21. 21. How? 18.01.2017 21
  22. 22. What you need • End-Device • Access to a Network • Gateway • Account • Little programming skills 18.01.2017 22
  23. 23. End-Device 18.01.2017 23
  24. 24. Send message (MicroPython) 18.01.2017 24
  25. 25. Gateways 18.01.2017 25
  26. 26. Networks (in Switzerland) • The Things Network • LORIOT • Swisscom LPN 18.01.2017 26
  27. 27. The Things Network • Worldwide, free Network for makers • Driven by communities 18.01.2017 27
  28. 28. The Things Network in Switzerland • https://ttn-ch.slack.com 18.01.2017 28
  29. 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. 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) {});
  31. 31. Response 18.01.2017 31 "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 ]} }
  32. 32. LORIOT • Free of charge up to 10 end-devices and 1 Gateway • Possibility of “private networks” 18.01.2017 32
  33. 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 18.01.2017 33
  34. 34. Swisscom • 80% of Swiss population covered • For enterprise customers • HTTP request 18.01.2017 34
  35. 35. Swisscom 18.01.2017 35
  36. 36. Swisscom 18.01.2017 36 Source: Swisscom
  37. 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.»
  38. 38. The End! 18.01.2017 38

×