> For the complete documentation index, see [llms.txt](https://docs.efento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.efento.io/nb-iot-loggers/configuration/device-settings/watchdog-supervision-period.md).

# Watchdog (supervision period)

## **Overview**

The **Server Supervision Period** is an automated watchdog and recovery mechanism implemented in Efento loggers to maintain unattended, high-reliability operation in cellular environments.

In field deployments, cellular modems can occasionally encounter network deadlocks, radio lockups, or stale base station handoff states where standard retry routines fail to restore connectivity. The Supervision Period acts as an autonomous safeguard: if the device fails to establish a confirmed communication exchange with the data server within a configured time limit, it automatically initiates a controlled system reboot and performs a fresh cellular network registration.

This self-healing procedure ensures that remote or hard-to-reach devices remain connected without requiring manual intervention or on-site service visits.

## **How it works?**

The logger tracks the total time elapsed since its last confirmed data transmission to the server. A recovery restart is not executed immediately when the supervision period reaches zero; instead, it provides an additional grace window equal to the device's configured transmission interval to allow the scheduled communication attempt to complete.

The total time window before an automated restart is triggered is calculated as:

```
Supervision Interval = supervision_period + transmission_interval
```

{% hint style="info" %}
Example

* **Supervision Period:** 48 hours (172,800 seconds)
* **Transmission Interval:** 1 hour (3,600 seconds)
* **Effective Window:** The logger will perform consecutive retry attempts and will only execute a recovery reboot after **49 hours** without any successful server communication.
  {% endhint %}

## **What counts as successful communication?** <a href="#what-counts-as-successful-communication" id="what-counts-as-successful-communication"></a>

The supervision timer evaluates only data-bearing transmissions sent to the data server (/m endpoint).

| Communication type                            | Resets supervision timer? | Explanation                                                                                                                                                                                                                                                       |
| --------------------------------------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Normal Measurement Upload (ACK received)      | Yes                       | Standard successful transmission of measurement data packets.                                                                                                                                                                                                     |
| Server Error Response (CoAP 4.00, 4.01, 5.xx) | Yes                       | Receiving an error response from the server confirms that the cellular radio link, APN routing, and internet path are operational. The issue resides on the server or authorization side (e.g., expired token), where a modem reboot would not solve the problem. |
| Device Information Message (/i endpoint)      | No                        | Standalone device information updates do not update the data transmission supervision status.                                                                                                                                                                     |
| No Response / Socket / Network Timeout        | No                        | Failure to reach the server leaves the supervision timer running.                                                                                                                                                                                                 |

## **Configurable parameters**

| Parameter              | Descritpion                                                                                                  | Range                 |
| ---------------------- | ------------------------------------------------------------------------------------------------------------ | --------------------- |
| **Supervision period** | Defines the period in which at least one successful communication must occur. **Default: 172800 (48 hours)** | 180 to 604800 seconds |

## **Configuration methods**

You can configure these settings in several ways:

* **Remotely from server** – see the [**Integrations** ](https://docs.efento.io/nb-iot-loggers/integrations/direct-data-integration.md)section for information on configuring the logger from your own server.
* **Factory preconfiguration** – on request, Efento can supply devices with selected settings already configured according to your requirements. See [**Factory preconfiguration**](https://docs.efento.io/nb-iot-loggers/configuration/factory-preconfiguration.md) for the list of parameters that can be configured before shipment.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.efento.io/nb-iot-loggers/configuration/device-settings/watchdog-supervision-period.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
