> 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/0.-befehlsubersicht-und-command-cheat-sheet.md).

# 0. Befehlsübersicht und Command Cheat Sheet

Diese Übersicht bündelt die wichtigsten Set- und Get-Befehle für Status, Zeit, Sensorik, Service und Netzwerk.

{% hint style="info" %}
Die Beispiele zeigen typische Downlink-Payloads auf LoRaWAN FPort 10. Details zu Bitfeldern, Wertebereichen und Uplink-Antworten stehen in den verlinkten Fachkapiteln.
{% endhint %}

## 0.1 Wichtige Befehle

* `GET STATUS (0x04)` — aktuellen Gerätestatus lesen
* `GET BATTERY VOLTAGE (0x05)` — Batteriespannung lesen
* `GET ERROR CODE (0x07)` — Fehlercode lesen
* `GET DEVICE TIME (0x08)` — lokale Gerätezeit lesen
* `SET DEVICE TIME (0x09)` — Gerätezeit manuell setzen
* `GET INPUT CLAMP STATE (0x11)` — Zustand der Anschlussklemmen lesen
* `SET INPUT CLAMP SENSOR TYPE (0x14)` — Sensortyp an den Anschlussklemmen setzen
* `GET ALL CONFIG (0x7C)` — vollständige Konfiguration auslesen
* `PERFORM FACTORY RESET (0x7D)` — Werkseinstellungen wiederherstellen
* `PERFORM SOFT RESET (0x7E)` — Software neu starten
* `GET VERSION (0x7F)` — Hardware-, Firmware- und Bootloader-Version lesen
* `GET TIME UNTIL NEXT REJOIN (0x77)` — verbleibende Zeit bis zum nächsten Rejoin lesen

## 0.2 Status und Diagnose

|                   Befehl                  |   ID   |              Zweck             |                                      Typische Payload                                     |
| :---------------------------------------: | :----: | :----------------------------: | :---------------------------------------------------------------------------------------: |
|           `GET STATUS INTERVAL`           | `0x00` |      Statusintervall lesen     |                                           `0x00`                                          |
|           `SET STATUS INTERVAL`           | `0x01` |     Statusintervall setzen     |                                      `0x01 01 (30s)`                                      |
| `GET STATUS PARAMETER TX ENABLE REGISTER` | `0x02` |  aktive Statusparameter lesen  |                                           `0x02`                                          |
| `SET STATUS PARAMETER TX ENABLE REGISTER` | `0x03` |  aktive Statusparameter setzen | `0x03 0xF0 (Batteriespannung, Zustand des Sabotage Kontakts und Zustand des Hallsensors)` |
|           `GET BATTERY VOLTAGE`           | `0x05` |     Batteriespannung lesen     |                                           `0x05`                                          |
|        `GET SABOTAGE CONTACT STATE`       | `0x06` |      Sabotagekontakt lesen     |                                           `0x06`                                          |
|              `GET ERROR CODE`             | `0x07` |        Fehlercode lesen        |                                           `0x07`                                          |
|          `GET HALL SENSOR STATE`          | `0x0E` |   internen Hall-Sensor lesen   |                                           `0x0E`                                          |
|          `GET INPUT CLAMP STATE`          | `0x11` | externe Anschlussklemmen lesen |                                           `0x11`                                          |

## 0.3 Zeit + Service + Netzwerk

|            Befehl            |   ID   |                   Zweck                  |                 Typische Payload                 |
| :--------------------------: | :----: | :--------------------------------------: | :----------------------------------------------: |
|       `GET DEVICE TIME`      | `0x08` |          lokale Gerätezeit lesen         |                      `0x08`                      |
|       `SET DEVICE TIME`      | `0x09` |         Gerätezeit manuell setzen        |    `0x09 01 81 05 1a (01.06.2026, 12:00 Uhr)`    |
|   `GET DEVICE TIME CONFIG`   | `0x0A` | Zeitsynchronisation und UTC-Offset lesen |                      `0x0A`                      |
|       `GET ALL CONFIG`       | `0x7C` |       komplette Konfiguration lesen      |                      `0x7C`                      |
|    `PERFORM FACTORY RESET`   | `0x7D` |          Werksreset durchführen          |                      `0xFD`                      |
|     `PERFORM SOFT RESET`     | `0x7E` |             Gerät neu starten            |                      `0xFE`                      |
|         `GET VERSION`        | `0x7F` |              Versionen lesen             |                      `0xFF`                      |
| `GET TIME UNTIL NEXT REJOIN` | `0x77` |          Rejoin-Countdown lesen          |                      `0x77`                      |
|        `GET DATA RATE`       | `0x78` |              Datenrate lesen             |                      `0x78`                      |
|        `SET DATA RATE`       | `0x79` |             Datenrate setzen             |                  `0x79 04 (DR3)`                 |
|     `SET REJOIN BEHAVIOR`    | `0x7B` |          Rejoin-Verhalten setzen         | `0x7B 00 18 (Zyklischer Rejoin alle 24 Stunden)` |
|     `GET REJOIN BEHAVIOR`    | `0xFA` |          Rejoin-Verhalten lesen          |                      `0xFA`                      |

## 0.4 Häufig verwendete Payloads

```
Status abrufen mit IR Bit                  0x84
Statusintervall 5 Min.                     0x01 09
Gerätezeit setzen (01.06.26, 12 Uhr)       0x09 00 61 05 1A
Auslesen der Fehlercodes                   0x07
Deaktivierung der Anschlusskleme           0x12 00
Konfiguration der Anschlussklemme
für einen Glasbruchsensor                  0x14 01
Setzen der Datenrate auf DR3               0x79 04
Rejoin alle 24 h                           0x7B 00 18
Auslesen der kompletten Konfiguration      0xFC
Auslesen der Version                       0xFF
```

### 0.5 Vertiefung

* [1. Allgemeines Kommunikationskonzept](/dnt-lw-wsci/kommunikationsprotokoll/1.-allgemeines-kommunikationskonzept.md)&#x20;
* [2. Gerätestatus](/dnt-lw-wsci/kommunikationsprotokoll/2.-geratestatus.md)
* [3. Gerätezeit](/dnt-lw-wsci/kommunikationsprotokoll/3.-geratezeit.md)
* [4. Sensoren und Anschlussklemmen](/dnt-lw-wsci/kommunikationsprotokoll/4.-sensoren-und-anschlussklemmen.md)
* [5. Konfiguration und Reset](/dnt-lw-wsci/kommunikationsprotokoll/5.-konfigurationsubersicht-und-reset.md)
* [6. Datenrate und Rejoin](/dnt-lw-wsci/kommunikationsprotokoll/6.-datenrate-und-rejoin.md)
* [8.Sonstige Befehle](/dnt-lw-wsci/kommunikationsprotokoll/8.sonstige-befehle.md)


---

# 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/0.-befehlsubersicht-und-command-cheat-sheet.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.
