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

bluetooth frame reassembly errors - RPi3B and others #26

Open
markferry opened this issue Jul 25, 2023 · 4 comments
Open

bluetooth frame reassembly errors - RPi3B and others #26

markferry opened this issue Jul 25, 2023 · 4 comments

Comments

@markferry
Copy link
Owner

Lower the hciattach baudrate.

@markferry
Copy link
Owner Author

markferry commented Jul 25, 2023

OSMC brcm43xx service calls /usr/bin/rpi-btuart:

#!/bin/bash

HCIATTACH=/usr/bin/hciattach
SERIAL=$(awk '/^Serial/{ print $3 }' /proc/cpuinfo)
B1=${SERIAL:10:2}
B2=${SERIAL:12:2}
B3=${SERIAL:14:2}
BDADDR=$(printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa)))

if [ "$(cat /proc/device-tree/aliases/uart0)" = "$(cat /proc/device-tree/aliases/serial1)" ] ; then
  if [ "$(wc -c /proc/device-tree/soc/gpio@7e200000/uart0_pins/brcm\,pins | cut -f 1 -d ' ')" = "16" ] ; then
    $HCIATTACH /dev/serial1 bcm43xx 3000000 flow - $BDADDR
  else
    $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR
  fi
else
  $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR
fi

@markferry
Copy link
Owner Author

markferry commented Jul 25, 2023

Testing with 460800

systemctl restart brcm43xx

@markferry
Copy link
Owner Author

Repro on study with some Kodi activity.

@markferry
Copy link
Owner Author

How to make this permanent?

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

1 participant