Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

LoRaWAN

677 Byte hinzugefügt, 22:29, 26. Feb. 2018
/* ESP8266 */
== LoRaWAN Bibliotheken ==
Wichtig: '''Nicht''' die LoRaWAN Bibliothek aus dem Arduino Library Manager verwenden, sonder manuel diese hier installieren:
* [https://github.com/matthijskooijman/arduino-lmic LMIC für Arduino von Matthijs Kooijman] Am meisten beim TTN referenziert.
 
Kann auch interessant sein (ungetestet):
* [https://github.com/mcci-catena/arduino-lorawan MCCI Catena Arduino-Lorawan]
Infos für Lutz (nicht Nicht so wichtich)wichtige Infos:
<pre>
// Enable data rate adaptation(only useful for nodes with fixed location)
LMIC_setAdrMode(1);
</pre>
Kurzer LMIC Code(ungetestet): [https://github.com/SensorsIot/LoRa/blob/master/Nodes/Dragino/HelloWorld/HelloWorld.ino]
=== Erweiterung um Packete zu empfangen ===
<pre>
case EV_TXCOMPLETE:
</pre>
== Fertige Konfiguration für bestimmte Hardware (Boards) == === ESP8266 ===Hier hat der TTN Zugang mit folgender Konfiguration geklappt: {| class="wikitable" style="text-align:center"! RFM95 Pin! ESP8266 GPIO#! ESP8266 D#|-|DIO1|4|D2|-|DIO0|5|D1|-|MISO|12|D6|-|MOSI|13|D7|-|SCK|14|D5|-|NSS|15|D8|-|RESET|16|D0|} <pre>const lmic_pinmap lmic_pins = { .nss = D8, .rxtx = LMIC_UNUSED_PIN, .rst = D0, .dio = {D1, D2, LMIC_UNUSED_PIN},};</pre>
=== Lora32u4 ===
1.954
Bearbeitungen