-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix bluetooth communication problem on rpi3b
This problem is referenced in many different issues, some of them: Bluetooth: hci0: Frame reassembly failed (-84) raspberrypi/firmware#1150 Error communicating with local bluetooth adapter (RPi3) home-assistant/core#30147 Xiaomi BLE Temperature and Humidity sensor no longer working after update from 0.95.4 to .096.5 home-assistant/core#25704 Xiaomi BLE Temperature and Humidity sensor home-assistant/core#24313 (comment) Solution seemed to reeduce the boud rate of the serial connection to BT on rpi3b where flow control is missing. The patch to the original btuart file is to reduce the baudrate only for rpi3b models where flow control is missing: - $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR + $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR I'm not a buildroot expert but the best way seemed to move the upstream btuart download in a PRE_PATCH_HOOK so that standard buildroot way of patching can be applied.
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
buildroot-external/package/bluetooth-bcm43xx/0001-btuart-reduced-baud-rate-rpi3b.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Bluetooth: hci0: Frame reassembly failed (-84) | ||
https://github.com/raspberrypi/firmware/issues/1150 | ||
|
||
Signed-off-by: Luca Giovenzana <[email protected]> | ||
|
||
--- btuart.orig 2020-03-25 03:05:24.491176583 +0100 | ||
+++ btuart 2020-03-25 03:05:43.603107833 +0100 | ||
@@ -19,7 +19,7 @@ if [ "$uart0" = "$serial1" ] ; then | ||
if [ "$uart0_pins" = "16" ] ; then | ||
$HCIATTACH /dev/serial1 bcm43xx 3000000 flow - $BDADDR | ||
else | ||
- $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR | ||
+ $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR | ||
fi | ||
else | ||
$HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters