Skip to content

org.sputnikdev.bluetooth.manager.NotReadyException: Could not power adapter #10

Open
@vkolotov

Description

@vkolotov

@Simsal:

I tried installing your binding, getting following errors:

2018-01-09 21:21:08.565 [WARN ] [ace.internal.BindingExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth.transport.bluegiga [239]
      Unresolved requirement: Import-Package: org.sputnikdev.bluetooth

    2018-01-09 21:21:10.341 [WARN ] [ace.internal.BindingExtensionHandler] - Installed bundle, but failed to start it: Could not resolve module: org.sputnikdev.org.eclipse.smarthome.binding.bluetooth.transport.tinyb [240]
      Unresolved requirement: Import-Package: org.sputnikdev.bluetooth

    2018-01-09 21:21:30.395 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "DFU Control Point" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:30.425 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "DFU Packet" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:30.965 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Bond Management Control Point" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Conditional]) write ([Conditional]).
    2018-01-09 21:21:31.117 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "CGM Measurement" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C3]) write ([C3, C1, C2]).
    2018-01-09 21:21:31.136 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "CGM Session Run Time" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C1]) write ([C1]).
    2018-01-09 21:21:31.155 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "CGM Session Start Time" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C1]) write ([C1]).
    2018-01-09 21:21:31.195 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "CGM Specific Ops Control Point" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C1]) write ([C1]).
    2018-01-09 21:21:31.213 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "CGM Status" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C1]) write ([C1]).
    2018-01-09 21:21:31.302 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Cycling Power Control Point" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional, C1, C2]) write ([Optional, C1, C2]).
    2018-01-09 21:21:31.381 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Cycling Power Measurement" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C3, C4, C5, Optional, C1, C2]) write ([C3, C4, C5, Optional, C1, C2]).
    2018-01-09 21:21:31.416 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Cycling Power Vector" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional, C1, C2]) write ([Optional, C1, C2]).
    2018-01-09 21:21:31.535 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Descriptor Value Changed" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.333 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "LN Control Point" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional, C1, C2]) write ([Optional, C1, C2]).
    2018-01-09 21:21:32.427 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Location and Speed Characteristic" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional, C1]) write ([Optional, C1]).
    2018-01-09 21:21:32.582 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Navigation" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional]) write ([Optional]).
    2018-01-09 21:21:32.612 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Object Action Control Point" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.626 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Object Changed" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.681 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Object List Control Point" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.693 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Object List Filter" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.721 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Object Properties" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.762 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "OTS Feature" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:32.919 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "Position Quality" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([Optional]) write ([Optional]).
    2018-01-09 21:21:33.127 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "SC Control Point" is not valid neither for read nor for write operation due to unfulfilled requirements: read ([C3, C1, C2]) write ([C3, C1, C2]).
    2018-01-09 21:21:33.266 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "TDS Control Point" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:33.570 [WARN ] [pec.BluetoothGattSpecificationReader] - Characteristic "User Control Point" does not have either Value or Fields tags, therefore reading the such characteristic will not be possible.
    2018-01-09 21:21:37.052 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'bluetooth:adapter:B827EB9DF87C' to inbox.
    2018-01-09 21:22:07.907 [WARN ] [.core.thing.binding.BaseThingHandler] - BaseThingHandler.initialize() will be removed soon, ThingStatus can be set manually via updateStatus(ThingStatus.ONLINE)
    2018-01-09 21:22:08.039 [WARN ] [impl.AbstractBluetoothObjectGovernor] - Could not update governor state.
    org.sputnikdev.bluetooth.manager.NotReadyException: Could not power adapter
            at org.sputnikdev.bluetooth.manager.impl.AdapterGovernorImpl.updatePowered(AdapterGovernorImpl.java:218) ~[?:?]
            at org.sputnikdev.bluetooth.manager.impl.AdapterGovernorImpl.update(AdapterGovernorImpl.java:65) ~[?:?]
            at org.sputnikdev.bluetooth.manager.impl.AdapterGovernorImpl.update(AdapterGovernorImpl.java:42) ~[?:?]
            at org.sputnikdev.bluetooth.manager.impl.AbstractBluetoothObjectGovernor.update(AbstractBluetoothObjectGovernor.java:160) ~[?:?]
            at org.sputnikdev.bluetooth.manager.impl.AbstractBluetoothObjectGovernor.init(AbstractBluetoothObjectGovernor.java:150) ~[?:?]
at org.sputnikdev.bluetooth.manager.impl.BluetoothManagerImpl.lambda$null$4(BluetoothManagerImpl.java:236) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Tue 2018-01-09 21:19:58 CET; 4min 19s ago
     Docs: man:bluetoothd(8)
 Main PID: 6856 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─6856 /usr/libexec/bluetooth/bluetoothd

Jan 09 21:19:58 openHABianPi bluetoothd[6856]: Bluetooth daemon 5.47
Jan 09 21:19:58 openHABianPi systemd[1]: Started Bluetooth service.
Jan 09 21:19:58 openHABianPi bluetoothd[6856]: Starting SDP server
Jan 09 21:19:58 openHABianPi bluetoothd[6856]: Bluetooth management interface 1.14 initialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions