> 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-wsci/kommunikationsprotokoll/1.-allgemeines-kommunikationskonzept.md).

# 1. Allgemeines Kommunikationskonzept

## 1.1 Grundprinzip

{% hint style="info" %} <mark style="color:green;">Firmwareversionen < 1.5.0 nutzen die LoRaWAN® MAC Protokoll-Version 1.0.3</mark>
{% endhint %}

Der dnt Fenstersensor verwendet das LoRaWAN-Kommunikationsprotokoll unter&#x20;Berücksichtigung folgender Spezifikationen:

* LoRaWAN MAC Protokoll-Version 1.0.4 / RP002 1.0.3
* Unterstützte Geräteklasse: Class A
* Verwendete LoRaWAN MAC Ports: 10
* Maximale Paylaod-Länge: 51 Byte

Zum Einstellen, Steuern und Überwachen des Fenstersensors, steht ein Satz an&#x20;LoRaWAN-Befehlen zur Verfügung.

Jeder Uplink / Downlink kann aus einem oder mehreren Befehlen bestehen. Sie können&#x20;beliebig viele Befehle bis zu einer maximalen Größe von **51 Byte** (begrenzt durch die LoRaWAN-Spezifikation) aneinanderreihen. FPort 10 wird&#x20;für die Kommunikation (Uplink und Downlink) verwendet.

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

## 1.2 Aufbau eines Befehls

Jeder Befehl besteht dabei aus zwei Feldern: der Command ID und der Command Data.

Im ersten Byte jedes Befehls befindet sich die Command ID. Das Feld Command Data&#x20;hat eine Größe von 7 Bits und gibt an, welcher Befehl gerade gesendet wird. Das Produkt&#x20;sendet sofort die dem Befehl entsprechende Antwort.

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


---

# 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-wsci/kommunikationsprotokoll/1.-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.
