Failed to start Configure Bluetooth Modems connected by UART

ISSUES:
After installing latest openHABian 1.5 (fresh install using prebuilt SD image), Bluetooth is not working. During boot I get error “Failed to start Configure Bluetooth Modems connected by UART”, and hciuart.service logs can be seen below. Serial port settings are all unchecked in openhabian-config.

Same issue can be seen when installing openHAB via APT on top of Raspian Stretch Lite, but first with only Raspbian, BT is working fine, but after installing openHABian, errors are the same as with this pre-build SD image.

Any tips?

  • Platform information:

    • Hardware: Raspberry Pi 3 Model B Rev 1.2

    • OS: Raspbian GNU/Linux 10 (buster)

    • Java Runtime Environment:

      openjdk version "1.8.0_222"
      OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
      OpenJDK Client VM (Zulu8.40.0.178-CA-linux_aarch32hf) (build 25.222-b178, mixed mode,     Evaluation)
      
    • openHAB version: 2.4 and 2.5 M3

  • Logs

    [16:54:30] openhabian@openhab:~$ systemctl status hciuart.service
    hciuart.service - Configure Bluetooth Modems connected by UART
    Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2019-10-03 16:53:05 EEST; 1min 28s ago
    Process: 322 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE)
    
    Oct 03 16:53:00 openhab systemd[1]: Starting Configure Bluetooth Modems connected by UART...
    Oct 03 16:53:05 openhab btuart[322]: Can't set line discipline: Invalid argument
    Oct 03 16:53:05 openhab btuart[322]: Can't initialize device: Invalid argument
    Oct 03 16:53:05 openhab btuart[322]: bcm43xx_init
    Oct 03 16:53:05 openhab btuart[322]: Flash firmware /lib/firmware/brcm/BCM43430A1.hcd
    Oct 03 16:53:05 openhab btuart[322]: Set BDADDR UART: b8:27:eb:5c:01:e9
    Oct 03 16:53:05 openhab btuart[322]: Set Controller UART speed to 921600 bit/s
    Oct 03 16:53:05 openhab systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE
    Oct 03 16:53:05 openhab systemd[1]: hciuart.service: Failed with result 'exit-code'.
    Oct 03 16:53:05 openhab systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.

Anyone? Do I really need to get another RPi with plain Raspbian to use Bluetooth, and relay it to Openhab?

I’ve gone through all possible RPi & Bluetooth related forum posts on the internet, but haven’t been able to find any fix for this, making me believe it is something related to Openhab specifically.

Did You have and lucky finding out how to fix this? Im having the same problem and the crazy thing is that i had bluetooth working before but unfortunately broke that sd card.

These are my steps I marked down during fixing it, especially the 1. was something I run sometime later too after running updates. I did lots of troubleshooting so cannot pinpoint the exact steps to fix this.

Bluetooth

  1. bluetoothctl -v, must be 5.43 (5.50 is too new)
  2. https://github.com/openhab/openhab-addons/issues/5680#issuecomment-571989707
    a. But only starting from step “sudo apt purge bluez”
  3. https://www.raspberrypi.org/forums/viewtopic.php?t=223894#p1373126