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

# 8.Sonstige Befehle

## 8.1 Befehl fehlgeschlagen

{% tabs %}
{% tab title="COMMAND FAILED" %}
Wird gesendet, wenn ein Befehl außerhalb des Wertebereichs liegt oder die Frame-Länge falsch ist.

**Uplink**

|      Byte     | Bit(s) |          Value          |
| :-----------: | :----: | :---------------------: |
|       0       |   7: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 %} |        |                         |

***

## 8.2 Abfrage der Versionen

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

**Downlink**

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

**Uplink**

|      Byte     | Bit(s) |           Value          |
| :-----------: | :----: | :----------------------: |
|       0       |    7   |           Res.           |
|       0       |   6:0  |    `0xFF` (Command ID)   |
|       1       |   7:0  | `ID_VERSION_HW_REVISION` |
|       2       |   7:0  |   `ID_VERSION_FW_MAIN`   |
|       3       |   7:0  |   `ID_VERSION_FW_SUB_1`  |
|       4       |   7:0  |   `ID_VERSION_FW_SUB_2`  |
|       5       |   7:0  |   `ID_VERSION_BL_MAIN`   |
|       6       |   7:0  |   `ID_VERSION_BL_SUB_1`  |
|       7       |   7:0  |   `ID_VERSION_BL_SUB_2`  |
|       8       |   7:0  |   `ID_VERSION_L2_MAIN`   |
|       9       |   7:0  |   `ID_VERSION_L2_SUB_1`  |
|       10      |   7:0  |   `ID_VERSION_L2_SUB_2`  |
|  {% 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-wsci/kommunikationsprotokoll/8.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.
