rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
511 stars 34 forks source link

Frequent Disconnects #447

Open JeffSteinbok opened 1 month ago

JeffSteinbok commented 1 month ago

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?
rstrouse commented 1 month ago

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

JeffSteinbok commented 1 month ago

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.

rstrouse commented 1 month ago

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

JeffSteinbok commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

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

rstrouse commented 1 month ago

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?

naftalih commented 1 month ago

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...

rstrouse commented 1 month ago

@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.