RPi-Distro / pi-bluetooth

Loads BCM43430A1 firmware on boot
42 stars 34 forks source link

Fixes RPI-Distro/pi-bluetooth#18 - UART bluetooth & USB bluetooth conflict #19

Closed camm73 closed 3 years ago

camm73 commented 3 years ago

When more than one bluetooth interface is desired and a user connects a USB bluetooth dongle to the Raspberry Pi, the onboard bluetooth interface will fail to be configured after the first reboot and every boot after that. This is due to the btuart script making the erronious assumption that the on-board bluetooth will be configured via UART prior to any USB bluetooth interfaces and thus recieve the interface number: hci0. Currently the btuart script checks whether hci0 is present and exits the script if it exists, without confirming whether it is indeed the onboard chip.

To fix this, the MAC addresses of the available interfaces are compared to the known MAC prefixes of the Raspberry Pi Foundation and if any matches are found, the btuart script exits. Otherwise, the script proceeds and properly configures the onboard bluetooth interface.

pelwell commented 3 years ago

I did test the script with an external BT dongle, but I must have been lucky/unlucky. Thanks for the PR.

camm73 commented 3 years ago

No problem. Glad to help.