MQTT connection not stable when CPU eco mode is disabled

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
djm38fr
New user
Posts: 2
Joined: 24 Oct 2024, 19:01

MQTT connection not stable when CPU eco mode is disabled

#1 Post by djm38fr » 24 Oct 2024, 19:24

Hello,

I have an ESP8266 running version ESP_Easy_mega_20240822_normal_ESP8266_4M1M Aug 22 2024

I see it disconnecting often from my MQTT server

When CPU Eco Mode = False (disabled), MQTT connection is not stable and I lose a lot of packets when i PING it
When CPU Eco Mode = True (enabled), MQTT connection is very stable I don't lose any packets anymore when i PING it

Regards

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT connection not stable when CPU eco mode is disabled

#2 Post by TD-er » 24 Oct 2024, 21:46

So that's as described in the documentation...

What you can do, is try to enable gratuituous ARP, as described here: https://espeasy.readthedocs.io/en/lates ... xplanation

However there is little we can do here, as the "ECO mode" is simply increasing the DTIM time and may not always reply to ARP packets.
So every now and then your network switches and any other host in the network will 'forget' the MAC address of your node, so there is no way to route packets back to your node. (that's what Gratuituous ARP tries to mitigate)
Still an acknowledgement may also get lost, so your MQTT broker may not like it when the ESP is sending more bytes than announced and thus disconnect the client from the broker.

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT connection not stable when CPU eco mode is disabled

#3 Post by TD-er » 24 Oct 2024, 21:52

Ehh sorry, I think I need a cup of coffee... you apparently noticed the ECO mode does actually do the exact opposite of what is to be expected....

Let me think about it.... (and sorry for not reading good enough)

djm38fr
New user
Posts: 2
Joined: 24 Oct 2024, 19:01

Re: MQTT connection not stable when CPU eco mode is disabled

#4 Post by djm38fr » 26 Oct 2024, 08:27

Hi TD-er,

no pb, humans are cafein addict :)

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests