NEWS
BLE Adapter verliert Verbindung zu Xiaomi Temperatursensor
-
Hallo liebe Community.
Ich habe den BLE Adapter am laufen und lese damit die "alte" runde Version des Xiaomi Mijia Bluetooth Temperatur und Feuchtesensor aus.
Das läuft alles ein paar Stunden stabil und dann erhalte ich folgende Fehlermeldungen und ich bekomme keine aktuellen Meldungen mehr vom Sensor. Der BLE Adapter ist weiterhin auf grün, der driverState dann auf unknown:
host.raspberrypi 2020-05-27 05:03:20.500 error instance system.adapter.ble.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.raspberrypi 2020-05-27 05:03:20.500 error Caught by controller[0]: at BluetoothHciSocket.emit (events.js:198:13) host.raspberrypi 2020-05-27 05:03:20.500 error Caught by controller[0]: at Hci.onSocketData (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js:479:12) host.raspberrypi 2020-05-27 05:03:20.500 error Caught by controller[0]: at Hci.processLeMetaEvent (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js:608:10) host.raspberrypi 2020-05-27 05:03:20.499 error Caught by controller[0]: at Hci.processLeAdvertisingReport (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js:643:21) host.raspberrypi 2020-05-27 05:03:20.499 error Caught by controller[0]: at Buffer.readInt8 (internal/buffer.js:305:5) host.raspberrypi 2020-05-27 05:03:20.499 error Caught by controller[0]: at boundsError (internal/buffer.js:49:9) host.raspberrypi 2020-05-27 05:03:20.497 error Caught by controller[0]: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 27. Received 80 ble.0 2020-05-27 05:03:20.466 error (11909) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 27. Received 80Ein reboot des gesamten Raspberry Pi 3+ "behebt" das Problem für weitere Stunden.
Was meint ihr?
Cheers
-
@rockflopp
Ich meine, bei mir läuft das recht stabil mit den runden Sensoren.
Welche Versionen laufen da bei dir?nodejs -v node -v npm -v which nodejs && which node && which npm lsb_release -a iobroker list adapters | grep ble iobroker -v -
https://github.com/AlCalzone/ioBroker.ble/issues/391
da wird das problem auch beschrieben, tritt bei mir auch mit dem MiBand4 ....
-
@Thomas-Braun said in BLE Adapter verliert Verbindung zu Xiaomi Temperatursensor:
nodejs -v node -v npm -v which nodejs && which node && which npm lsb_release -a iobroker list adapters | grep ble iobroker -v
nodejs v10.18.1
node v10.18.1
npm 6.13.6/usr/bin/nodejs
/usr/bin/node
/usr/bin /npmlsb
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: busterble v0.11.0
@harrym danke für den Link
-
@rockflopp
Gut, du bist auf 'default' unterwegs.
Bei mir läuft das ganze stabil mit node12 und ble v0.11.6 (aus 'latest') -
@Thomas-Braun die konstellation habe ich auch .... trotzdem tritt das auch bei mir auf. noble dürft da es problem sein, was da so im git geschrieben wird .....
-
@harrym Bei mir läuft gar kein noble, denke ich:
pi@raspberrypi:~ $ ls -la /opt/iobroker/node_modules/no node-abi/ node-fetch/ node-pre-gyp/ noop-logger/ node-addon-api/ node-forge/ node-schedule/ nopt/ node-coap-client/ node-gyp/ node-ssdp/ normalize-package-data/ node-dtls-client/ node-libcurl/ node-tradfri-client/ normalize-path/ node.extend/ node-mndp/ node-wol/ -
@Thomas-Braun der BLE adapter verwendet mWn noble .... gugg mal im git. es "lustige" ist .... unter linux direkt mim bescan funzt alles .... nur der adapter kann es ned mim miband ..... egal. hab jetzt nfc genommen fürs heimkommen und hellmachen ggggg
-
@harrym Könntest recht haben:
locate noble /opt/iobroker/node_modules/@abandonware/nobleIch habe aber dennoch noch keine Verbindungsabbrüche nach mehreren Stunden beobachten können.
-
@Thomas-Braun der neue Radar adapter .... da kannste wählen .... zwischen hci und noble .... aber der tut ned mit meinem miband mim lescan ....
verbindungsabbrüche .... dürften aufs gerät ankommen. Ich hab da noch keine logik dahinter gefunden.
-
@harrym radar2 ist mir auch unheimlich...

-
@Thomas-Braun
der neue is scho gut! -
Hallo,
um nicht direkt ein neues Thema im Forum aufmachen zu müssen, klinke ich mich hier mit ein. Mein Problem ist ähnlich, zumindest vermute ich das. Bei mir sind es die Xiaomi Flower Care Sensoren, die im BLE-Adapter wunderbar erkannt werden und auch ihre Werte aktualisieren. Leider bekomme ich im Log alle (schätzungsweise) 20 Sekunden folgenden Fehler:
host.raspberrypi4-iob 2020-05-27 23:18:54.926 info Restart adapter system.adapter.ble.0 because enabled host.raspberrypi4-iob 2020-05-27 23:18:54.926 info instance system.adapter.ble.0 terminated with code 0 (NO_ERROR) host.raspberrypi4-iob 2020-05-27 23:18:54.925 error Caught by controller[3]: noble: unknown peripheral 001a220754a6 handle notify! host.raspberrypi4-iob 2020-05-27 23:18:54.925 error Caught by controller[2]: at Hci.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.925 error Caught by controller[2]: at NobleBindings.onAclDataPkt (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:288:15) host.raspberrypi4-iob 2020-05-27 23:18:54.925 error Caught by controller[2]: at AclStream.push (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/acl-stream.js:33:10) host.raspberrypi4-iob 2020-05-27 23:18:54.925 error Caught by controller[2]: at AclStream.emit (events.js:322:22) host.raspberrypi4-iob 2020-05-27 23:18:54.924 error Caught by controller[2]: at Gatt.onAclStreamData (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:133:26) host.raspberrypi4-iob 2020-05-27 23:18:54.924 error Caught by controller[2]: at Object.callback (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:329:10) host.raspberrypi4-iob 2020-05-27 23:18:54.924 error Caught by controller[2]: at Gatt.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.924 error Caught by controller[2]: at NobleBindings.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:277:8) host.raspberrypi4-iob 2020-05-27 23:18:54.924 error Caught by controller[2]: at NobleBindings.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.923 error Caught by controller[2]: at Noble.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:564:18) host.raspberrypi4-iob 2020-05-27 23:18:54.923 error Caught by controller[2]: TypeError: Cannot set property 'mtu' of undefined host.raspberrypi4-iob 2020-05-27 23:18:54.923 error Caught by controller[1]: at Hci.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.923 error Caught by controller[1]: at NobleBindings.onAclDataPkt (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:288:15) host.raspberrypi4-iob 2020-05-27 23:18:54.922 error Caught by controller[1]: at AclStream.push (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/acl-stream.js:33:10) host.raspberrypi4-iob 2020-05-27 23:18:54.922 error Caught by controller[1]: at AclStream.emit (events.js:322:22) host.raspberrypi4-iob 2020-05-27 23:18:54.922 error Caught by controller[1]: at Gatt.onAclStreamData (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:133:26) host.raspberrypi4-iob 2020-05-27 23:18:54.922 error Caught by controller[1]: at Object.callback (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/gatt.js:329:10) host.raspberrypi4-iob 2020-05-27 23:18:54.922 error Caught by controller[1]: at Gatt.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.921 error Caught by controller[1]: at NobleBindings.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:277:8) host.raspberrypi4-iob 2020-05-27 23:18:54.921 error Caught by controller[1]: at NobleBindings.emit (events.js:310:20) host.raspberrypi4-iob 2020-05-27 23:18:54.921 error Caught by controller[1]: at Noble.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:564:18) host.raspberrypi4-iob 2020-05-27 23:18:54.920 error Caught by controller[1]: TypeError: Cannot set property 'mtu' of undefined host.raspberrypi4-iob 2020-05-27 23:18:54.908 error Caught by controller[0]: noble: unknown peripheral 001a220754a6 connected! ble.0 2020-05-27 23:18:54.388 info (6538) Terminated (NO_ERROR): Without reason ble.0 2020-05-27 23:18:54.387 info (6538) terminating ble.0 2020-05-27 23:18:54.380 error (6538) TypeError: Cannot set property 'mtu' of undefined at Noble.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:564:18) at NobleBindings.emit (events.js:310:20) at Nobl ble.0 2020-05-27 23:18:54.380 error (6538) uncaught exception: Cannot set property 'mtu' of undefined ble.0 2020-05-27 23:18:54.371 info (6538) stopping scan ble.0 2020-05-27 23:18:54.370 error (6538) TypeError: Cannot set property 'mtu' of undefined at Noble.onMtu (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:564:18) at NobleBindings.emit (events.js:310:20) at Nobl ble.0 2020-05-27 23:18:54.369 error (6538) uncaught exception: Cannot set property 'mtu' of undefinedFolgende Versionen laufen bei mir:
pi@raspberrypi4-iob:/opt/iobroker $ nodejs -v v12.17.0 pi@raspberrypi4-iob:/opt/iobroker $ node -v v12.16.3 pi@raspberrypi4-iob:/opt/iobroker $ npm -v 6.14.5 pi@raspberrypi4-iob:/opt/iobroker $ which nodejs && which node && which npm /usr/bin/nodejs /usr/local/bin/node /usr/local/bin/npm pi@raspberrypi4-iob:/opt/iobroker $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster pi@raspberrypi4-iob:/opt/iobroker $ iobroker list adapters | grep ble system.adapter.ble : ble - v0.11.6 pi@raspberrypi4-iob:/opt/iobroker $ iobroker -v 2.2.10Was könnte der Fehler sein?
-
@r0b1zZle
node und nodejs sind schon mal falsch installiert. Die Versionen müssen gleich sein.apt policy nodejs sudo rm /usr/local/bin/node sudo rm /usr/local/bin/npm sudo apt update sudo apt dist-upgrade sudo apt install nodejs --reinstall -
@Thomas-Braun Danke. Habe ich ausgeführt:
pi@raspberrypi4-iob:~ $ node -v -bash: /usr/sbin/node: Datei oder Verzeichnis nicht gefunden pi@raspberrypi4-iob:~ $ nodejs -v v12.17.0 -
-
@Thomas-Braun Ja, ich wundere mich auch. Er hat alles installiert, offenbar ist node nicht mehr drauf!? Wie kann ich das wieder fixen?
-
@r0b1zZle
Hab ich oben schon Buchstabe für Buchstabe geschrieben. -
@Thomas-Braun Ja, das habe ich bereits ausgeführt:
pi@raspberrypi4-iob:~ $ apt policy nodejs nodejs: Installiert: 12.17.0-1nodesource1 Installationskandidat: 12.17.0-1nodesource1 Versionstabelle: *** 12.17.0-1nodesource1 500 500 https://deb.nodesource.com/node_12.x buster/main armhf Packages 100 /var/lib/dpkg/status 10.19.0~dfsg1-1+rpi1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages pi@raspberrypi4-iob:~ $ rm /usr/local/bin/node rm: das Entfernen von '/usr/local/bin/node' ist nicht möglich: Datei oder Verzeichnis nicht gefunden pi@raspberrypi4-iob:~ $ rm /usr/local/bin/npm rm: das Entfernen von '/usr/local/bin/npm' ist nicht möglich: Datei oder Verzeichnis nicht gefunden pi@raspberrypi4-iob:~ $ sudo apt update OK:1 http://archive.raspberrypi.org/debian buster InRelease OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:3 https://deb.nodesource.com/node_12.x buster InRelease Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Alle Pakete sind aktuell. pi@raspberrypi4-iob:~ $ sudo apt dist-upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. pi@raspberrypi4-iob:~ $ sudo apt install nodejs --reinstall Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig 0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen noch 0 B von 16,0 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt. (Lese Datenbank ... 50779 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../nodejs_12.17.0-1nodesource1_armhf.deb ... Detected old npm client, removing... Entpacken von nodejs (12.17.0-1nodesource1) über (12.17.0-1nodesource1) ... nodejs (12.17.0-1nodesource1) wird eingerichtet ... Trigger für man-db (2.8.5-2) werden verarbeitet ... pi@raspberrypi4-iob:~ $PS: Ich stelle mich vermutlich einfach nur zu dumm an, aber wenn ich mal den IoBroker-Log checke, steht da:
ble.0 2020-05-27 23:46:04.412 info (4851) starting. Version 0.11.6 in /opt/iobroker/node_modules/iobroker.ble, node: v12.17.0Also muss ja node installiert sein und offenbar auch die korrekte Version jetzt!?
-
Versuch mal mit sudo:
sudo rm /usr/local/bin/node sudo rm /usr/local/bin/npmDann sollte es aber sauber sein:
nodejs -v && node -v && npm -v which nodejs && which node && which npm