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

# 12. Sonstige Befehle

Dieser Abschnitt bündelt Befehle ohne eigene Fachkategorie.

## 12.1 Befehl fehlgeschlagen

{% tabs %}
{% tab title="COMMAND FAILED" %}
Meldung bei fehlgeschlagenen Befehlen.

<table><thead><tr><th width="133.9090576171875" align="center">Byte</th><th align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7</td><td align="center">Res.</td></tr><tr><td align="center">0</td><td align="center">6:0</td><td align="center"><code>0x36</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>Number of Command IDs</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>Command ID(1)</code></td></tr><tr><td align="center">N</td><td align="center">7:0</td><td align="center"><code>Command ID(n)</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

***

## 12.2 Verhalten der Systemtaste

{% tabs %}
{% tab title="SET BUTTON ACTION" %}
Mithilfe dieses Befehls kann jeder Befehl, der ohne Parameter auskommt (nur Command ID), durch einen einfachen oder doppelten Tastendruck ausgeführt werden.

**Beispiel**

```
370834h = Einfacher Tastendruck: GET DEVICE TIME
             Doppelter Tastendruck: PERFORM ADAPTION RUN
```

<table><thead><tr><th width="127.5455322265625" align="center">Byte</th><th width="159.6363525390625" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7</td><td align="center">Res.</td></tr><tr><td align="center">0</td><td align="center">6:0</td><td align="center"><code>0x37</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_BUTTON_ACTION_SINGLE_TAP</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>ID_BUTTON_ACTION_DOUBLE_TAP</code></td></tr></tbody></table>
{% endtab %}

{% tab title="GET BUTTON ACTION" %}
Abfrage der konfigurierten Tastenaktion.

**Downlink**

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

**Uplink**

<table><thead><tr><th width="150" align="center">Byte</th><th width="109.3636474609375" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7</td><td align="center">Res.</td></tr><tr><td align="center">0</td><td align="center">6:0</td><td align="center"><code>0x38</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_BUTTON_ACTION_SINGLE_TAP</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>ID_BUTTON_ACTION_DOUBLE_TAP</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_BUTTON_ACTION_SINGLE_TAP</summary>

|   Eigenschaft  |                                     Wert                                     |
| :------------: | :--------------------------------------------------------------------------: |
|  Beschreibung  | Command ID des Befehls, der bei einem einfachen Tastendruck ausgeführt wird. |
|      Größe     |                                     7 Bit                                    |
|  Wertebereich  |                                    0 - 127                                   |
|  Standardwert  |                                       4                                      |
| Interpretation |        <p><code>y = x</code></p><p><code>\[y] = Command ID</code></p>        |
|   Persistent   |                                      Ja                                      |
|     Zugriff    |                                      r/w                                     |

</details>

<details>

<summary>ID_BUTTON_ACTION_DOUBLE_TAP</summary>

|   Eigenschaft  |                                     Wert                                     |
| :------------: | :--------------------------------------------------------------------------: |
|  Beschreibung  | Command ID des Befehls, der bei einem doppelten Tastendruck ausgeführt wird. |
|      Größe     |                                     7 Bit                                    |
|  Wertebereich  |                                    0 - 127                                   |
|  Standardwert  |                                      126                                     |
| Interpretation |        <p><code>y = x</code></p><p><code>\[y] = Command ID</code></p>        |
|   Persistent   |                                      Ja                                      |
|     Zugriff    |                                      r/w                                     |

</details>

***

## 12.3 Abfrage der Versionen

{% tabs %}
{% tab title="GET VERSION" %}
Abfrage der Hardware-, Firmware-, Bootloader- und LoRaMAC-Version.

**Downlink**

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

**Uplink**

<table><thead><tr><th width="141.181884765625" align="center">Byte</th><th width="184.9090576171875" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7</td><td align="center">Res.</td></tr><tr><td align="center">0</td><td align="center">6:0</td><td align="center"><code>0x7F</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_HW_REVISION</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_FW_MAIN</code></td></tr><tr><td align="center">3</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_FW_SUB_1</code></td></tr><tr><td align="center">4</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_FW_SUB_2</code></td></tr><tr><td align="center">5</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_BL_MAIN</code></td></tr><tr><td align="center">6</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_BL_SUB_1</code></td></tr><tr><td align="center">7</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_BL_SUB_2</code></td></tr><tr><td align="center">8</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_L2_MAIN</code></td></tr><tr><td align="center">9</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_L2_SUB_1</code></td></tr><tr><td align="center">10</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_L2_SUB_2</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<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-etrv/kommunikationsprotokoll/12.-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.
