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

WifiNiNA cannot handle when the same SSID is broadcasted from multiple APs #200

Open
borianson opened this issue Dec 7, 2021 · 10 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@borianson
Copy link

We tried multiple MKR1010 boards with multiple different WifiNiNA FW revisions but could not establish a stable connection via wifi (or at the wast majority of the cases even connect). We have a grid of ~20 pcs of well working brand new Ubiquiti UniFi APs broadcasting the same SSID at our facility.

With ESP32 it is implemented to start connection with referencing the BSSID of the desired AP, but it not has been implemented with WifiNiNa. Theoretically the implemetation of that solution would solve the issue.

@per1234
Copy link
Contributor

per1234 commented Dec 7, 2021

Also reported at arduino/nina-fw#75

@Russell108
Copy link

I also have this issue and I guess anyone in a business environment using Access points
Ability to connect to a specific Access point where many access points share the same SSID
Currently, in Business hotel environment where the same SSID password is used across a set of access points

The Arduino MKR1010 and the Arduino IOT 33 do not connect to a sensible access point instead connect to one with a real signal.

Ideally, there would be. A function in the library to select the best access point by signal strength for a given SSID

@Russell108
Copy link

It woul eb great to know if this was being worked on. It seems no one is even assigned to it as yet

@borianson
Copy link
Author

It would be so nice if someone could resolve this issue. Unfortunately it is beyond my capabilities.

@Russell108
Copy link

I am wondering looking at the library
I think the Arduino talks to the wifinina module via SPI through, I guess functions from a library for the wifinina module.
I am going to see if I can get access to that library then it should be possible to create calls to that library in a similar way that the wifinina library does. access functions in that library might provide access to connecting to a specific AP via its MAC address.

I am thinking scan the available networks then get the mac address of the ap offering the best signal and then do the above.

@JAndrassy
Copy link
Contributor

@per1234
Copy link
Contributor

per1234 commented Nov 24, 2022

Thanks @JAndrassy. It seems to me that the current WIFI_FAST_SCAN behavior is beneficial under the most common conditions (multiple APs are present, but all have unique SSIDs). For this reason, I think the best solution would be to make it configurable, in which case the WiFiNINA library code will need to be changed along with the nina-fw code, as you pointed out:

the firmware and the WiFiNINA library have to change to support it.

This issue will be used to track the work needed in the library.

@Russell108
Copy link

I disagree most professional uses in business a share SSID over multiple access points is most common.
Maybe for a hobbyist at home what you say might be true but I really question your assumption for business users.

fast scan might save the hobbiest time but for a person on a shared SSID it makes the wifi un usable. I would say usability over saving a little time should take precedence.

How is the work going

@arduino-libraries arduino-libraries locked as too heated and limited conversation to collaborators Dec 16, 2022
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Feb 4, 2023
@arduino-libraries arduino-libraries unlocked this conversation Feb 7, 2023
@RandyPostma
Copy link

Hello, I've been experiencing the same problem. I have multiple access points with the same SSID and my Arduino MRK1010 doesn't select the best channel. My observation is that it seems to prefer Channel 1, or the lowest channel available. Since the WiFi.scanNetworks() functionality provides me all the information I need to identify the best AP, I've written code that scans the network, identifies the best AP to connect to and then, if WiFiNINA would support it, connect to a specific BSSID.

Would it be possible to update WiFiNINA to allow us to use the BSSID to identify which AP we want to connect to?

This would really help the users that have a mobile application in an environment that has numerous access points.

@J1mbo
Copy link

J1mbo commented Jul 14, 2023

I've just run in to this issue.

In my environment I have six Unifi APs (mixture of UAP-ACs and U6s) all broadcasting a 2.4GHz-only WPA2 SSID for 'simple' devices. The Uno WiFi Rev.2 consistently connects (and re-connects) to the most distant access point at -89dB and then of course loses connection periodically thereafter. The most distant AP is broadcasting on channel 1, but there is a closer AP also on channel 1 also broadcasting the same SSID, and a much closer AP broadcasting on another channel.

I should also note that an Arduino IOT33 seems not to be affected by this issue and has chosen the closest AP.

The Uno WiFi Rev.2 is running NINA firmware 1.4.8.

@arduino-libraries arduino-libraries deleted a comment from Russell108 Jul 14, 2023
@arduino-libraries arduino-libraries locked as too heated and limited conversation to collaborators Jul 14, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants