LoRaWAN crash course

LoRaWAN crash course

What is LoRaWAN? Think of it as WiFi for sensors! In this workshop, you will learn all about LoRaWAN, and how to develop a simple sensor that sends data to the Internet via the free/open The Things Network.

00f3cfa8388dfc9655e5887ffde9cfcc?s=128

Gonzalo Casas

October 28, 2020
Tweet

Transcript

  1. Civic Tech Hackathon for a better city

  2. LORAWAN CRASH COURSE Building an open and free Internet of

    Things casas@arch.ethz.ch | twitter.com/gnz
  3. THE THINGS NETWORK A global community, building open source to

    operate a crowd-sourced network for the Internet of Things.
  4. THE THINGS NETWORK A global community, building open source to

    operate a crowd-sourced network for the Internet of Things. FREE/OPEN GLOBAL WIFI SENSORS
  5. IN SWITZERLAND

  6. None
  7. ZURICH COVERAGE

  8.  TECHNOLOGY  COMMUNITY  OPENNESS

  9. WHAT IS LORAWAN?

  10. LORAWAN • LoRa (Long Range): Radio modulation technique • LoRaWAN:

    MAC protocol for Wide Area Networks (OSI Layer 2 and 3) sensors nodes gateways backend application backend LoRa ip ip
  11. LORAWAN 3 * 10 10 km range 10 USD/node 10

    years battery life
  12. LONG RANGE 2km - 5km in urban setting 40km+ in

    rural setting © ttnmapper.org , Open Street Map
  13. INSANELY LONG RANGE (under extreme conditions) 201 km ground-to-ground by

    Andreas Spiess, TTN Basel http://www.sensorsiot.org/ © ttnmapper.org
  14. INSANELY LONG RANGE (under extreme conditions) 333 km air-to-ground (helium

    balloon) by @telkamp (mapping @jpmeijers) © ttnmapper.org
  15. LOW COST Node/transceiver: CHF 8.5 Gateway: ~CHF 90 (indoor) Open

    source stack + ISM bands Low CAPEX, almost negligible OPEX Photos by @gnz, CC-BY-SA
  16. FREE & OPEN SOURCE STACK

  17. UNLICENSED SPECTRUM Anyone can deploy a LoRaWAN network!

  18. LOW POWER Class A Class B Class C Always send,

    receive after send. Up to 10 years. Deep sleep: ~10 μA TX ~40 mA RX ~14 mA Time-synchronized receive windows. Always-on receive mode. Not supported Support not ready, but planned
  19. None
  20. LIMITATIONS Bandwidth Payload size Regulatory limits 0.3 bps to 50

    kbps 51 bytes (DR0) 222 bytes (DR4) Fair usage policy 1% Duty Cycle 30 seconds/day airtime 10 downlinks/day
  21. COMMUNITY

  22. Photo by Ali Soy, @alisoy1502

  23. Photos by @gnz, CC-BY-SA

  24. Photos by @gnz, CC-BY-SA

  25. Photos by @gnz, CC-BY-SA

  26. Photos by @gnz, CC-BY-SA

  27. OPENNESS

  28. CAN WE TRUST AN OPEN NETWORK?

  29. THE WORLD RUNS ON OSS

  30. CAN I TRUST… …the gateway won’t be shut down? REDUNDANCY

    …sensitive information stays private? CRYPTOGRAPHY …the backend to be up-and-running? DECENTRALIZATION
  31. CAN I TRUST… …it will be around in a few

    years time? OSS + OPEN STANDARDS
  32. CONNECTING THINGS

  33. GATEWAYS

  34. GATEWAYS

  35. GATEWAYS

  36. GATEWAYS

  37. console.ttn.opennetworkinfrastructure.org u.nu/ttn

  38. None
  39. APPLICATIONS

  40. None
  41. DEVICES

  42. THANK YOU @2ni! https://github.com/2ni/lorawan_modem

  43. WIRING Type ST Board Nano Type GND GND COMMAND PB8

    D3 RTS BUSY PA8 D2 CTS USART1_RX PA10 TX UART TX USART1_TX PA9 RX UART RX Diagram by Thomas Amberg (@tamberg)
  44. STEPS 1. Get Dev EUI from device 2. Register device

    on TTN 3. Get App EUI & Key from TTN 4. Use join(appeui, appkey)
  45. None
  46. None
  47. MORE RESOURCES • Working with bytes: https://www.thethingsnetwork.org/docs/devices/bytes.html • LoRa crash

    course (RF, link budget, lots of technical details) https://www.youtube.com/watch?v=T3dGLqZrjIQ
  48. THANKS! Gonzalo Casas Open Network Infrastructure Association casas@arch.ethz.ch | twitter.com/gnz

  49. ARCHITECTURE

  50. None
  51. ROUTER BROKER HANDLER

  52. ROUTER BROKER HANDLER COMMUNITY NETWORK

  53. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  54. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  55. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  56. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  57. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  58. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  59. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  60. ROUTER BROKER HANDLER ROUTER BROKER HANDLER COMMUNITY NETWORK

  61. ROUTER BROKER HANDLER

  62. ROUTER BROKER HANDLER ROUTER BROKER HANDLER APPLICATION DO OFFICIAL SWISS

    ZONE
  63. ROUTER BROKER HANDLER ROUTER BROKER HANDLER ROUTER BROKER HANDLER

  64. ROUTER BROKER HANDLER ROUTER BROKER HANDLER ROUTER BROKER HANDLER

  65. END-TO-END SECURITY

  66. LORAWAN SESSIONS Network Session Key: Message Integrity Application Session Key:

    Join, Encryption and Decryption Devices Gateways Network Server Application
  67. ASYMMETRIC KEYS Network Session Key: Message Integrity Application Session Key:

    Join, Encryption and Decryption Devices Gateways Network Server Application Dual-band Provisioning, Asymmetric Cryptography
  68. ASYMMETRIC KEYS Network Session Key: Message Integrity Application Session Key:

    Join, Encryption and Decryption Devices Gateways Network Server Application Dual-band Provisioning, Asymmetric Cryptography IoT Platform
  69. LINKS https://ttn-ch.herokuapp.com/ https://opennetworkinfrastructure.org/ https://www.thethingsnetwork.org/country/switzerland/