NEWS
UNSOLVED ble adapter keine Verbindung mehr
-
Hallo,
Ich bin auf eine neue Platform (Intel NUC, Debian 10) umgezogen und (zu meinem Erstaunen) lief der BLE Adapter auf Anhieb!
Heute habe ich "iobroker fix" gemacht. Jetzt kann der Adapter nicht mehr Zugreifen und connect is auf false.
Natürlich habe ich "sudo setcap cap_net_raw+eip $(eval readlink -fwhich node
)" gemacht.Hat jemand einen Tip?
-
@Marty56 Logfile vom Start des Adapters bitte.
-
völlig unauffällig.
ble.0 2020-05-17 14:31:42.142 info (15594) monitored services: fe95 ble.0 2020-05-17 14:31:42.140 info (15594) enabled plugins: mi-flora, _default ble.0 2020-05-17 14:31:42.138 info (15594) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default ble.0 2020-05-17 14:31:42.051 info (15594) starting. Version 0.11.6 in /opt/iobroker/node_modules/iobroker.ble, node: v12.16.3, js-controller: 3.1.4 host.nuc 2020-05-17 14:31:40.006 info instance system.adapter.ble.0 started with pid 15594 host.nuc 2020-05-17 14:31:39.949 info "system.adapter.ble.0" enabled host.nuc 2020-05-17 14:31:37.076 info instance system.adapter.ble.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) ble.0 2020-05-17 14:31:36.540 info (14797) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason ble.0 2020-05-17 14:31:36.538 info (14797) terminating host.nuc 2020-05-17 14:31:36.534 info stopInstance system.adapter.ble.0 send kill signal ble.0 2020-05-17 14:31:36.535 info (14797) Got terminate signal TERMINATE_YOURSELF host.nuc 2020-05-17 14:31:36.530 info stopInstance system.adapter.ble.0 (force=false, process=true) host.nuc 2020-05-17 14:31:36.524 info "system.adapter.ble.0" disabled
-
nochmal mit debug option:
ble.0 2020-05-17 14:33:33.112 debug (15616) system.adapter.admin.0: logging true ble.0 2020-05-17 14:33:29.676 info (15616) monitored services: fe95 ble.0 2020-05-17 14:33:29.673 info (15616) enabled plugins: mi-flora, _default ble.0 2020-05-17 14:33:29.671 info (15616) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default ble.0 2020-05-17 14:33:29.586 info (15616) starting. Version 0.11.6 in /opt/iobroker/node_modules/iobroker.ble, node: v12.16.3, js-controller: 3.1.4 ble.0 2020-05-17 14:33:28.624 debug (15616) statesDB connected ble.0 2020-05-17 14:33:28.623 debug (15616) States connected to redis: 127.0.0.1:6379 ble.0 2020-05-17 14:33:28.614 debug (15616) States create System PubSub Client ble.0 2020-05-17 14:33:28.612 debug (15616) States create User PubSub Client ble.0 2020-05-17 14:33:28.605 debug (15616) Redis States: Use Redis connection: 127.0.0.1:6379 ble.0 2020-05-17 14:33:28.602 debug (15616) objectDB connected ble.0 2020-05-17 14:33:28.594 debug (15616) Objects connected to redis: 127.0.0.1:9001 ble.0 2020-05-17 14:33:28.580 debug (15616) Objects client initialize lua scripts ble.0 2020-05-17 14:33:28.579 debug (15616) Objects create User PubSub Client ble.0 2020-05-17 14:33:28.578 debug (15616) Objects create System PubSub Client ble.0 2020-05-17 14:33:28.574 debug (15616) Objects client ready ... initialize now ble.0 2020-05-17 14:33:28.539 debug (15616) Redis Objects: Use Redis connection: 127.0.0.1:9001 host.nuc 2020-05-17 14:33:27.773 info instance system.adapter.ble.0 started with pid 15616 host.nuc 2020-05-17 14:33:25.240 info instance system.adapter.ble.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) ble.0 2020-05-17 14:33:24.711 info (15594) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason ble.0 2020-05-17 14:33:24.710 info (15594) terminating host.nuc 2020-05-17 14:33:24.708 info stopInstance system.adapter.ble.0 send kill signal ble.0 2020-05-17 14:33:24.707 info (15594) Got terminate signal TERMINATE_YOURSELF host.nuc 2020-05-17 14:33:24.698 info stopInstance system.adapter.ble.0 (force=false, process=true) ble.0 2020-05-17 14:31:42.142 info (15594) monitored services: fe95 ble.0 2020-05-17 14:31:42.140 info (15594) enabled plugins: mi-flora, _default ble.0 2020-05-17 14:31:42.138 info (15594) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default ble.0 2020-05-17 14:31:42.051 info (15594) starting. Version 0.11.6 in /opt/iobroker/node_modules/iobroker.ble, node: v12.16.3, js-controller: 3.1.4 host.nuc 2020-05-17 14:31:40.006 info instance system.adapter.ble.0 started with pid 15594 host.nuc 2020-05-17 14:31:39.949 info "system.adapter.ble.0" enabled
-
Was steht im Datenpunkt driverState?
-
@Marty56
Seltsamerweise hatte ich das eben auch.
Ein Neustart hat es gerichtet.
[Edit:] Doch nicht, ist doch wieder Gelb geworden.
[Editedit:] Jetzt wieder Grün... -
@haselchen Not connected
Neustart habe ich auch gemacht.
Außerdem den Adapter neuinstalliert -
@Marty56 läuft zufällig auch der radar2 Adapter auf deinem System? Wenn ja, geht das nämlich nicht beides zusammen. Je nach dem würde da mal der radar oder mal der ble funktionieren.
Andernfalls bräuchtest du dann nen externen Bluetooth Stick wenn du beides nutzen möchtest.
Bei einem Adapter kannst du dann hci0 und beim anderen hci1 auswählen.
Was steht bei ble.0.info.driverState? -
@crunchip der Radar Adapter läuft nicht.
connection: false
driverState:poweredOFFEs werde natürlich auch keine BLE Geräte erkannt.
-
@Marty56 mal testweise mit der version zurück gehen, v0.11.0
mit anschliessendem
sudo setcap cap_net_raw+eip $(eval readlink -fwhich node
)mal so nebenbei,
bei meinem Server gibt es manchmal so ne Art "Spannungsproblem" mit dem internen Bluetooth.
In dem Fall steht dann ebenfalls derble.0.info.driverState
auf poweredOFF
Abhilfe schafft dann bei mir nur, den Server auszuschalten und kurz vom Strom zu nehmen.
Danach läuft er wieder wie gewünscht. -
@Marty56 sagte in ble adapter keine Verbindung mehr:
Natürlich habe ich "sudo setcap cap_net_raw+eip $(eval readlink -f which node)" gemacht.
Das macht der Fixer auch.
poweredOFF
Probier mal
hciconfig hci0 up
-
@AlCalzone sagte in ble adapter keine Verbindung mehr:
hciconfig hci0 up
liefert
hciconfig hci0 up Can't init device hci0: Connection timed out (110)
hciconfig -a hci0: Type: Primary Bus: USB BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:9 acl:0 sco:0 commands:3 errors:0 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: SLAVE ACCEPT
-
@Marty56 sagte in ble adapter keine Verbindung mehr:
Can't init device hci0: Connection timed out (110)
Google das mal. Gibt ein paar Ansätze, aber das per stille Post durchzuspielen macht keinen Sinn.
-
@AlCalzone Das habe ich auch schon versucht, aber ich komme nicht weiter.
-
War wohl ein Hardwaredefekt. Ein USB Kabel war defekt und hat wohl den USB Hub außer Funktion gesetzt.