> For the complete documentation index, see [llms.txt](https://docs.yobiiq.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yobiiq.com/welcome/user-manual-iq-wmr/lorawan/lorawan-communication/payloads/downlinks.md).

# Downlinks

## Restart Device <a href="#id-1eda7896-759c-476b-9e8e-698ec6b7d7b9" id="id-1eda7896-759c-476b-9e8e-698ec6b7d7b9"></a>

The device supports downlink commands to restart the device, the application port is 50 by default.

| Channel | Type         | Description                                                     |
| ------- | ------------ | --------------------------------------------------------------- |
| ff      | 0a (Reboot)  | <p>1 Byte, Uint8<br>01 => Reboot the device<br></p>             |
| ff      | 0b (Restart) | <p>1 Byte, Uint8</p><p>01 => Restart the LoRaWAN Interface.</p> |

Example

To restart the LoRaWAN interface you send the following HEX payload over fPort 50.

```
ff0b01
// ff -> channel -> ff
// 0b -> type -> Restart LoRaWAN Interface
// 01 -> action -> Restart
```

## Device Parameter Reading

The device supports downlink commands to read its readable parameters, the application port is **100** by default.

<table><thead><tr><th width="120.33333333333331">Channel</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>FF</td><td>CC (Read Parameter)</td><td>Maximum of 10 parameter types<br>(only readable parameters)</td></tr></tbody></table>

Example

To read the model, serial number and battery percentage you send the following HEX payload over fPort 100.

```
xxxxxxxx
// xx
// xx
// xx
```

## Periodic Transmissions

To configure the periodic uplinks by the device you can send a downlink to fPort 1.

{% hint style="info" %}
If confirmed mode is off, the device will send a package 1 time; if confirmed mode is on, the device will resend a package maximum of 3 times if it does not get an acknowledgement from the network.
{% endhint %}

<table><thead><tr><th width="120.33333333333331">Channel</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>01</td><td>0x10</td><td>Sampling Interval Channel 1, in seconds</td></tr><tr><td></td><td>0x11</td><td>Transmission Interval Channel 1, in seconds</td></tr><tr><td></td><td>0x12</td><td>Transmission Treshold Channel 1, in seconds</td></tr><tr><td></td><td>0x0F</td><td>Include internal sensors<br>0x00 = disabled<br>0x01 = enabled</td></tr></tbody></table>

Example

To configure the device to sample the consumption every 5 minutes, transmit every 4 hours with a treshold of 10 without including internal sensors you send the following HEX payload over fPort 100.

```
xxxxxxxx
// xx
// xx
// xx
```
