Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to firmware to force 802.11g (2.4ghz band) #78

Open
aureateflux opened this issue Mar 1, 2024 · 5 comments
Open

Add option to firmware to force 802.11g (2.4ghz band) #78

aureateflux opened this issue Mar 1, 2024 · 5 comments

Comments

@aureateflux
Copy link

aureateflux commented Mar 1, 2024

TLDR: If possible, add a compatibility option to force the ratgdo to use 2.4ghz band only (or force 802.11g) to resolve connection issues on some network configurations.

I was having intermittent connection issues with my new Ratgdo after setting it up with my network information. It took a long time to connect, but randomly would connect fairly quickly after a power cycle, only to randomly disconnect later.

After some digging, I found this thread that matched my experience.

It appears this is caused by the esp8266 having difficulty negotiating the proper band with the router/access point in cases where the router supports having the same SSID for both 2.4ghz and 5ghz networks. It keeps getting handed the 5ghz band instead of the 2.4ghz band, which the esp8266 doesn't support, leading to failure after failure to connect.

Someone offered a solution for the ESPhome firmware that allows you to edit a config file to force it to use 802.11g, which forces it to use the 2.4ghz band.

My ratgdo is attached using dry contact, so I am using the MQTT firmware, but I couldn't find a way to make a similar edit. I hit on the idea of using a wireless mac filter rule on the router to force the router to reject the ratgdo on the 5ghz bands. This works, and I've had solid up-time with it since.

Is it possible to add an option in the firmware configuration to force 802.11g on the Ratgdo or otherwise force it to use 2.4ghz in this network configuration? An on-device solution would be better than a cumbersome router/firewall rule. Not all routers have this feature, and not all users have control over their routers, so this would improve the user experience in a lot of situations.

@haffi78
Copy link

haffi78 commented Mar 3, 2024

I think this is not a problem, since this ESP8266 does not support 5Ghz and there for does not get any frames from 5ghz and cannot and will not try to connect to that band.
Its the client desision to connect to which ever wifi and roam and such. So even if the SSID has both enabled, Devices that do not support 5GHz will not see the 5ghz. If your having troubles, check signal strength, check other 2.4 Ghz that might cause interferance, check which speeds(Rates) your are supporting, Lower rates slow down your wifi if you have devices on them however they go further distance. I have mine on a Dual band , with out problems, I have a Cisco Wifi and the Access point is like 2 meters aways from the RatGDO.

@aureateflux
Copy link
Author

aureateflux commented Mar 3, 2024 via email

@haffi78
Copy link

haffi78 commented Mar 3, 2024

Sorry that just not how beacons works, they are only send per Radio for its band, i.e. 2.4 send just becond for 2.4ghz and not 5 ghz, a Simple read on RFC and 802.11 will show you that.

What ever your problems and others are its not related to 5GHZ band,
Forcing to use 802.11g is complete different then blocking 802.11n( N does not give you 5ghz unless its on that band which in this case its not ).
My RatGDO connects fine using 802.11n like I stated before.
You might want to look at BandSteering settings as that can confuse some clients depending on how its implimented, but in no case will a beacon for 5GHZ be send on 2.4ghz band.

The ESP8266 has a built in WiFi interface that supports 802.11 b/g/n 2.4 GHz networking. 5GHz frequencies are not supported.

This one for example.

https://www.engeniustech.com/wi-fi-beacon-frames-simplified/

https://en.m.wikipedia.org/wiki/IEEE_802.11#802.11n

https://www.7signal.com/news/blog/controlling-beacons-boosts-wi-fi-performance

@aureateflux
Copy link
Author

I'm sure you're correct, and I'm glad your RatGDO connects fine. I'll definitely look at my router's band steering settings.

But it doesn't change the fact that people have run into this issue with multiple RatGDOs and that the two workarounds I mentioned have worked with devices that are affected.

Instead of telling me how I'm wrong, why not focus on using your expertise to figure out what's actually happening? Maybe it would lead to a better solution than forcing the chip to use an older protocol. If there's nothing to be done, maybe something could be added to the readme to assist people in navigating the problem.

What's important is that it's addressed somehow, because as-is there are a lot of people running into it and just deciding RatGDO doesn't work.

@haffi78
Copy link

haffi78 commented Mar 4, 2024

Sorry if I am coming on to strong, just wanted to point this in the right directions, I would need more info to be able to help with debuging, but BandSteering could be and issue, thats when the APS send more beacons faster for the 5GHZ band, and sometime leave other stuff out of the beacon that causes trouble. Most of the time its something on the Access Points. But then sometime Access points dont have alot of settings depending on vendor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants