> For the complete documentation index, see [llms.txt](https://docs.dnt.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dnt.de/dnt-lw-etrv-c/kommunikationsprotokoll/0.-allgemeines-kommunikationskonzept.md).

# 0. Allgemeines Kommunikationskonzept

## 0.1 Grundprinzip

{% hint style="info" %} <mark style="color:green;">Firmwareversionen < 1.4.0 nutzen die LoRaWAN® MAC Protokoll-Version 1.0.3 und neben dem fPort 10 zur Steuerung und Parametrierung auch den fPort 100 für Multicast Firmwareupdates</mark>
{% endhint %}

Das dnt Gerät verwendet das LoRaWAN®-Kommunikationsprotokoll unter Berücksichtigung folgender Spezifikationen:

LoRaWAN® MAC Protokoll-Version: 1.0.4 / RP002 v1.0.3

* Unterstützte Geräteklasse: Class A
* Verwendete LoRaWAN® MAC Ports: 10
* Maximale Payload-Länge: 51 Byte

Um das dnt Gerät zu parametrieren, zu steuern und zu&#x20;überwachen, steht ein Satz an Befehlen zur Verfügung. Jeder Uplink/Downlink kann aus einem oder&#x20;mehreren Befehlen bestehen, d.h. es können mehrere Befehle aneinandergereiht werden, solange eine Gesamtlänge des Payloads von 51 Byte&#x20;nicht überschritten wird.

| Befehl 1 | Befehl 2 | ... | Befehl N |
| :------: | :------: | :-: | :------: |

## 0.2 Befehlsaufbau

Jeder Befehl besteht dabei aus ein bis drei Feldern. Einer Command ID,&#x20;der Command Data und dem Instant Response Bit (s. Abbildung unten).&#x20;Im ersten Byte jedes Befehls befindet sich die Command ID (Bit 6:0) und&#x20;optional das Instant Response Bit (Bit 7). Anschließend folgen je nach\
Befehl 0 – 50 Byte Command Data.

| Byte | Bit (s) |      Feld      |    Status    |
| :--: | :-----: | :------------: | :----------: |
|   0  |    7    |      `IR`      |   optional   |
|   0  |   6:0   |  `Command ID`  | erforderlich |
| 1..N |    -    | `Command Data` |   optional   |

Das Instant Response Bit ist nur für Befehle relevant, auf die eine Antwort&#x20;des Geräts in Form eines Downlinks folgt. Wird das IR-Bit auf den Wert 1&#x20;gesetzt, so folgt eine direkte Antwort des Geräts auf den Befehl, ansonsten wird die Antwort der nächsten zyklischen Statusmeldung angehangen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dnt.de/dnt-lw-etrv-c/kommunikationsprotokoll/0.-allgemeines-kommunikationskonzept.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
