-
Notifications
You must be signed in to change notification settings - Fork 103
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
rpi4 buster bluetooth and wlan conflict #8
Comments
Cypress have been notified. |
Meanwhile i decided to use a workaround to hold blue* at 5.50-1.2~deb10u1 and run all other updates --> wlan is still working excellent 👍
|
Just a warning for all that want to hold " 5.50-1.2~deb10u1" |
My personal experience (hold only on rpi4 !!!):
|
I think there's an element of randomness in these results. I'm reasonably convinced that the most recent version of the 43455 firmware doesn't always play nicely with Bluetooth, but the results aren't consistent - I get laggy response from a BT keyboard with occasional connection loss on one boot, and great performance while streaming video over WiFi on the next.
(The Returning to the latest version is just |
@pelwell It looks like there are reports of the bluez package being a factor, not just the firmware. The changes we make are the 'Add avdtp_set_priority' and hciattach patches. Any chance they could be related? |
hciattach either downloads the firmware patch or it doesn't - it doesn't make any changes to it, so I don't believe it could be making a difference during normal use of Bluetooth. If the pure upstream version works as well then we could switch to using that. The priority setting code is possibly a factor, since it alters the scheduling between the BT and WiFi, designed to give preference to Bluetooth audio streaming. |
To diagnose the issue I've been rebuilding BlueZ 5.50 with and without the downstream patches, but it's been behaving itself - so I started again. A clean installation of the latest Buster image, fully upgraded, is streaming HD video while sending audio to a headset, while two keyboards are connected. So far there have been no hiccups. Hmmm... |
My experience downgrading the firmware to rpt3: Pi3-improoved Pi4-worsened:
|
It seems I have the issue on a 3b+ with a fresh Raspbian install. I have a bluetooth keyboard (Logitech K480) that I can pair properly, but it's unusable when the WiFi is active. I tried downgrading packages to |
If your OS is buster try 5.50-1.2~deb10u1 (3B+ and 4 use the same WL/BT-chip) |
With a downgrade to "5.50-1.2~deb10u1" my RPI4 can't connect to keyboard/mouse. Edit: Crossing my fingers for an update. Thank you. |
Connecting to a 2.4G AP I see the problem more reliably now. Cypress have also been able to reproduce the issue. |
Thank you for the workaround hint. But I noticed that the Pi4 has a limited ability to connect. |
Hi, I am sorry my bad English, I have a pi 4, I am having an issue, I have a speaker jbl go, jbl charge 3 and handsfree Huawei Am61, My devices work when I power off Wifi on the pi 4, but I power on wifi my devices star connect and desconnect by ifselt that happens when I am not listening to music, My pi 4 is full upgrade, can you help me with a solution for this problem. Regards, John |
I'm having this same issue with a cheap bluetooth keyboard (https://www.amazon.com/gp/product/B00X5P8BJO) and with Apple bluetooth keyboard. Fresh install of Raspbian buster image on rpi4 (dated 2/13/20). Keyboard works perfectly. Updates are run and keyboard stops working. Connectivity is perfect. Keyboard always connects to Pi and shows as connected. I do not have ability to switch between 2.4GHz and 5GHz on wifi as they are configured together on same SSID and many devices in the house still require 2.4GHz. However, I did disable wifi and the keyboards work perfectly. Problem is, next to my SSID it shows "5G" while connected. |
Cypress have responded with an easy patch to the "NVRAM" configuration file. I've pushed the updated file to this repo and we'll get a Raspbian package out as soon as possible, but the easiest way to fix it for yourself in the meantime is to run this command:
You can confirm that the patch has been applied successfully with:
Now reboot, and you should find it all works much better. |
Should I push out a new package with that one line added, or is there more to it than that? |
Yes please, there is nothing more to it than that. |
I see current RPi-Distro firmware file is at 7.45.202 rather than latest 7.45.206 Is that supposed to work with latest firmware files from Cypress: |
As I mentioned in the message associated with the commit, Cypress say this extra parameter is required for firmwares starting with 7.45.177. By using a default Cypress build you are missing out on some Pi-specific settings (and support from us), but adding this parameter might make a difference. |
Thanks Phil, it should be live within an hour. |
Awesome. |
firmware-brcm80211 1:20190114-1+rpt6 is now live. Thanks, @XECDesign. |
I can confirm it fixes the issue for me.
Thanks.
Le 17 avril 2020 18:23:18 GMT+02:00, Phil Elwell <[email protected]> a écrit :
…firmware-brcm80211 1:20190114-1+rpt6 is now live. Thanks, @XECDesign.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#8 (comment)
--
djib
|
I can also confirm that this issue is fixed after running updates. Thank you! |
With the brcm80211 fw-update to +rpt6: |
First of all hold upgrading bluetooth - see my second post from Mar 31. |
Hello @akicker I've placed the packages on hold as per your post on 31st March. I followed this with a full upgrade. However, the command
|
@marquesn dont worry |
I have a pair of Pi4s talking to each other via 5ghz wifi, one is running hostAPD. I also have bluetooth traffic (tethering to share internet, not music or a keyboard) on the Pi running hostAPD. Previously, I was running firmware-brcm80211 20190114-1+rpt4 and bluez 5.50-1+rpt1 and it worked well. I recently ran apt update & upgrade and noticed my wifi performance became very inconsistent. My synced rate would go up and down wildly, and my connection would often drop entirely. I tried rebuilding my cards from scratch with the new Raspberry Pi OS (32-bit) Lite image, and had the same problem. I went back to my old image, and eventually found if I held back bluez, everything would keep working OK. Around that time I found this git issue. bluez 5.50-1+rpt1 with firmware-brcm80211 20190114-1+rpt6 is working well for me. bluez 5.50-1.2~deb10u1 with firmware-brcm80211 20190114-1+rpt6 also seems OK. bluez 5.50-1.2~deb10u1+rpt1 with firmware-brcm80211 20190114-1+rpt6 (what you get if you run an apt update & upgrade) does not work. Note: I did not heavily test bluetooth range, other than making sure I could connect and it was usable for tethering. |
After some tests on my pi4 kernel 4.19.118 using firmware-brcm80211 20190114-1+rpt7 |
Just a side note. If I boot into Ubuntu 20.20 bluetooth works just fine. During scan I see all my devices and even devices of my neighbors. If I boot into 'buster' I can see only my MI Band 4 when I'm sitting close to Raspberry. In buster I have:
|
The latest bluez update rpt2 is better than rpt1 BUT |
Dear colleagues, Is there a definitive fix to the bluetooth disconnect problem? I've read through all the forum entries I can find now and tried a lot of the suggestions with no success. It seems like different things sort-of work for different people. I have a raspberry pi 4b with 4G RAM, running Buster, headless. I'm using a 2.4 Ghz WLAN. Here's a link to the description of the problem I posted on the raspberrypi/firmware page
I would really appreciate some insights into this issue. After reading through a large number of posts on a variety of fora, without finding a solution, I' starting to think this is a hardware design issue. This seems like a big deal, since headless users can't really get the value of the bt radio. Is the fastest way to get this to work to just buy a 5Ghz modem? -Mark |
Just to add a bit more information to this. It appears that I am getting a firmware loading error.
I have tried updating the firmware per @pelwell in this post: raspberrypi/firmware#1403 (comment) After making this firmware change, I can pair with BT devices and trust them, but I cannot connect to them. When I first pair with some devices, they connect for about a second, then disconnect. When I try to reconnect to them, it always looks like this. The devices work fine connecting to one another. It's unsurprising that this doesn't work, since there is obviously a firmware loading problem, but I'm surprised that it works this far... (I addedd all the x's to the MAC addresses)
Please let me know if you have any ideas how to resolve this. |
For one who don't want to read all comments:
I checked bluez version:
From the comment on this ticket, I understand that bluez version 5.50-1.2~deb10u1 can work, so I download it from here, then install it (bluez will be downgraded automatically):
And now, bluetooth and wifi can work together on my Pi. |
Thanks for this post! It kind of helped me, but only partly. The Hardware:
I do not have an exact setup from before when it was not working, but I was on stretch and on blue*-version 5.50 something I guess and kernel 4.19 something.
After reading this thread I updated to buster, so now my versions are:
In first place I was really happy because even though my pi was still connected via internal WIFI I could control my bluetooth devices! So while not using it as a radio station I guess this setup would work fine, but constant WIFI network AND Bluetooth still conflicts. My workaround: Using USB WIFI. Still sad since the hardware is already onboard and should be working... |
Hi everyone! great news! we finally have an official bugfix for CYW43455.
Just run:
then it should work again. May be a deeper review on different implementations should be done, but first signs from me are good. My problem of interference between bt and wifi working on 2.4GHz was fixed |
Great, that's working, did remove my hold on bluez (sudo apt-mark unhold bluez) updated all and everything is OK again :-) |
I'm going to close this issue then. |
I'm still having that problem on my Pi4 with the K380 I did try a fresh pairing of course. Many times over. |
That's strange - I'm using one now and it works fine. Which distribution are you using? |
I'm having the same problem:
After weeks without any problem using wifi only, I turned on bluetooth, paired a BT GPS and suddenly got connectivity issues over WiFi (2.4GHz). Disabling bluetooth gave me a perfectly working wifi again. These are from my dmesg:
|
With the update from 27.3. (updating bluetooth, ... to bluetooth (5.50-1.2~deb10u1)) raspbian buster on rpi4 bluetooth and wlan did work well (the first time on my rpi4) !!! 👍
Unfortunately updates from 30.3. to bluetooth (5.50-1.2~deb10u1+rpt1) and 11 other updates bluetooth and wlan conflicts again (BT off --> wlan ok, BT on --> very low wlan rx-rate). 👎
current using buster kernel 4.19.97 - Some more info see image below, wlan and BT improoved when (5.50-1.2~deb10u1) is in use !!!
The text was updated successfully, but these errors were encountered: