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

WiFi Connect and bluetooth do not work together #271

Open
vvkhazan opened this issue Feb 22, 2019 · 5 comments
Open

WiFi Connect and bluetooth do not work together #271

vvkhazan opened this issue Feb 22, 2019 · 5 comments

Comments

@vvkhazan
Copy link

On balenaFins and similar devices, wifi and bluetooth are on the same chip. There is a known issue where using bluetooth (scanning for devices, pairing devices, etc.) will break wifi:

raspberrypi/linux#1444
https://askubuntu.com/questions/1060094/bluetooth-audio-interfering-with-wifi

I believe this is only relevant for 2.4GHz wifi networks since bluetooth is also broadcast on that frequency. 5Ghz networks seem to work okay.

The access portal that WiFi Connect broadcasts is 2.4GHz. If bluetooth scans are happening when the access portal is up, it will not work properly.

Possible solution: add a command line option that allows the AP to be broadcast at 5GHz.

@majorz
Copy link
Collaborator

majorz commented Feb 23, 2019

I was not aware of the existence of this kind of problem up until now. We were able to reproduce it indeed with a simple Bluetooth discovery in a loop at the same time the AP is running.

It should be possible to extend WiFi Connect to support running the AP in the 5GHz spectrum from what I can tell from the NetworkManager's documentation.

@majorz
Copy link
Collaborator

majorz commented Feb 27, 2019

We did more testing on this and indeed RPi 3 B and 3 B+ are also affected by this.

We have to investigate further the issue on both the RPi models and balenaFin.

We will also investigate and implement dual-band AP support plus adding configurable options for choosing specific band.

@vvkhazan
Copy link
Author

It's likely going to be a problem with any model that has WiFI and bluetooth on the same chip. Note that this also extends to connectivity in general -- if you're connected to a 2.4GHz WiFi network and doing bluetooth scans, the internet connectivity will likely be spotty and the scans will not be as accurate.

We've managed to solve this problem by using a USB bluetooth dongle and scanning using that instead of the built-in bluetooth chip.

@majorz
Copy link
Collaborator

majorz commented Feb 27, 2019

Right, I would imagine there could be potential issues when sharing between WiFi and BT. Adding additional BT dongle is a nice idea.

@rosswesleyporter
Copy link

Customer also asked about this in https://jel.ly.fish/sales-thread-1-0-0-front-cnv-cq12znx

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

3 participants