> 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/6.-datenrate-und-rejoin.md).

# 6. Datenrate und Rejoin

## 6.1 Datenrate

{% tabs %}
{% tab title="Get Data Rate" %}
Liest die eingestellte Datenrate aus.

**Downlink**

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

**Uplink**

|     Byte     | Bit(s) |        Value        |
| :----------: | :----: | :-----------------: |
|       0      |   7:0  | `0xF8` (Command ID) |
|       1      |   7:0  |    `ID_DATA_RATE`   |
| {% endtab %} |        |                     |

{% tab title="Set Data Rate" %}
Setzt die Datenrate.

**Beispiel**

```
0xF9 04 = Datenrate DR3
```

**Downlink**

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

<details>

<summary>ID_DATA_RATE</summary>

|   Eigenschaft  |                                                       Wert                                                      |
| :------------: | :-------------------------------------------------------------------------------------------------------------: |
|  Beschreibung  |                                         Einstellung der LoRaWAN Daterate                                        |
|      Größe     |                                                      4 Bit                                                      |
|  Wertebereich  |                                                       0–6                                                       |
|  Standardwert  |                                                        0                                                        |
| Interpretation | <p><code>0</code> → <code>adaptive Datenrate aktiv</code></p><p><code>1 - 6</code> → <code>y = x - 1</code></p> |

</details>

***

## 6.2 Rejoin

{% tabs %}
{% tab title="GET TIME UNTIL NEXT REJOIN" %}
Fragt die verbleibende Zeit bis zum nächsten Rejoin-Versuch ab.

**Downlink**

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

**Uplink**

<table><thead><tr><th width="146" align="center">Byte</th><th width="179" 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>0xF7</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:5</td><td align="center">Res.</td></tr><tr><td align="center">1</td><td align="center">4:0</td><td align="center"><code>ID_REMAINING_TIME_UNTIL_REJOIN[20:16]</code></td></tr><tr><td align="center">2</td><td align="center">7:0</td><td align="center"><code>ID_REMAINING_TIME_UNTIL_REJOIN[15:8]</code></td></tr><tr><td align="center">3</td><td align="center">7:0</td><td align="center"><code>ID_REMAINING_TIME_UNTIL_REJOIN[7:0]</code></td></tr></tbody></table>
{% endtab %}

{% tab title="Get Rejoin Behavior" %}
Liest die Rejoin-Konfiguration aus.

**Downlink**

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

**Uplink**

|     Byte     | Bit(s) |            Value           |
| :----------: | :----: | :------------------------: |
|       0      |   7:0  |     `0xFA` (Command ID)    |
|       1      |    7   |    `ID_SINGLE_REJOIN_EN`   |
|       1      |   6:0  | `ID_REJOIN_INTERVAL[14:8]` |
|       2      |   7:0  |  `ID_REJOIN_INTERVAL[7:0]` |
| {% endtab %} |        |                            |

{% tab title="Set Rejoin Behavior" %}
Setzt das Intervall und die Art der Verbindungsversuche.

**Beispiel**

```
0xFB 00 18 = Rejoin alle 24 h
```

**Downlink**

|      Byte     | Bit(s) |            Value           |
| :-----------: | :----: | :------------------------: |
|       0       |   7:0  |     `0xFB` (Command ID)    |
|       1       |    7   |    `ID_SINGLE_REJOIN_EN`   |
|       1       |   6:0  | `ID_REJOIN_INTERVAL[14:8]` |
|       2       |   7:0  |  `ID_REJOIN_INTERVAL[7:0]` |
|  {% endtab %} |        |                            |
| {% endtabs %} |        |                            |

<details>

<summary>ID_REMAINING_TIME_UNTIL_REJOIN</summary>

|   Eigenschaft  |                                     Wert                                     |
| :------------: | :--------------------------------------------------------------------------: |
|  Beschreibung  | Minuten bis zum nächsten Rejoin. Ist der Wert 0, ist kein Rejoin ausstehend. |
|      Größe     |                                    21 Bit                                    |
|  Wertebereich  |                                  0 - 196608                                  |
|  Standardwert  |                                       0                                      |
| Interpretation |                             `y = x` — `[y] = min`                            |

</details>

<details>

<summary>ID_SINGLE_REJOIN_EN</summary>

|   Eigenschaft  |                                         Wert                                         |
| :------------: | :----------------------------------------------------------------------------------: |
|  Beschreibung  |                      Aktiviert Single Rejoin oder Cyclic Rejoin                      |
|      Größe     |                                         1 Bit                                        |
|  Wertebereich  |                                         0 - 1                                        |
|  Standardwert  |                                           ß                                          |
| Interpretation | <p><code>0</code> = einfaches Joining</p><p><code>1</code> = zyklisches Joininig</p> |

</details>

<details>

<summary>ID_REJOIN_INTEVAL</summary>

|   Eigenschaft  |                   Wert                   |
| :------------: | :--------------------------------------: |
|  Beschreibung  | Intervall für Rejoin Versuche in Stunden |
|      Größe     |                  15 Bit                  |
|  Wertebereich  |                  0–32768                 |
|  Standardwert  |                     0                    |
| Interpretation |                 `[h] = x`                |

</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/6.-datenrate-und-rejoin.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.
