[solved]Ping timeout's, but no reconnects

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
valbuz99
Normal user
Posts: 28
Joined: 08 Jan 2019, 21:16

[solved]Ping timeout's, but no reconnects

#1 Post by valbuz99 » 26 May 2020, 12:57

hi together.

i have some problems with a wemos D1 mini and espeasy.
setting the wifi with fix ip and force b/g (RSSI: -85db)

when i ping the device 3 of 10 pings are NOK.
on the espeasy side there are no reconnects. so some times my mqtt connection fails...

is there another way to check what's happen here?

thanks
pat
esp.PNG
esp.PNG (24.68 KiB) Viewed 6530 times
Last edited by valbuz99 on 27 May 2020, 15:00, edited 1 time in total.

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

Re: Ping timeout's, but no reconnects

#2 Post by TD-er » 26 May 2020, 13:22

Disconnect the device and try to ping it.
Maybe there is another device on the network using the same IP?

valbuz99
Normal user
Posts: 28
Joined: 08 Jan 2019, 21:16

Re: Ping timeout's, but no reconnects

#3 Post by valbuz99 » 26 May 2020, 13:44

No, it's not a ip adress problem. :(

BTW: The power is a dc-power supply.

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

Re: Ping timeout's, but no reconnects

#4 Post by TD-er » 26 May 2020, 15:41

The RSSI of -85 can be a bit tricky sometimes. (on some nodes, no idea why some work fine with weak wifi signals and some constantly disconnect)
Can you try to rotate the node to see if the RSSI improves to something like -75 or better?
If that's possible, test to see if it may respond better to pings.

Also have a look at the timing stats to see if there are things taking long time to process. (stats are reset every time you reload that page)
Maybe if there is some blocking code that constantly takes > 100 msec to run, then that may also affect WiFi connectivity.

valbuz99
Normal user
Posts: 28
Joined: 08 Jan 2019, 21:16

Re: Ping timeout's, but no reconnects

#5 Post by valbuz99 » 26 May 2020, 21:56

So...now the RSSI i have about -60db and the pings are OK! :D
(the router near the esp was a mesh repeater, now i configure it as a AP)

But sometimes i have retries from mqtt server (Message 37979 deleted after 11 retries) and don't know why..
perhaps you can see some errors in my timing stats.
in the att i send 3 screenshots.

thanks a lot

pat
Attachments
esp1.JPG
esp1.JPG (255.25 KiB) Viewed 6492 times
esp2.JPG
esp2.JPG (208.74 KiB) Viewed 6492 times
esp3.JPG
esp3.JPG (94.89 KiB) Viewed 6492 times

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

Re: Ping timeout's, but no reconnects

#6 Post by TD-er » 26 May 2020, 22:44

The timing stats look good, so there's not the problem with your MQTT server retries.

Since the controllers have lots and lots of parameters, I advice you to read about them first: https://espeasy.readthedocs.io/en/lates ... parameters
And maybe you should have a look at the timeout settings and/or minimum time between messages.

For example if your MQTT broker is not in the local lan, or it is running on a not so powerful computer, then you may want to increase the timeout.
100 msec is good for local network, but with these kind of issues, you may want to set the timeout a bit higher.

Also I guess the default of 10 retries is also a bit silly.
If one or two times fail, the rest will also fail, when sending to a MQTT broker.

valbuz99
Normal user
Posts: 28
Joined: 08 Jan 2019, 21:16

Re: Ping timeout's, but no reconnects

#7 Post by valbuz99 » 27 May 2020, 14:59

It works now! I think it was the bad RSSI for alle the leaks :(

Thanks alot for help here!

pat

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 16 guests