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

[Request] Show result of WIFI scan in web ui or at least in serial console #2288

Closed
ceggers01 opened this issue Sep 18, 2024 · 6 comments
Closed
Labels
enhancement New feature or request

Comments

@ceggers01
Copy link

Is your feature request related to a problem? Please describe.

There are repeated issues with the 2.4 GHz WIFI of the AVM Fritz!Box 7590 [1]. As a result, the OpenDTU cannot connect to the WIFI anymore while other devices (mobiles phones, laptops) are working fine. For the user it can be quite difficult to make a proper diagnosis (#2281).

[1] https://www.borncity.com/blog/2024/05/30/nachlese-ausfall-des-2-4-ghz-wlan-an-der-fritzbox-7590-nach-ca-5-jahren/

Describe the solution you'd like

I suggest showing the result of the WIFI scan (I assume there is such in scan in OpenDTU) in the web ui (SSID, RSSI) or at least in the serial console. Additionally the serial console log should show some more useful information.

Current console output:

WiFi disconnected
Try reconnecting
Network lost connection

Suggested output:

WiFi disconnected (<reason>)
...

Where "reason" could be something like "AP not found", "invalid PSK", "DHCP failed", ...

Describe alternatives you've considered

Any kind of extra information in case of a WIFI connection failure would be welcome.

Additional context

No response

@ceggers01 ceggers01 added the enhancement New feature or request label Sep 18, 2024
@tbnobody
Copy link
Owner

I assume there is such in scan in OpenDTU

Nope, there is no active scan as every scan interrupts the active wifi connection as all channels have to be cycled to scan for SSIDs

@ceggers01
Copy link
Author

I assume there is such in scan in OpenDTU

Nope, there is no active scan as every scan interrupts the active wifi connection as all channels have to be cycled to scan for SSIDs

So there is also no WIFI scan before attempting to connect to the network?

Is there any information available in case the WIFI connection cannot be established?

@tbnobody
Copy link
Owner

tbnobody commented Sep 18, 2024

So there is also no WIFI scan before attempting to connect to the network?

Correct. No need to scan for network SSIDs if the target SSID is already known.

Is there any information available in case the WIFI connection cannot be established?

Yes. As you already wrote above, it shows the errors in the console. (Thats the information the SDK provides)

@stefan123t
Copy link

stefan123t commented Sep 18, 2024

@ceggers01 thanks for the hint on the failing MP1477 DCDC-converter chips on 5 year old Fritz!Box 7590 models.
I will look closely at mine in an instance 👀 😨

Regarding your question on a more detailled WiFi disconnect reason, we have been discussing this in conjunction with WLAN Roaming and Mesh Steering as defined in WiFi 802.11k/r/v Standards somewhere in this thread #2202 (comment) on WiFi issues.

@tbnobody
Copy link
Owner

Closing this issue as a "wifi scan" is not done when connecting to a wifi network and the disconnect reason is already implemented.

@tbnobody tbnobody closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants