ESPSomfy-RTS icon indicating copy to clipboard operation
ESPSomfy-RTS copied to clipboard

Frequent Disconnects

Open JeffSteinbok opened this issue 1 year ago • 10 comments

Hardware

ESP32

Firmware version

v2.4.7

Application version

v2.4.7

What happened? What did you expect to happen?

My device is continually dropping off the network and coming back: image

I've turned off roaming and saved, still doing it. Only time I've seen something like this on this particular network was one appliance (a washer) which was getting too much traffic and causing it to disconnect.

Is there any way to diagnose what may be going on here?

Also, oddly in Unifi, I don't see an IP address for it, even though it does have one.

How to reproduce it (step by step)

1. Turn on
2. Wait

Logs

Where can I find logs?

JeffSteinbok avatar Aug 09 '24 01:08 JeffSteinbok

Turn off ssdp discovery and mqtt if you have them on.

rstrouse avatar Aug 09 '24 01:08 rstrouse

MQTT is off. Publish Discovery was on. Turned it off.

Are there ways to get logs? Want to see if it's rebooting or what not.

JeffSteinbok avatar Aug 09 '24 02:08 JeffSteinbok

If you connect it to usb you can see the logs in the esphome web site.

rstrouse avatar Aug 09 '24 02:08 rstrouse

I went ahead and put the device on a smaller VLAN where I have less broadcast traffic. So far, more stable.

I would like to see if this is something in the firmware or ESP chip rather than network.

JeffSteinbok avatar Aug 09 '24 04:08 JeffSteinbok

If you connect it to usb you can see the logs in the esphome web site.

Do the logs survive reboots? Or is it just looking at the log output live?

JeffSteinbok avatar Aug 09 '24 04:08 JeffSteinbok

Looks like this maybe? I have two devices that seem to be impacted.

https://github.com/Aircoookie/WLED/issues/3398

JeffSteinbok avatar Aug 09 '24 04:08 JeffSteinbok

The logs are live and do not survive a reboot. What do you have that may be sending large numbers of UDP packets around on your network?

rstrouse avatar Aug 09 '24 14:08 rstrouse

Having same problem. ESP32 Wroom board + firmware 2.4.6

This project is great but unusable when it restarts all the time....

Update: I have changed the wifi connection from 2.4 network to 5 network. Will report back...

naftalih avatar Aug 11 '24 16:08 naftalih

@JeffSteinbok

Also, oddly in Unifi, I don't see an IP address for it, even though it does have one.

Have you assigned this as a static IP? Could you by chance have an IP conflict? Typically your best bet is to create IP reservations and let DHCP handle it. Also, is your router channel hopping. The ESP32 is not a 2x2 and will need to disconnect/reconnect on a channel change.

@naftalih - I have no less than 10 ESPSomfy RTS devices connected which include all of the supported chip series and they never disconnect with the latest employed Arduino libraries used in ESPSomfy RTS. Earlier libraries had issues connecting to Multi-AP systems in that it would connect to the first responder whether that was the best AP or not.

Start by disabling UPnP over SSDP, MQTT, and roaming if you have them enabled just to make sure there is not some other communication issue here. Another user was running some Bluetooth sensors that also interfered with their WiFi connection.

Update: I have changed the wifi connection from 2.4 network to 5 network. Will report back...

Unfortunately, you are limited to the 2.4Ghz band for ESP32 wifi for now.

rstrouse avatar Aug 11 '24 20:08 rstrouse

Disabling 'Broadcast uPnP over SSDP' seems to have sorted this problem out for me. Thanks all!

phillipbkemp avatar Dec 24 '24 23:12 phillipbkemp