Giter Club home page Giter Club logo

Comments (13)

rstrouse avatar rstrouse commented on June 9, 2024

Is this a mesh network with some method of beamforming or do you just have multiple APs with the same SSID? If it is the former this will be dynamic and the ESP32 will switch channels all on its own. Whichever radio that responds to the SSID request is the one that connects as this is typically up to the network not the client. I remember reading that there is something odd about any channel > 11 and the ESP32.

from espsomfy-rts.

KLelong avatar KLelong commented on June 9, 2024

I'm using Ubiquiti AP's, so meshing : yes. Beamforming, I don't know.
That oddity about channel 13 : I flashed 3 extra EPS32's. I have now 3 pieces with WROOM32(D) which show the problem. One has a WROOM32U (= external antenna) which never has a problem.
I'm going to make a test-application which only connects to wifi to see if anything changes.

from espsomfy-rts.

open1999 avatar open1999 commented on June 9, 2024

I have the same problem.
Multiple APs and even SSIDs with 802.11r Fast Transition enabled.

The only solution I found is to put the MAC address of the ESP32 in a blacklist on the APs

APs with openwrt

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 9, 2024

The weird part of all this is that the STA doesn't get to choose its AP even under 11r. It only gets to choose the SSID. As far as 11r goes I have yet to see anything definitive about whether ESP32 processes the negotiation properly or not. I don't know the entire life cycle of the renegotiation but I suspect the WiFi module would need to do some channel surfing.

from espsomfy-rts.

KLelong avatar KLelong commented on June 9, 2024

So I made a test-app. It scans and report the SSID's, just like SomfyRTS. Then it tries to connect to an SSID.
Yesterday evening, my "remote" AP was not visible (roller-shutters closed ?) and I had no problems with the two devices I tried. All connecting to channel 13.
But this morning, I had the problem again, with my software.
Just to try something I changed the channel of the remote AP to 1 and suddenly the problem was gone. Strange though, one device connects to channel 13, the other to channel 1 (so the remote AP).
I know there is some persistence of wifi-configurations, maybe that interferes ?
About choosing an SSID : there is a way to choose (I think), but I don't know how to do it with the Arduino libraries. See this. There you can select "scan_method" and "sort_method".

from espsomfy-rts.

open1999 avatar open1999 commented on June 9, 2024

In my case it connects it is the channel which has priority.
If there is a stronger signal for example on channel 11 and a much weaker signal on channel 6 it will always take 6 by default.

Why not change the channels on the APs?

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 9, 2024

I know there is some persistence of wifi-configurations, maybe that interferes ?

That was one of the first things I disabled.

from espsomfy-rts.

KLelong avatar KLelong commented on June 9, 2024

I know there is some persistence of wifi-configurations, maybe that interferes ?

What I mean is that certainly the ESP8266-libraries I use store WiFi information in persistent memory. If that includes BSSID, it maybe prefers that although there is an AP with a stronger signal. If you disabled that in ESPsomfy-RTS, then that is not what causes my problem.

Changing channel 13 to something else is not an option (interference).

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 9, 2024

Ok so I looked at the code reference for the unreleased v5.x of the IDF and interestingly there are some things that I could do on the current release to facilitate a better channel selection on the SSID. Please install the pre-release of v2.4.1 and let me know how the channel selection is working.

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 9, 2024

Please install the most current v2.4.1 release as I have added roaming where ESPSomfy RTS will dynamically detect the best connection and change it on the fly.

from espsomfy-rts.

open1999 avatar open1999 commented on June 9, 2024

Installed.
Select the SSID with the high dBm.

from espsomfy-rts.

KLelong avatar KLelong commented on June 9, 2024

Installed it, and it connects to channel 13, which is OK.
Very handy, that indication of the channel #.

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 9, 2024

Awesome I am going to close this one out. It is apparent that the ESP32 core was never designed to deal with this. The documentation is very vague and as it turned out it will hop around to get the best signal now. Weird that is not part of the ESP32 core.

from espsomfy-rts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.