-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Attempt to fix bluetooth communication problem on rpi3b #614
Attempt to fix bluetooth communication problem on rpi3b #614
Conversation
Hi @lucagiove, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
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.
da9f84c
to
d754140
Compare
Hi @lucagiove, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
I'm fine with this, it's just difficult because you were not able to test that and if we push that into next update, we could break all Bluetooth stuff |
Sure I don't want to break anything :) I'd like to test it also because I'm not sure whether I understood buildroot properly. Thanks |
I've been able to build and it's not working :( seems download doesn't work in PRE_PATCH_HOOK |
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.
RaspberryPi models (see home-assistant/operating-system#614)
Attempt to fix bluetooth communication problem on rpi3b.
I couldn't test this pull request because of #613
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 reduce 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:
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.