> 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-wth/kommunikationsprotokoll/11.-sonstige-befehle.md).

# 11. Sonstige Befehle

## 11.1 Befehl fehlgeschlagen

{% tabs %}
{% tab title="COMMAND FAILED" %}
Befehl-fehlgeschlagen-Meldung.

Das Gerät sendet diese Meldung, wenn ein oder mehrere Befehle fehlschlagen.

Ein Befehl schlägt fehl, wenn ein Feld außerhalb des Wertebereichs liegt oder die Länge des Frames falsch ist.

**Uplink**

|      Byte     | Bit(s) |          Value          |
| :-----------: | :----: | :---------------------: |
|       0       |    7   |           Res.          |
|       0       |   6:0  |   `0x36` (Command ID)   |
|       1       |   7:0  | `Number of Command IDs` |
|       2       |   7:0  |     `Command ID (1)`    |
|       n       |   7:0  |     `Command ID (n)`    |
|  {% endtab %} |        |                         |
| {% endtabs %} |        |                         |

## 11.2 Anzeigemodus

{% tabs %}
{% tab title="GET DISPLAY MODE" %}
Abfrage, welcher Anzeigemodus aktiv ist.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |    7   |         `IR`        |
|   0  |   6:0  | `0x37` (Command ID) |

**Uplink**

|     Byte     | Bit(s) |        Value        |
| :----------: | :----: | :-----------------: |
|       0      |    7   |         Res.        |
|       0      |   6:0  | `0x37` (Command ID) |
|       1      |   7:0  |  `ID_DISPLAY_MODE`  |
| {% endtab %} |        |                     |

{% tab title="SET DISPLAY MODE" %}
Konfiguration des Anzeigemodus.

**Beispiel**

```
0x38 01 = Temperatur und Luftfeuchte alternierend anzeigen
```

**Downlink**

|      Byte     | Bit(s) |        Value        |
| :-----------: | :----: | :-----------------: |
|       0       |    7   |         Res.        |
|       0       |   6:0  | `0x38` (Command ID) |
|       1       |   7:0  |  `ID_DISPLAY_MODE`  |
|  {% endtab %} |        |                     |
| {% endtabs %} |        |                     |

<details>

<summary>ID_DISPLAY_MODE</summary>

|   Eigenschaft  |                                                  Wert                                                 |
| :------------: | :---------------------------------------------------------------------------------------------------: |
|  Beschreibung  |                          Auswahl einer statischen oder alternierenden Anzeige                         |
|      Größe     |                                                 8 Bit                                                 |
|  Wertebereich  |                                                  0–1                                                  |
|  Standardwert  |                                                   0                                                   |
| Interpretation | <p><code>0 → nur Temperatur</code></p><p><code>1 → Temperatur und Luftfeuchte alternierend</code></p> |
|   Persistent   |                                                   Ja                                                  |
|     Zugriff    |                                                  r/w                                                  |

</details>

***

### 1.7.5 Geräteinformationen

{% hint style="info" %}
In Firmwareversionen < 1.2.0 wird die Co-Prozessor Firmware Version über den Befehl 0xF4 ausgelesen.

Für die Geräte Info kann der Befehl 0xFF verwendet werden.
{% endhint %}

{% tabs %}
{% tab title="GET COPRO FIRMWARE VERSION" %}
Abfrage der Firmware-Version des Display-Controllers.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |    7   |         `IR`        |
|   0  |   6:0  | `0x74` (Command ID) |

**Uplink**

|     Byte     | Bit(s) |         Value         |
| :----------: | :----: | :-------------------: |
|       0      |    7   |          Res.         |
|       0      |   6:0  |  `0x74` (Command ID)  |
|       1      |   7:0  |  `ID_VERSION_FW_MAIN` |
|       2      |   7:0  | `ID_VERSION_FW_SUB_1` |
|       3      |   7:0  | `ID_VERSION_FW_SUB_2` |
|       4      |   7:0  |  `ID_VERSION_BL_MAIN` |
|       5      |   7:0  | `ID_VERSION_BL_SUB_1` |
|       6      |   7:0  | `ID_VERSION_BL_SUB_2` |
| {% endtab %} |        |                       |

{% tab title="GET DEVICE INFO" %}
Liest Device Type sowie Hardware-, Firmware- und Bootloader-Version.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |    7   |         `IR`        |
|   0  |   6:0  | `0x7F` (Command ID) |

**Uplink**

|      Byte     | Bit(s) |           Value          |
| :-----------: | :----: | :----------------------: |
|       0       |    7   |           Res.           |
|       0       |   6:0  |    `0x7F` (Command ID)   |
|       1       |   7:0  |  `ID_DEVICE_TYPE[23:16]` |
|       2       |   7:0  |  `ID_DEVICE_TYPE[15:8]`  |
|       3       |   7:0  |   `ID_DEVICE_TYPE[7:0]`  |
|       4       |   7:0  |   `ID_VERSION_FW_MAIN`   |
|       5       |   7:0  |   `ID_VERSION_FW_SUB_1`  |
|       6       |   7:0  |   `ID_VERSION_FW_SUB_2`  |
|       7       |   7:0  |   `ID_VERSION_BL_MAIN`   |
|       8       |   7:0  |   `ID_VERSION_BL_SUB_1`  |
|       9       |   7:0  |   `ID_VERSION_BL_SUB_2`  |
|       10      |   7:0  | `ID_VERSION_HW_REVISION` |
|  {% endtab %} |        |                          |
| {% endtabs %} |        |                          |

<details>

<summary>ID_DEVICE_TYPE</summary>

|   Eigenschaft  |          Wert          |
| :------------: | :--------------------: |
|  Beschreibung  | Device Type des Geräts |
|      Größe     |         24 Bit         |
|  Wertebereich  |      0 - 16777215      |
|  Standardwert  |            -           |
| Interpretation |         `y = x`        |
|   Persistent   |           Ja           |
|     Zugriff    |            r           |

</details>

<details>

<summary>ID_VERSION_HW_REVISION</summary>

|   Eigenschaft  |             Wert             |
| :------------: | :--------------------------: |
|  Beschreibung  | Hardwarerevision des Gerätes |
|      Größe     |             8 Bit            |
|  Wertebereich  |            0 - 255           |
|  Standardwert  |               -              |
| Interpretation |            `y = x`           |
|   Persistent   |              Ja              |
|     Zugriff    |               r              |

</details>

<details>

<summary>ID_VERSION_FW_MAIN</summary>

|   Eigenschaft  |            Wert           |
| :------------: | :-----------------------: |
|  Beschreibung  | Hauptversion der Firmware |
|      Größe     |           8 Bit           |
|  Wertebereich  |          0 - 255          |
|  Standardwert  |             -             |
| Interpretation |          `y = x`          |
|   Persistent   |             Ja            |
|     Zugriff    |             r             |

</details>

<details>

<summary>ID_VERSION_FW_SUB_1</summary>

|   Eigenschaft  |             Wert            |
| :------------: | :-------------------------: |
|  Beschreibung  | Unterversion 1 der Firmware |
|      Größe     |            8 Bit            |
|  Wertebereich  |           0 - 255           |
|  Standardwert  |              -              |
| Interpretation |           `y = x`           |
|   Persistent   |              Ja             |
|     Zugriff    |              r              |

</details>

<details>

<summary>ID_VERSION_FW_SUB_2</summary>

|   Eigenschaft  |             Wert            |
| :------------: | :-------------------------: |
|  Beschreibung  | Unterversion 2 der Firmware |
|      Größe     |            8 Bit            |
|  Wertebereich  |           0 - 255           |
|  Standardwert  |              -              |
| Interpretation |           `y = x`           |
|   Persistent   |              Ja             |
|     Zugriff    |              r              |

</details>

<details>

<summary>ID_VERSION_BL_MAIN</summary>

|   Eigenschaft  |             Wert             |
| :------------: | :--------------------------: |
|  Beschreibung  | Hauptversion des Bootloaders |
|      Größe     |             8 Bit            |
|  Wertebereich  |            0 - 255           |
|  Standardwert  |               -              |
| Interpretation |            `y = x`           |
|   Persistent   |              Ja              |
|     Zugriff    |               r              |

</details>

<details>

<summary>ID_VERSION_BL_SUB_1</summary>

|   Eigenschaft  |              Wert              |
| :------------: | :----------------------------: |
|  Beschreibung  | Unterversion 1 des Bootloaders |
|      Größe     |              8 Bit             |
|  Wertebereich  |             0 - 255            |
|  Standardwert  |                -               |
| Interpretation |             `y = x`            |
|   Persistent   |               Ja               |
|     Zugriff    |                r               |

</details>

<details>

<summary>ID_VERSION_BL_SUB_2</summary>

|   Eigenschaft  |              Wert              |
| :------------: | :----------------------------: |
|  Beschreibung  | Unterversion 2 des Bootloaders |
|      Größe     |              8 Bit             |
|  Wertebereich  |             0 - 255            |
|  Standardwert  |                -               |
| Interpretation |             `y = x`            |
|   Persistent   |               Ja               |
|     Zugriff    |                r               |

</details>

<details>

<summary>ID_VERSION_L2_MAIN</summary>

|   Eigenschaft  |               Wert               |
| :------------: | :------------------------------: |
|  Beschreibung  | Hauptversion der LoRaMAC-Schicht |
|      Größe     |               8 Bit              |
|  Wertebereich  |              0 - 255             |
|  Standardwert  |                 -                |
| Interpretation |              `y = x`             |
|   Persistent   |                Ja                |
|     Zugriff    |                 r                |

</details>

<details>

<summary>ID_VERSION_L2_SUB_1</summary>

|   Eigenschaft  |                Wert                |
| :------------: | :--------------------------------: |
|  Beschreibung  | Unterversion 1 der LoRaMAC-Schicht |
|      Größe     |                8 Bit               |
|  Wertebereich  |               0 - 255              |
|  Standardwert  |                  -                 |
| Interpretation |               `y = x`              |
|   Persistent   |                 Ja                 |
|     Zugriff    |                  r                 |

</details>

<details>

<summary>ID_VERSION_L2_SUB_2</summary>

|   Eigenschaft  |                Wert                |
| :------------: | :--------------------------------: |
|  Beschreibung  | Unterversion 2 der LoRaMAC-Schicht |
|      Größe     |                8 Bit               |
|  Wertebereich  |               0 - 255              |
|  Standardwert  |                  -                 |
| Interpretation |               `y = x`              |
|   Persistent   |                 Ja                 |
|     Zugriff    |                  r                 |

</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-wth/kommunikationsprotokoll/11.-sonstige-befehle.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.
