Projekt LoRaWAN: Unterschied zwischen den Versionen
Thm (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Thm (Diskussion | Beiträge) |
||
| (87 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
{{team |
{{team |
||
|description= |
|description=LoRaWAN |
||
|nextMeeting=nur bei Bedarf |
|nextMeeting=nur bei Bedarf |
||
|members=[[Benutzer:Thm|Thomas]] |
|members=[[Benutzer:Thm|Thomas]], [[Benutzer:Oyla|Philipp]], [[Benutzer:Josch|Johannes]], [[Benutzer:Mathias|Mathias]] |
||
|kontakt=crew@list.opennet-iniative.de |
|kontakt=[mailto:crew@list.opennet-iniative.de crew@list.opennet-initiative.de] |
||
|logo= |
|logo=projektlorawan.jpg |
||
}} |
}} |
||
= Laufende Gateways = |
|||
= Knowledge LoRa / LoRa-WAN = |
|||
Aktueller Status: https://eu1.cloud.thethings.network/console/gateways |
|||
== Einsatzmöglichkeiten == |
|||
* Warnemünde Kurpark Lesesaal (Anbindung über Stadt VLAN [https://eu1.cloud.thethings.network/api/v3/gs/gateways/opennet-warnemuende-kurpark/connection/stats Status]) |
|||
* Hansaviertel Holbeinplatz 14 Bauamt (Anbindung über <OnApStatus>1.164</OnApStatus> [[Projekt_Bauamt]] [https://eu1.cloud.thethings.network/api/v3/gs/gateways/bauamt/connection/stats Status]) |
|||
* Innenstadt August-Bebel-Straße Hochhaus (Anbindung über <OnApStatus>1.136</OnApStatus> [[Projekt_Philosophische_Fakultät]] [https://eu1.cloud.thethings.network/api/v3/gs/gateways/3133303746006300/connection/stats Status]) |
|||
* Südstadt Albert-Einstein-Straße 22 Informatik (Anbindung über DSL Uni [[Projekt_AE22]] [https://eu1.cloud.thethings.network/api/v3/gs/gateways/opennet-ae22/connection/stats Status]) |
|||
* Südstadt Ziolkowskistraße 10 Hochhaus (Anbindung über <OnApStatus>1.245</OnApStatus> [[Projekt_Z10]] [https://eu1.cloud.thethings.network/api/v3/gs/gateways/opennet-ziolkowski10/connection/stats Status]) |
|||
* Warnemünde IOW (Anbindung über GRE Tunnel und dann <OnApStatus>1.107</OnApStatus> [[Projekt_IOW]] [https://eu1.cloud.thethings.network/api/v3/gs/gateways/opennet-iow/connection/stats Status]) |
|||
* Schwerin TGZ Haus 5 (Anbindung über <OnApStatus>1.243</OnApStatus> |
|||
[https://eu1.cloud.thethings.network/api/v3/gs/gateways/opennet-warnemuende-robbenstation/connection/stats opennet-warnemuende-robbenstation Status] |
|||
[https://eu1.cloud.thethings.network/api/v3/gs/gateways/uni-indoor-gateway-ae22/connection/stats uni-indoor-gateway-ae22 Status] |
|||
https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=11 |
|||
<OniFrame src="https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=11" width="640" height="480" frameborder="0"></OniFrame> |
|||
<OniFrame src="https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=12" width="640" height="480" frameborder="0"></OniFrame> |
|||
= Einsatzmöglichkeiten = |
|||
* Low Energy, low throughput, high bandwidth, long range Übertragung |
* Low Energy, low throughput, high bandwidth, long range Übertragung |
||
| Zeile 17: | Zeile 35: | ||
* https://www.youtube.com/watch?v=3cIGzwH-NI8 |
* https://www.youtube.com/watch?v=3cIGzwH-NI8 |
||
= Netzstruktur = |
|||
[[Datei: |
[[Datei:LoRaWAN-NRM.png|mini|LoRaWAN Network Reference Model (NRM), roaming End-Device (aus LoRaWAN Backend Interfaces 1.0 Specification)]] |
||
* Opennet stellt Radio Gateways auf und sorgt für Internet-Anbindung. |
|||
* Layer 1 - Chirp Spread Spectrum |
|||
* Radio Gateway kommuniziert über Internet mit Network Server von The Things Network (https://www.thethingsnetwork.org). |
|||
** https://de.wikipedia.org/wiki/Chirp_Spread_Spectrum |
|||
* Network Server steuert Teilnahme am Netzwerk (mit Hilfe des Join Servers), verteilt Uploads an Application Server und ist Scheduler für Downloads. |
|||
** In Europa Frequenzen 433 MHz (ISM-Band Region 1) und 868 MHz (SRD-Band Europa) |
|||
* Application Server empfängt Nutzlast von den Mobilen Geräten. In den meisten Fällen bei The Things Network. Dann Weiterleitung z.B. über MQTT. |
|||
** Reichweiten von 2 km (Stadtgebiet) über 15 km (Vororte) bis zu 40 km (ländliche Gebiete) |
|||
= Plan = |
|||
* Layer 2 |
|||
** Bi-directional end-devices (Class A): End-devices of Class A allow for biirectional communications whereby each end-device’s uplink transmission is followed by two short downlink receive windows. The transmission slot scheduled by the end-device is based on its own communication needs with a small variation based on a random time basis (ALOHA-type of protocol). This Class A operation is the lowest power end-device system for applications that only require downlink communication from the server shortly after the end-device has sent an uplink transmission. Downlink communications from the server at any other time will have to wait until the next scheduled uplink. |
|||
** Bi-directional end-devices with scheduled receive slots (Class B): End-devices of Class B allow for more receive slots. In addition to the Class A random receive windows, Class B devices open extra receive windows at scheduled times. In order for the End-device to open its receive window at the scheduled time, it receives a time synchronized Beacon from the gateway. |
|||
** Bi-directional end-devices with maximal receive slots (Class C): End-devices of Class C have nearly continuously open receive windows, only closed when transmitting. Class C end-device will use more power to operate than Class A or Class B but they offer the lowest latency for server to end-device communication. |
|||
* Bereitstellen eines Community LoRaWANs in Rostock und Schwerin |
|||
* Layer 3 |
|||
* [[:Datei:LoRaWAN Opennet.pdf | FAQ zum Verschicken an Standort-Überlasser]] |
|||
** https://www.lora-alliance.org/for-developers |
|||
** LoRa-WAN ist eine Möglichkeit, ein [https://de.wikipedia.org/wiki/Low_Power_Wide_Area_Network Low Power Wide Area Network] zu errichten |
|||
= How To = |
|||
[[Datei:LoRaWAN-NRM.png|mini|LoRaWAN Network Reference Model (NRM), roaming End-Device (aus LoRaWAN Backend Interfaces 1.0 Specification)]] |
|||
== Gateway aufbauen == |
|||
=== Hardware für Selbstbau Standard-Gateway === |
|||
<gallery widths=300px heights=200px mode="packed"> |
|||
Datei:Lorawanradio2.jpg |
|||
</gallery> |
|||
==== Teileliste ==== |
|||
* [https://www.raspberrypi.com/products/ Raspberry Pi 3 B] oder besser |
|||
* [https://wiki.seeedstudio.com/WM1302_module/ Seeed WM1302] LoRaWAN Concentrator mit SPI |
|||
* [[Projekt_LoRaWAN#PCB_Layout_f.C3.BCr_Adapter_Pi_Header_nach_mPCIe |Adapter Pi Header nach mPCIe]] |
|||
* [https://www.mini-box.com/ALIX-boxes Gehäuse mini-box Alu Druckguss] |
|||
* [https://www.amazon.de/gp/product/B09Q4ZX2GG/ Antenne] |
|||
* [https://www.amazon.de/VARIA-Group-Pigtail-N-Buchse-U-FL-Stecker/dp/B01MTQGJP8/ Pigtail u.fl nach N-Stecker] |
|||
* [https://www.amazon.de/gp/product/B0832QR4NG/ PoE Splitter (802.1af, nicht passiv) nach USB] |
|||
* [https://www.amazon.de/dp/B09QKD2N5X/ Schrauben und Spacer] |
|||
* [https://www.amazon.de/dp/B085WFH7WR/ Montage-Platte] - oder als [[#Baseplate|3D-Modell zum Ausdrucken]] |
|||
[[LoRaWAN-GW-Schritt-für-Schritt|Alte Schritt-für-Schritt-Anleitung für ein Gateway mit IMST iC880A-SPI]]. |
|||
==== PCB Layout für Adapter Pi Header nach mPCIe ==== |
|||
= LoRaWAN bei Opennet = |
|||
<gallery widths=300px heights=200px mode="packed"> |
|||
== Nutzen für Opennet == |
|||
Datei:Lorawanmpcie.gif |
|||
Datei:PiHatLoRaWAN.png |
|||
Datei:LoRaWAN Pi Hat auf Pi.jpg |
|||
</gallery> |
|||
* [[Media:LoRaWAN Hat.zip|Download des PCB Layouts für KiCAD]] |
|||
* Neues Projekt |
|||
* Teileliste: |
|||
* Bereitstellen eines Community LoRaWANs in Rostock und ggfs. sonstwo |
|||
** [https://www.digikey.com/en/products/detail/molex/0480994000/2405320 Molex 480994000 Edge Connector] - [https://jlcpcb.com/partdetail/MOLEX-480994000/C492353 JLCPCB Teilenummer C492353] |
|||
* Eigene Nutzungsmöglichkeiten |
|||
** [https://www.digikey.de/de/products/detail/molex/0679105700/3044373 Molex 679105700 mPCIe SMD Adapter] - [https://jlcpcb.com/partdetail/Molex-679105700/C277606 JLCPCB Teilenummer C277606] |
|||
** Anwendungen vor allem Sensordaten erfassen, Fernsteuern, Überwachen [[Datei:esp32lora.jpg|mini|ESP32 mit LoRa Transceiver, WLAN]] |
|||
** Stiftleiste (2 x 20 Pins 2,54 mm weiblich) |
|||
** Gateways ab 100,-EUR ohne Outdoor-Gehäuse und Antennen |
|||
* Die Teile lassen sich auch einfach selbst löten (SMD) |
|||
** Eigene Clients zum Basteln je nach Anwendung |
|||
== |
==== Baseplate ==== |
||
<gallery widths=300px heights=200px mode="packed"> |
|||
Bei 2km Reichweite in Städten würden wir mit den ersten drei Gateways schon die komplette Innenstadt abdecken. |
|||
Datei:Baseplate.jpg |
|||
Datei:Baseplate3D.png |
|||
</gallery> |
|||
* [[:Datei:BaseplateA.stl.zip|3D-Modell als STL zum Ausdrucken oder Fräsen]] |
|||
[[Datei:LoRaWAN.jpg|mini|400px]] |
|||
* [[:Datei:Baseplate3D.f3d.zip|Quellformat als Fusion 360 3D-Modell]] |
|||
== |
=== Software === |
||
Bewährt hat sich [https://www.thethingsindustries.com/docs/gateways/concepts/lora-basics-station/ BasicStation] ([https://github.com/lorabasics/basicstation Source bei Github]) als Software für das Radio Gateway, am einfachsten als Docker Container. |
|||
* Gateways aufstellen |
|||
* LoRaWAN Network Server bereitstellen |
|||
* Eventuell Anbindung an The Things Network oder eigene Systeme aufbauen |
|||
* Standorte so planen, dass gesamte Stadt abgedeckt wird |
|||
* Adressen und Einbindung in Opennet Netzwerkstruktur besprechen |
|||
* Pi Image auf SD Karte (64 bit ist ok, wenn Basic Station im Container läuft) |
|||
== Ausprobierte Hardware == |
|||
* Raspberry konfigurieren |
|||
** Nutzer und Passwort (nicht mehr default) |
|||
** SSH, SPI und I2C aktivieren |
|||
** Netzwerk konfigurieren (DHCP sollte es tun) |
|||
* Docker installieren |
|||
* Docker Compose installieren |
|||
* Docker Container xoseperez/basicstation installieren |
|||
* EUI des Gateways ermitteln |
|||
* Gateway bei The Things Network registrieren |
|||
* API Token generieren |
|||
* docker-compose.yml anpassen (Key eintragen, ggfs. EUI und Chipsatz) |
|||
Dich wichtigsten Schritte finden sich in der [https://github.com/xoseperez/basicstation Beschreibung des Containers]. |
|||
* Ein iC880A-SPI - LoRaWAN Concentrator 868 MHz bestellt - http://shop.imst.de/wireless-modules/lora-products/8/ic880a-spi-lorawan-concentrator-868-mhz |
|||
* https://www.amazon.de/MakerHawk-Entwicklungsbrett-Bluetooth-Doppelkern-0-96inch/dp/B076T28KWG |
|||
== |
== LoRaWAN Endgeräte == |
||
* Ein auf [https://www.espressif.com/en/products/hardware/esp32/overview ESP32] basierendes Developer Board dient zur Demonstration der Fähigkeiten von LoRa |
* Ein auf [https://www.espressif.com/en/products/hardware/esp32/overview ESP32] basierendes Developer Board dient zur Demonstration der Fähigkeiten von LoRa |
||
| Zeile 81: | Zeile 129: | ||
* http://www.dragino.com/products/lora/item/117-lg01-p.html |
* http://www.dragino.com/products/lora/item/117-lg01-p.html |
||
* Raspberry PI: cheap LoRa gateway https://electronza.com/raspberry-pi-cheap-lora-gateway/ |
* Raspberry PI: cheap LoRa gateway https://electronza.com/raspberry-pi-cheap-lora-gateway/ |
||
* https://mikrotik.com/products/group/lora-products |
|||
=== Endgeräte === |
=== Endgeräte === |
||
| Zeile 111: | Zeile 160: | ||
* https://www.rs-online.com/designspark/building-a-raspberry-pi-powered-lorawan-gateway |
* https://www.rs-online.com/designspark/building-a-raspberry-pi-powered-lorawan-gateway |
||
* https://www.hackerspace-ffm.de/wiki/index.php?title=LoRaWAN |
* https://www.hackerspace-ffm.de/wiki/index.php?title=LoRaWAN |
||
* https://lorenzadriaensen.com/cheap-ttn-node-rfm95w-arduino-pro-mini/ |
|||
Aktuelle Version vom 21. Mai 2024, 12:10 Uhr
| Team |
Projekt LoRaWAN |
| Treffen: nur bei Bedarf |
| LoRaWAN |
| Mitglieder: Thomas, Philipp, Johannes, Mathias |
| Kontakt: crew@list.opennet-initiative.de |
Laufende Gateways
Aktueller Status: https://eu1.cloud.thethings.network/console/gateways
- Warnemünde Kurpark Lesesaal (Anbindung über Stadt VLAN Status)
- Hansaviertel Holbeinplatz 14 Bauamt (Anbindung über <OnApStatus>1.164</OnApStatus> Projekt_Bauamt Status)
- Innenstadt August-Bebel-Straße Hochhaus (Anbindung über <OnApStatus>1.136</OnApStatus> Projekt_Philosophische_Fakultät Status)
- Südstadt Albert-Einstein-Straße 22 Informatik (Anbindung über DSL Uni Projekt_AE22 Status)
- Südstadt Ziolkowskistraße 10 Hochhaus (Anbindung über <OnApStatus>1.245</OnApStatus> Projekt_Z10 Status)
- Warnemünde IOW (Anbindung über GRE Tunnel und dann <OnApStatus>1.107</OnApStatus> Projekt_IOW Status)
- Schwerin TGZ Haus 5 (Anbindung über <OnApStatus>1.243</OnApStatus>
opennet-warnemuende-robbenstation Status uni-indoor-gateway-ae22 Status
https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=11
<OniFrame src="https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=11" width="640" height="480" frameborder="0"></OniFrame> <OniFrame src="https://grafana.thmcloud.de/d-solo/-FOeBhhVz/opennet?orgId=1&refresh=30s&panelId=12" width="640" height="480" frameborder="0"></OniFrame>
Einsatzmöglichkeiten
- Low Energy, low throughput, high bandwidth, long range Übertragung
- Beispiel Sensordaten
- Über LoRa-WAN auch Anbindung ans Internet, im Idealfall überall, dazu Gateways notwendig
- https://de.wikipedia.org/wiki/The_Things_Network stellt solche Gateways als Community bereit
- https://www.youtube.com/watch?v=3cIGzwH-NI8
Netzstruktur

- Opennet stellt Radio Gateways auf und sorgt für Internet-Anbindung.
- Radio Gateway kommuniziert über Internet mit Network Server von The Things Network (https://www.thethingsnetwork.org).
- Network Server steuert Teilnahme am Netzwerk (mit Hilfe des Join Servers), verteilt Uploads an Application Server und ist Scheduler für Downloads.
- Application Server empfängt Nutzlast von den Mobilen Geräten. In den meisten Fällen bei The Things Network. Dann Weiterleitung z.B. über MQTT.
Plan
- Bereitstellen eines Community LoRaWANs in Rostock und Schwerin
- FAQ zum Verschicken an Standort-Überlasser
How To
Gateway aufbauen
Hardware für Selbstbau Standard-Gateway
Teileliste
- Raspberry Pi 3 B oder besser
- Seeed WM1302 LoRaWAN Concentrator mit SPI
- Adapter Pi Header nach mPCIe
- Gehäuse mini-box Alu Druckguss
- Antenne
- Pigtail u.fl nach N-Stecker
- PoE Splitter (802.1af, nicht passiv) nach USB
- Schrauben und Spacer
- Montage-Platte - oder als 3D-Modell zum Ausdrucken
Alte Schritt-für-Schritt-Anleitung für ein Gateway mit IMST iC880A-SPI.
PCB Layout für Adapter Pi Header nach mPCIe
- Download des PCB Layouts für KiCAD
- Teileliste:
- Molex 480994000 Edge Connector - JLCPCB Teilenummer C492353
- Molex 679105700 mPCIe SMD Adapter - JLCPCB Teilenummer C277606
- Stiftleiste (2 x 20 Pins 2,54 mm weiblich)
- Die Teile lassen sich auch einfach selbst löten (SMD)
Baseplate
Software
Bewährt hat sich BasicStation (Source bei Github) als Software für das Radio Gateway, am einfachsten als Docker Container.
- Pi Image auf SD Karte (64 bit ist ok, wenn Basic Station im Container läuft)
- Raspberry konfigurieren
- Nutzer und Passwort (nicht mehr default)
- SSH, SPI und I2C aktivieren
- Netzwerk konfigurieren (DHCP sollte es tun)
- Docker installieren
- Docker Compose installieren
- Docker Container xoseperez/basicstation installieren
- EUI des Gateways ermitteln
- Gateway bei The Things Network registrieren
- API Token generieren
- docker-compose.yml anpassen (Key eintragen, ggfs. EUI und Chipsatz)
Dich wichtigsten Schritte finden sich in der Beschreibung des Containers.
LoRaWAN Endgeräte
- Ein auf ESP32 basierendes Developer Board dient zur Demonstration der Fähigkeiten von LoRa
- Anleitung zum Nachbau gibt es hier
Merkzettel
Hardware
Gateways
- http://www.dragino.com/products/lora/item/117-lg01-p.html
- Raspberry PI: cheap LoRa gateway https://electronza.com/raspberry-pi-cheap-lora-gateway/
- https://mikrotik.com/products/group/lora-products
Endgeräte
- Arduino, diverse "Shields" für Ardoino und Co.
- https://www.amazon.de/s/ref=nb_sb_noss?__mk_de_DE=ÅMÅŽÕÑ&url=search-alias%3Daps&field-keywords=lora+shield&rh=i%3Aaps%2Ck%3Alora+shield
- http://wiki.dragino.com/index.php?title=Lora_Shield
- https://stefan.schultheis.at/2018/lora-aprs-gw-raspberry-pi-zero/
- https://www.exp-tech.de/search?sSearch=dragino LoRa Starter Kit 868
- Raspberry
- Sonstiges
- https://www.elektormagazine.de/news/review-einstieg-ins-iot-mit-lora-produkten-von-dragino
- https://www.amazon.de/gp/product/B01N8SKD2I/ Pycom LoPy - IoT-Entwicklungsboard mit LoRa, WLAN und BLE
- https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-1/10247/33
Server-Software
- App-Server z.B. auch via AWS https://www.hackster.io/naresh-krish/integrating-lorawan-with-aws-iot-services-using-the-rak811-b0127d
Sonstiges
- http://de.farnell.com/the-things-network/ttn-un-868/the-things-uno-eu/dp/2675815
- http://de.farnell.com/das-einmaleins-des-lorawan
- https://www.rs-online.com/designspark/building-a-raspberry-pi-powered-lorawan-gateway
- https://www.hackerspace-ffm.de/wiki/index.php?title=LoRaWAN
- https://lorenzadriaensen.com/cheap-ttn-node-rfm95w-arduino-pro-mini/
