> 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-c/kommunikationsprotokoll/12.-fuota.md).

# 12. FUOTA

{% hint style="info" %} <mark style="color:green;">Alle FUOTA Befehle sind erst ab Firmwareversion > 1.4.0 verwendbar</mark>
{% endhint %}

## 12.1 Auto Update Installation

{% tabs %}
{% tab title="GET AUTO UPDATE INSTALLATION" %}
Abfrage der automatischen Update Installations-Konfiguration

**Downlink**

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

**Uplink**

<table><thead><tr><th align="center">Byte</th><th width="159.272705078125" 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>0x70</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:1</td><td align="center">Res.</td></tr><tr><td align="center">1</td><td align="center">0</td><td align="center"><code>ID_AUTO_UPADATE_INSTALLATION_EN</code></td></tr></tbody></table>
{% endtab %}

{% tab title="SET AUTO UPDATE INSTALLATION" %}
Ein-/Ausschalten der automatischen Update Installation

**Beispiel**

```
0x71 00 = Automatische Update Installation deaktiviert
```

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

<details>

<summary>ID_AUTO_UPDATE_INSTALLATION_EN</summary>

|   Eigenschaft  |                                                                   Wert                                                                   |
| :------------: | :--------------------------------------------------------------------------------------------------------------------------------------: |
|  Beschreibung  |                           Aktiviert / Deaktiviert die automatische Installation eines heruntergeladenen Updates                          |
|      Größe     |                                                                   1 Bit                                                                  |
|  Wertebereich  |                                                                   0 - 1                                                                  |
|  Standardwert  |                                                                     1                                                                    |
| Interpretation | <p><code>0</code> → Automatische Update Installation deaktiviert  </p><p><code>1</code> → Automatische Update Installation aktiviert</p> |
|   Persistent   |                                                                    Ja                                                                    |
|     Zugriff    |                                                                    r/w                                                                   |

</details>

***

## 12.2 Install Pending Update / Get Pending Update Info

{% tabs %}
{% tab title="INSTALL PENDING UPDATE" %}
Sofortige Installation eines empfangenen Updates

**Downlink**

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

{% endtab %}

{% tab title="GET PENDING UPDATE INFO" %}
Auslesen der Update Informationen

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

**Uplink**

<table><thead><tr><th width="181.7999267578125" align="center">Byte</th><th width="159.272705078125" 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>0x73</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_UPDATE_IMAGE_TYPE</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_UPDATE_IMAGE_SUB_MAIN</code></td></tr><tr><td align="center">3</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_UPDATE_IMAGE_SUB_1</code></td></tr><tr><td align="center">4</td><td align="center">7:0</td><td align="center"><code>ID_VERSION_UPDATE_IMAGE_SUB_2</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_UPTATE_IMAGE_TYPE</summary>

|   Eigenschaft  |                                                                           Wert                                                                           |
| :------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------: |
|  Beschreibung  |                                                       Updatetyp der heruntergeladenen Update-Datei                                                       |
|      Größe     |                                                                           8 Bit                                                                          |
|  Wertebereich  |                                                                           0 - 2                                                                          |
|  Standardwert  |                                                                             0                                                                            |
| Interpretation | <p><code>0</code> → UPDATE\_IMAGE\_NOT\_VALID</p><p><code>1</code> → UPDATE\_IMAGE\_APPLICATION            <code>2</code> →UPDATE\_IMAGE\_BOOTLOADER</p> |
|   Persistent   |                                                                            Ja                                                                            |
|     Zugriff    |                                                                             r                                                                            |

</details>

<details>

<summary>ID_VERSION_UPDATE_IMAGE_MAIN</summary>

|   Eigenschaft  |              Wert             |
| :------------: | :---------------------------: |
|  Beschreibung  | Hauptversion der Update-Datei |
|      Größe     |             8 Bit             |
|  Wertebereich  |            0 - 255            |
|  Standardwert  |               0               |
| Interpretation | Hauptversion der Update-Datei |
|   Persistent   |               Ja              |
|     Zugriff    |               r               |

</details>

<details>

<summary>ID_VERSION_UPDATE_IMAGE_SUB_1</summary>

|   Eigenschaft  |               Wert              |
| :------------: | :-----------------------------: |
|  Beschreibung  | Unterversion 1 der Update-Datei |
|      Größe     |              8 Bit              |
|  Wertebereich  |             0 - 255             |
|  Standardwert  |                0                |
| Interpretation | Unterversion 1 der Update Datei |
|   Persistent   |                Ja               |
|     Zugriff    |                r                |

</details>

<details>

<summary>ID_VERSION_UPDATE_IMAGE_SUB_2</summary>

|   Eigenschaft  |               Wert              |
| :------------: | :-----------------------------: |
|  Beschreibung  | Unterversion 2 der Update-Datei |
|      Größe     |              8 Bit              |
|  Wertebereich  |             0 - 255             |
|  Standardwert  |                0                |
| Interpretation | Unterversion 2 der Update Datei |
|   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-c/kommunikationsprotokoll/12.-fuota.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.
