Hi all,
I have a problem where my device gets an Offline notification for 1-5 minutes at random times (e.g., 2-3 times per day).
The setup is the following:
- issue happening in my power-saving mode implemented by using power management with automated light-sleep and WIFI_PS_MAX_MODEM (listen interval set to 100). Main task runs every 10s, ULP each 500us for ADC sampling.
- confirmed that the ESP is not losing wifi connection when offline notification occurs, nor getting reset, or anything.
- everything is working great in this power-saving mode implemented, including MQTT messages during light sleep and WIFI_PS_MAX_MODEM (100 listen interval), they are handled every 10-20 seconds, no complaints about performance.
- sending only 1 rainmaker MQTT update every 5 minutes (~288 per day). I found that sending each notification every 1 minute reduces the number of offline notifications to 1 per day.
- using Rainmaker MQTT Alive interval of 600
- I have tried different values and combinations (e.g., mqtt alive intervals to 30 mins, etc), but the result is the same
Offline Notif:
Rainmaker config:
Versions:
- Node ID 1051DBDD8610
- IOS rainmaker app 3.4.0
- rmaker_common 1.4.12
- esp_rainmaker 1.6.1
- esp idf 5.5 rc1 (also happened on 5.4 as well)
- ESP32 S2 MINI 2 custom board
Does someone have any clue why this is happening, or can they check the status of the Node ID?
Random Device Offline notification
Re: Random Device Offline notification
When you say "- confirmed that the ESP is not losing wifi connection when offline notification occurs, nor getting reset, or anything.", is it based on the user experience or from actual serial terminal logs? Is there any difference depending on enabling/disabling power save and/or changing the keep alive interval? In cloud logs, we just see "Connection Lost" as disconnect reason.
Re: Random Device Offline notification
Thank you for your answers.
I have a wifi reconnect implementation with serial information, and there is nothing written when the offline notification happens. Although I am handling the SAR power domain for ADC separately, to achieved a lower power consumption, and that is affecting the WIFI in some corner cases (wifi thinks is still connected but is not).
Using wifi power saving MIN mode instead of MAX solves this problem, since it is keeping the wifi active always.
What it means "Connection Lost" in this context. The MQTT Ping is not sent, or any param update, in the rainmaker alive time interval?
I can add some more serial logs and solve this if the wifi connection is the problem
I have a wifi reconnect implementation with serial information, and there is nothing written when the offline notification happens. Although I am handling the SAR power domain for ADC separately, to achieved a lower power consumption, and that is affecting the WIFI in some corner cases (wifi thinks is still connected but is not).
Using wifi power saving MIN mode instead of MAX solves this problem, since it is keeping the wifi active always.
What it means "Connection Lost" in this context. The MQTT Ping is not sent, or any param update, in the rainmaker alive time interval?
I can add some more serial logs and solve this if the wifi connection is the problem
Who is online
Users browsing this forum: No registered users and 1 guest
