3rd Party Bluetooth Binding. Beta testers needed

The last stable. Installed from the openhabian config tool.

Obviously it is something to do with the hardware (NUC). I’ll need to see your logs. Can you please capture your logs for this?

  • remove all MiFlora devices
  • restart your OH
  • ssh to your karaf console
  • enable DEBUG logging level:
    • log:set DEBUG org.sputnikdev.bluetooth.manager.impl
  • add a miflora device
  • wait for 2-5 mins
  • capture logs from the beginning of the restart

Don’t forget to turn the logging off as it is very chatty:
log:set INFO org.sputnikdev.bluetooth.manager.impl

I can’t open karaf. Worng password. I think it is karaf. Isn’t it?
and ssh karaf@localhost -p8101

2018-04-20 01:59:41.565 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4

2018-04-20 01:59:41.566 [DEBUG] [oth.manager.impl.AdapterGovernorImpl] - Updating adapter governor: /68:EC:C5:2C:37:B4

2018-04-20 01:59:41.567 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Governor has been updated: /68:EC:C5:2C:37:B4

2018-04-20 01:59:41.567 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 3; Stale: 0

2018-04-20 01:59:41.568 [DEBUG] [anager.impl.CompletableFutureService] - Trying to complete futures: /68:EC:C5:2C:37:B4 : 0

2018-04-20 01:59:51.500 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 0 discovered devices

2018-04-20 01:59:51.501 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 0; Stale: 0

2018-04-20 01:59:51.512 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 0 discovered adapters

2018-04-20 01:59:51.521 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [tinyb] reported 1 discovered adapters

2018-04-20 01:59:51.569 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4

2018-04-20 01:59:51.570 [DEBUG] [oth.manager.impl.AdapterGovernorImpl] - Updating adapter governor: /68:EC:C5:2C:37:B4

2018-04-20 01:59:51.572 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Governor has been updated: /68:EC:C5:2C:37:B4

2018-04-20 01:59:51.574 [DEBUG] [anager.impl.CompletableFutureService] - Trying to complete futures: /68:EC:C5:2C:37:B4 : 0

2018-04-20 01:59:51.588 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [tinyb] reported 3 discovered devices

2018-04-20 01:59:51.589 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] tinyb://68:EC:C5:2C:37:B4/FF:AA:DE:0B:F6:40 [BB-F640] : 1

2018-04-20 01:59:51.592 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] tinyb://68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 [Flower care] : 1

2018-04-20 01:59:51.595 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] tinyb://68:EC:C5:2C:37:B4/D4:3F:78:F4:8F:71 [Gear S3 (17B8) LE] : 1

2018-04-20 01:59:51.599 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 3; Stale: 0

2018-04-20 01:59:53.784 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Creating a new governor: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.788 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Initializing governor: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.789 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Initializing combined device governor: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.790 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Creating a new governor: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.794 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Initializing governor: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.794 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.794 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.794 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Protocol is unknown. Trying to find factory amongst discovered adapters: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.795 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Matching adapter found amongst discovered adapters: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.797 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - A new native object has been acquired: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.797 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Initializing governor with the new native object: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.798 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Initializing device governor: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.798 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling RSSI notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.799 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling connection notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.800 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling services resolved notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.801 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling blocked notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.802 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling manufacturer data notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.803 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Enabling service data notification: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.804 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying manager listeners (governor ready): 0 : true

2018-04-20 01:59:53.804 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Governor has been updated: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.805 [DEBUG] [anager.impl.CompletableFutureService] - Trying to complete futures: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : 0

2018-04-20 01:59:53.806 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Registering a new delegate: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : 0

2018-04-20 01:59:53.807 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Initializing safe operations: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.807 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Setting blocked control: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : false

2018-04-20 01:59:53.808 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Setting connection control: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : false / false

2018-04-20 01:59:53.808 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting online: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : false / false

2018-04-20 01:59:53.811 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Initializing unsafe operations: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.811 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting ready: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : false / true

2018-04-20 01:59:53.812 [DEBUG] [anager.impl.CompletableFutureService] - Trying to complete futures: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : 0

2018-04-20 01:59:53.814 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Estimated distance: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : 3.1622776601683795

2018-04-20 01:59:53.815 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Calculating nearest delegate (current / new): null / /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.816 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting blocked: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : false / false

2018-04-20 01:59:53.817 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting connected: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : false / false

2018-04-20 01:59:53.819 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Initializing unsafe operations successfully completed: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.819 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Combined device governor initialization performed: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.820 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Setting blocked control: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : false

2018-04-20 01:59:53.823 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting connection control: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.823 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:53.824 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: null / /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.824 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Setting connection control: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : false / true

2018-04-20 01:59:53.825 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.825 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Connecting device: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:53.828 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Estimated distance: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : 3.1622776601683795

2018-04-20 01:59:56.703 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Estimated distance: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : 3.1622776601683795

2018-04-20 01:59:56.703 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Calculating nearest delegate (current / new): /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 / /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:58.805 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 01:59:58.821 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Checking if delegates are stale: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 / false / false

2018-04-20 01:59:58.823 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Updating connection target: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : true

2018-04-20 01:59:58.825 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Current target / new target: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 / /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:00.745 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Resetting governor. Descendants first: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:00.749 [DEBUG] [ooth.manager.impl.DeviceGovernorImpl] - Resetting device governor: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:00.750 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Delegate changed ready state: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2 : false

2018-04-20 02:00:00.750 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Trying to find object factory: tinyb://68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:00.750 [DEBUG] [ager.impl.CombinedDeviceGovernorImpl] - Setting ready: /XX:XX:XX:XX:XX:XX/C4:7C:8D:66:0A:C2 : true / false

2018-04-20 02:00:00.751 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying manager listeners (governor ready): 0 : false

2018-04-20 02:00:00.763 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Governor has been reset: /68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:01.503 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 0 discovered devices

2018-04-20 02:00:01.505 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Lost: 0; New: 0; Rediscovered: 0; Stale: 0

2018-04-20 02:00:01.523 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [tinyb] reported 1 discovered adapters

2018-04-20 02:00:01.523 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [bluegiga] reported 0 discovered adapters

2018-04-20 02:00:01.604 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Updating governor. Trying to acquire lock: /68:EC:C5:2C:37:B4

2018-04-20 02:00:01.604 [DEBUG] [oth.manager.impl.AdapterGovernorImpl] - Updating adapter governor: /68:EC:C5:2C:37:B4

2018-04-20 02:00:01.605 [DEBUG] [impl.AbstractBluetoothObjectGovernor] - Governor has been updated: /68:EC:C5:2C:37:B4

2018-04-20 02:00:01.607 [DEBUG] [anager.impl.CompletableFutureService] - Trying to complete futures: /68:EC:C5:2C:37:B4 : 0

2018-04-20 02:00:01.614 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Transport [tinyb] reported 2 discovered devices

2018-04-20 02:00:01.615 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Device has been lost: tinyb://68:EC:C5:2C:37:B4/C4:7C:8D:66:0A:C2

2018-04-20 02:00:01.621 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] tinyb://68:EC:C5:2C:37:B4/FF:AA:DE:0B:F6:40 [BB-F640] : 1

2018-04-20 02:00:01.622 [DEBUG] [th.manager.impl.BluetoothManagerImpl] - Notifying device discovery listeners (discovered): [Device] tinyb://68:EC:C5:2C:37:B4/D4:3F:78:F4:8F:71 [Gear S3 (17B8) LE] : 1
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-04-20 02:10:50 CEST; 7min ago
     Docs: man:bluetoothd(8)
 Main PID: 2938 (bluetoothd)
   Status: "Running"
    Tasks: 1
   Memory: 456.0K
      CPU: 1.612s
   CGroup: /system.slice/bluetooth.service
           └─2938 /usr/lib/bluetooth/bluetoothd

Apr 20 02:10:50 Hausserver bluetoothd[2938]: Error adding Link Loss service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Not enough free handles to register service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Not enough free handles to register service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Not enough free handles to register service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Current Time Service could not be registered
Apr 20 02:10:50 Hausserver bluetoothd[2938]: gatt-time-server: Input/output error (5)
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Not enough free handles to register service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Not enough free handles to register service
Apr 20 02:10:50 Hausserver bluetoothd[2938]: Sap driver initialization failed.
Apr 20 02:10:50 Hausserver bluetoothd[2938]: sap-server: Operation not permitted (1)

Hi @Master79,

From the logs I can see that you’ve enabled “Connection Control” channel for your MiFlora thing. Please do not do this. It is not recommended to connect to Xiaomi devices because Xiaomi devices use a proprietary authentication mechanism that is not implemented. Just leave the connection control disabled and you should start getting new channels. Let me know how it goes.

Connection Control will be set to on by simple mode. ??

Hm. Not sure honestly speaking, it should be off by default. Has it resolved the issue?

[03:00:05] openhab@Hausserver:~/bluez-5.47$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-04-20 02:58:00 CEST; 4min 19s ago
     Docs: man:bluetoothd(8)
 Main PID: 20283 (bluetoothd)
   Status: "Running"
    Tasks: 1
   Memory: 460.0K
      CPU: 848ms
   CGroup: /system.slice/bluetooth.service
           └─20283 /usr/lib/bluetooth/bluetoothd

Apr 20 03:00:55 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0031 for device C4:7C:8D:66:0A:C2
Apr 20 03:00:55 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x003a for device C4:7C:8D:66:0A:C2
Apr 20 03:01:14 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0010 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:14 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0023 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:14 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0031 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:14 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x003a for device C4:7C:8D:66:0A:C2
Apr 20 03:01:35 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0010 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:35 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0023 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:35 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x0031 for device C4:7C:8D:66:0A:C2
Apr 20 03:01:35 Hausserver bluetoothd[20283]: Unable to register GATT service with handle 0x003a for device C4:7C:8D:66:0A:C2

no i have only this message after reinstalling bluez 5.47

Right, I see. This is probably the reason. How did you install Bluez? What OS are you running?

Update: it might be something to do with Bluez permissions. Can you please post here contents of the /etc/dbus-1/system.d/bluetooth.conf?

your code goes here<!-- This configuration file specifies the required security policies
     for Bluetooth core daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.Agent1"/>
    <allow send_interface="org.bluez.MediaEndpoint1"/>
    <allow send_interface="org.bluez.MediaPlayer1"/>
    <allow send_interface="org.bluez.ThermometerWatcher1"/>
    <allow send_interface="org.bluez.AlertAgent1"/>
    <allow send_interface="org.bluez.Profile1"/>
    <allow send_interface="org.bluez.HeartRateWatcher1"/>
    <allow send_interface="org.bluez.CyclingSpeedWatcher1"/>
    <allow send_interface="org.bluez.GattCharacteristic1"/>
    <allow send_interface="org.bluez.GattDescriptor1"/>
    <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
    <allow send_interface="org.freedesktop.DBus.Properties"/>
  </policy>

  <!-- allow users of bluetooth group to communicate -->
  <policy group="bluetooth">
    <allow send_destination="org.bluez"/>
  </policy>

  <policy at_console="true">
    <allow send_destination="org.bluez"/>
  </policy>

 <!-- allow users of lp group (printing subsystem) to
       communicate with bluetoothd -->
  <policy group="lp">
   <allow send_destination="org.bluez"/>
  </policy>

  <policy user="openhab">
    <allow send_destination="org.bluez"/>
  </policy>

  <policy group="bluetooth">
    <allow send_destination="org.bluez"/>
  </policy>

  <policy context="default">
    <deny send_destination="org.bluez"/>
  </policy>

</busconfig>

It seems to me you are running an old version of Bluez. Can you please do point #7 from here:

Please post the output here.

[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluetooth/bluetoothd
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1

[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service

Yep, pls do this:

cd /usr/lib/bluetooth
./bluetoothd --version
[03:25:31] openhab@Hausserver:/usr/lib/bluetooth$ ./bluetoothd --version
5.37

Yep, that’s what it is. You are running an ancient version of Bluez. Just go through these steps to install a new one:

Or use your package manager (apt-get or whatever you have there) to update Bluez in your system.

Yes, i have installed it after these steps. But it doesn’t change the version number.

This means that Bluez ‘make’ script did not install it correctly. It seems to me it did not replace bluetoothd with a new one. You will have to find where the new version is installed and then update your /lib/systemd/system/bluetooth.service to point to the new Bluez.

I believe when you run sudo make install it prints where it is installing Blues, so take a note of it and then update /lib/systemd/system/bluetooth.service.

Your /lib/systemd/system/bluetooth.service should loo like that:

[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/libexec/bluetooth/bluetoothd
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1
ProtectHome=true
ProtectSystem=full

[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service

where ExecStart=/usr/libexec/bluetooth/bluetoothd should point to the new Bluez binary file.

[03:47:49] openhab@Hausserver:~/bluez-5.47$ sudo make install
make --no-print-directory install-am
 /bin/mkdir -p '/usr/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c client/bluetoothctl m                                                                                        onitor/btmon tools/rctest tools/l2test tools/l2ping tools/bccmd tools/bluemoon t                                                                                        ools/hex2hcd tools/mpris-proxy tools/btattach '/usr/bin'
libtool: install: /usr/bin/install -c client/bluetoothctl /usr/bin/bluetoothctl
libtool: install: /usr/bin/install -c monitor/btmon /usr/bin/btmon
libtool: install: /usr/bin/install -c tools/rctest /usr/bin/rctest
libtool: install: /usr/bin/install -c tools/l2test /usr/bin/l2test
libtool: install: /usr/bin/install -c tools/l2ping /usr/bin/l2ping
libtool: install: /usr/bin/install -c tools/bccmd /usr/bin/bccmd
libtool: install: /usr/bin/install -c tools/bluemoon /usr/bin/bluemoon
libtool: install: /usr/bin/install -c tools/hex2hcd /usr/bin/hex2hcd
libtool: install: /usr/bin/install -c tools/mpris-proxy /usr/bin/mpris-proxy
libtool: install: /usr/bin/install -c tools/btattach /usr/bin/btattach
 /bin/mkdir -p '/usr/libexec/bluetooth'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c src/bluetoothd obexd/                                                                                        src/obexd '/usr/libexec/bluetooth'
libtool: install: /usr/bin/install -c src/bluetoothd /usr/libexec/bluetooth/blue                                                                                        toothd
libtool: install: /usr/bin/install -c obexd/src/obexd /usr/libexec/bluetooth/obe                                                                                        xd
 /bin/mkdir -p '/usr/lib/cups/backend'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c profiles/cups/bluetoo                                                                                        th '/usr/lib/cups/backend'
libtool: install: /usr/bin/install -c profiles/cups/bluetooth /usr/lib/cups/back                                                                                        end/bluetooth
 /bin/mkdir -p '/etc/dbus-1/system.d'
 /usr/bin/install -c -m 644 src/bluetooth.conf '/etc/dbus-1/system.d'
 /bin/mkdir -p '/usr/share/dbus-1/services'
 /usr/bin/install -c -m 644 obexd/src/org.bluez.obex.service '/usr/share/dbus-1/                                                                                        services'
 /bin/mkdir -p '/usr/share/dbus-1/system-services'
 /usr/bin/install -c -m 644 src/org.bluez.service '/usr/share/dbus-1/system-serv                                                                                        ices'
 /bin/mkdir -p '/usr/share/man/man1'
 /usr/bin/install -c -m 644 tools/rctest.1 tools/l2ping.1 tools/bccmd.1 tools/bt                                                                                        attach.1 tools/hid2hci.1 '/usr/share/man/man1'
 /bin/mkdir -p '/usr/share/man/man8'
 /usr/bin/install -c -m 644 src/bluetoothd.8 '/usr/share/man/man8'
 /bin/mkdir -p '/lib/udev/rules.d'
 /usr/bin/install -c -m 644 tools/97-hid2hci.rules '/lib/udev/rules.d'
 /bin/mkdir -p '/lib/systemd/system'
 /usr/bin/install -c -m 644 src/bluetooth.service '/lib/systemd/system'
 /bin/mkdir -p '/usr/lib/systemd/user'
 /usr/bin/install -c -m 644 obexd/src/obex.service '/usr/lib/systemd/user'
 /bin/mkdir -p '/lib/udev'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c tools/hid2hci '/lib/u                                                                                        dev'
libtool: install: /usr/bin/install -c tools/hid2hci /lib/udev/hid2hci

Yep, it looks like it is trying to install it here /usr/libexec/bluetooth/bluetoothd
check if it is there.

If it is there, then set ExecStart to:
ExecStart=/usr/libexec/bluetooth/bluetoothd and restart the BT service or reboot your NUC.

sudo systemctl restart bluetooth
1 Like