> 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/2.-geratestatus.md).

# 2. Gerätestatus

## 2.1 Status Intervall

{% tabs %}
{% tab title="GET STATUS INTERVAL" %}
Fragt das Sendeintervall ab, in dem die zyklische Statusmeldung (`Get Status (0x04)`)&#x20;gesendet wird.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x00` (Command ID) |

**Uplink**

<table><thead><tr><th width="232" align="center">Byte</th><th width="213" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x00</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_STATUS_REPORT_INTERVAL</code></td></tr></tbody></table>
{% endtab %}

{% tab title="SET STATUS INTERVAL" %}
Konfiguriert des Intervall, in dem die zyklische Statusmeldung `Get Status (0x04)`&#x20;gesendet wird.

**Beispiel**

```
0x01 09 = 5 Min. Statusintervall
```

<table><thead><tr><th width="242" align="center">Byte</th><th width="213" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x01</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_STATUS_REPORT_INTERVAL</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_STATUS_REPORT_INTERVAL</summary>

|   Eigenschaft  |                                             Wert                                            |
| :------------: | :-----------------------------------------------------------------------------------------: |
|  Beschreibung  | Definiert den Zeitraum in Sekunden, in dem das Produkt eine zyklische Statusmeldung sendet. |
|      Größe     |                                            8 Bit                                            |
|  Wertebereich  |                                            0–255                                            |
|  Standardwert  |                                             240                                             |
| Interpretation |                                 `y = x * 360 + 30; [y] = s`                                 |

</details>

***

## 2.2 Statusparameter

{% tabs %}
{% tab title="GET STATUS PARAMETER TX ENABLE REGISTER" %}
Nach erfolgreicher Verbindung mit dem LoRaWAN-Netzwerk sendet das Produkt die\
Antwort auf diesen Befehl einmal automatisch. Das Register zeigt, ob der Sensor Status-in formationen z.B. die Batteriespannung sendet

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x02` (Command ID) |

**Uplink**

<table><thead><tr><th align="center">Byte</th><th width="196" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x02</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_STATUS_PARAM_TX_EN_REG</code></td></tr></tbody></table>
{% endtab %}

{% tab title="SET STATUS PARAMETER TX ENABLE REGISTER" %}
Setzt den Parameter ID\_STATUS\_PARAM\_TX\_EN\_REG. Das Register bestimmt, welche Variablen im Rahmen des zyklischen Status-Uplinks (0x04) gesendet werden.

**Beispiel**

```
0x03 F0 = Batteriespannung, Sabotagekontakt, Hall-Sensor und Anschlussklemmen aktiv
```

**Downlink**

<table><thead><tr><th align="center">Byte</th><th width="211" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x03</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_STATUS_PARAM_TX_EN_REG</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_STATUS_PARAM_TX_EN_REG</summary>

| Eigenschaft    |                                                                                                                                                 Wert                                                                                                                                                 |
| -------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Beschreibung   |                                                                                                                   Aktiviert oder deaktiviert Parameter im zyklischen Status-Uplink.                                                                                                                  |
| Größe          |                                                                                                                                                 8 Bit                                                                                                                                                |
| Wertebereich   |                                                                                                                                                 0–255                                                                                                                                                |
| Standardwert   |                                                                                                                                                 `240`                                                                                                                                                |
| Interpretation | <p><code>Bit 7</code> = <code>ID\_BATTERY\_VOLTAGE</code></p><p><code>Bit 6</code> = <code>ID\_SABOTAGE\_CONTACT\_STATE</code></p><p><code>Bit 5</code> = <code>ID\_HALL\_SENSOR\_STATE</code></p><p><code>Bit 4</code> = <code>ID\_INPUT\_CLAMP\_STATE</code></p><p><code>Bit 0:3</code> = Res.</p> |

</details>

***

## 2.3 Get Status

{% tabs %}
{% tab title="GET STATUS" %}
Fragt die Statusmeldung des Produkts ab und wird automatisch zyklisch vom Produkt gesendet. Dieser Frame wird nach erfolgreicher Initialisierung des Produkts automatisch periodisch gesendet. Den Inhalt des Frames können Sie über `ID_STATUS_PARAM_TX_EN_REG (0x03)` konfigurieren.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x04` (Command ID) |

**Uplink**

<table><thead><tr><th width="221" align="center">Byte</th><th width="145" align="center" valign="top">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center" valign="top">7:0</td><td align="center"><code>0x04</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center" valign="top">7:0</td><td align="center"><code>ID_STATUS_PARAM_TX_EN_REG</code></td></tr><tr><td align="center">2</td><td align="center" valign="top">7:0</td><td align="center"><code>ID_BATTERY_VOLTAGE</code></td></tr><tr><td align="center">3</td><td align="center" valign="top">7:0</td><td align="center"><code>ID_SABOTAGE_CONTACT_STATE</code></td></tr><tr><td align="center">4</td><td align="center" valign="top">7:0</td><td align="center"><code>ID_HALL_SENSOR_STATE</code></td></tr><tr><td align="center">5</td><td align="center" valign="top">7:0</td><td align="center"><code>ID_CLAMP_STATE</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_STATUS_PARAM_TX_EN_REG</summary>

| Eigenschaft    |                                                                                                                                                 Wert                                                                                                                                                 |
| -------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Beschreibung   |                                                                                                                   Aktiviert oder deaktiviert Parameter im zyklischen Status-Uplink.                                                                                                                  |
| Größe          |                                                                                                                                                 8 Bit                                                                                                                                                |
| Wertebereich   |                                                                                                                                                 0–255                                                                                                                                                |
| Standardwert   |                                                                                                                                                 `240`                                                                                                                                                |
| Interpretation | <p><code>Bit 7</code> = <code>ID\_BATTERY\_VOLTAGE</code></p><p><code>Bit 6</code> = <code>ID\_SABOTAGE\_CONTACT\_STATE</code></p><p><code>Bit 5</code> = <code>ID\_HALL\_SENSOR\_STATE</code></p><p><code>Bit 4</code> = <code>ID\_INPUT\_CLAMP\_STATE</code></p><p><code>Bit 0:3</code> = Res.</p> |

</details>

<details>

<summary>ID_BATTERY_VOLTAGE</summary>

<table><thead><tr><th align="center">Eigenschaft</th><th width="343.1875" align="center">Wert</th></tr></thead><tbody><tr><td align="center">Beschreibung</td><td align="center">Aktuelle Batteriespannung des Gerätes.</td></tr><tr><td align="center">Größe</td><td align="center">8 Bit</td></tr><tr><td align="center">Wertebereich</td><td align="center">0 - 255</td></tr><tr><td align="center">Standardwert</td><td align="center">-</td></tr><tr><td align="center">Interpretation</td><td align="center"><code>y = x * 10 + 1500</code> — <code>[y] = mV</code></td></tr><tr><td align="center">Persistent</td><td align="center">Nein</td></tr><tr><td align="center">Zugriff</td><td align="center">r</td></tr></tbody></table>

</details>

<details>

<summary>ID_SABOTAGE_CONTACT_STATE</summary>

| Eigenschaft    |                                                   Wert                                                  |
| -------------- | :-----------------------------------------------------------------------------------------------------: |
| Beschreibung   |                                      Zustand des Sabotage Kontakts                                      |
| Größe          |                                                  8 Bit                                                  |
| Wertebereich   |                                                   0–1                                                   |
| Standardwert   |                                                    1                                                    |
| Interpretation | <p><code>0</code> = Sabotagekontakt nicht ausgelöst</p><p><code>1</code>= Sabotagekontakt ausgelöst</p> |

</details>

<details>

<summary>ID_HALL_SENSOR_STATE</summary>

| Eigenschaft    |                                               Wert                                               |
| -------------- | :----------------------------------------------------------------------------------------------: |
| Beschreibung   |                                     Zustand des Hall Sensors                                     |
| Größe          |                                               8 Bit                                              |
| Wertebereich   |                                               0 - 1                                              |
| Standardwert   |                                                 0                                                |
| Interpretation | <p><code>0</code> = Hall Sensor nicht ausgelöst</p><p><code>1</code> = Hall Sensor ausgelöst</p> |

</details>

<details>

<summary>ID_CLAMP_STATE</summary>

| Eigenschaft    |                                                   Wert                                                  |
| -------------- | :-----------------------------------------------------------------------------------------------------: |
| Beschreibung   |                                        Zustand der Eingangsklemme                                       |
| Größe          |                                                  8 Bit                                                  |
| Wertebereich   |                                                   0–1                                                   |
| Standardwert   |                                                    0                                                    |
| Interpretation | <p><code>0</code> = Eingangsklemme nicht ausgelöst </p><p><code>1</code> = Eingangsklemme ausgelöst</p> |

</details>

***

## 2.4 Get Battery Voltage

{% tabs %}
{% tab title="GET BATTERY VOLTAGE" %}
Fragt die aktuelle Versorgungsspannung der Batterien ab.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x05` (Command ID) |

**Uplink**

|      Byte     | Bit(s) |         Value        |
| :-----------: | :----: | :------------------: |
|       0       |   7:0  |  `0x05` (Command ID) |
|       1       |   7:0  | `ID_BATTERY_VOLTAGE` |
|  {% endtab %} |        |                      |
| {% endtabs %} |        |                      |

<details>

<summary>ID_BATTERY_VOLTAGE</summary>

<table><thead><tr><th align="center">Eigenschaft</th><th width="343.1875" align="center">Wert</th></tr></thead><tbody><tr><td align="center">Beschreibung</td><td align="center">Aktuelle Batteriespannung des Gerätes.</td></tr><tr><td align="center">Größe</td><td align="center">8 Bit</td></tr><tr><td align="center">Wertebereich</td><td align="center">0 - 255</td></tr><tr><td align="center">Standardwert</td><td align="center">-</td></tr><tr><td align="center">Interpretation</td><td align="center"><code>y = x * 10 + 1500</code> — <code>[y] = mV</code></td></tr><tr><td align="center">Persistent</td><td align="center">Nein</td></tr><tr><td align="center">Zugriff</td><td align="center">r</td></tr></tbody></table>

</details>

***

## 2.5 Get Sabotage Contact State

{% tabs %}
{% tab title="GET SABOTAGE CONTACT STATE" %}

#### 1.5 Sabotagekontaktzustand

Fragt den Zustand des Sabotagekontakts ab: ausgelöst, unausgelöst oder deaktiviert

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x06` (Command ID) |

**Uplink**

<table><thead><tr><th align="center">Byte</th><th width="207" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x06</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_SABOTAGE_CONTACT_STATE</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_SABOTAGE_CONTACT_STATE</summary>

| Eigenschaft    |                                              Wert                                             |
| -------------- | :-------------------------------------------------------------------------------------------: |
| Beschreibung   |                                 Zustand des Sabotage Kontakts                                 |
| Größe          |                                             1 Bit                                             |
| Wertebereich   |                                              0–1                                              |
| Standardwert   |                                               1                                               |
| Interpretation | <p>0 = <code>Sabotage Contact idle</code></p><p>1= <code>Sabotag Contact triggered</code></p> |

</details>

## 2.6 Get Error Code

{% tabs %}
{% tab title="GET ERROR CODE" %}

#### 1.6 Fehlercode

Fehlercodes werden automatisch vom Produkt gesendet, sobald ein Fehler auftritt.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x07` (Command ID) |

**Uplink**

|      Byte     | Bit(s) |        Value        |
| :-----------: | :----: | :-----------------: |
|       0       |   7:0  | `0x07` (Command ID) |
|       1       |   7:0  |   `ID_ERROR_CODE`   |
|  {% endtab %} |        |                     |
| {% endtabs %} |        |                     |

<details>

<summary>ID_ERROR_CODE</summary>

| Eigenschaft    |          Wert         |
| -------------- | :-------------------: |
| Beschreibung   | Fehlercode des Geräts |
| Größe          |         8 Bit         |
| Wertebereich   |         0–255         |
| Standardwert   |           0           |
| Interpretation |   0 = `DEVICE_READY`  |

</details>


---

# 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/2.-geratestatus.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.
