NEWS
[GELÖST] ble Adapter macht Probleme auf Raspi 5
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
npm ls iobroker.ble bluetooth-hci-socket
sieht bei mir ähnlich aus:
admin@iobroker:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket iobroker.inst@3.0.0 /opt/iobroker └── iobroker.ble@0.14.0
wird dies denn zwingend für den ble Adapter benötigt ?
-
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
keine Ahnung was das mit python3 zu tun hat
-
Grundvoraussetzungen sind da?
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
sudo setcap cap_net_raw+eip $(eval readlink -f
which node
)offensichtlich, ja. Wenn ich dies beurteilen würde
admin@iobroker:/opt/iobroker $ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin Reading package lists... Done Building dependency tree... Done Reading state information... Done bluetooth is already the newest version (5.66-1+rpt1+deb12u1). bluez is already the newest version (5.66-1+rpt1+deb12u1). libbluetooth-dev is already the newest version (5.66-1+rpt1+deb12u1). libudev-dev is already the newest version (252.22-1~deb12u1). libcap2-bin is already the newest version (1:2.66-4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. admin@iobroker:/opt/iobroker $ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) admin@iobroker:/opt/iobroker $
-
-
Kommt wohl öfters der Fehler vor :
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
iob logs --watch | uniq
2024-02-10 23:45:58.679 - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17 2024-02-10 23:45:58.740 - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default 2024-02-10 23:45:58.741 - info: ble.0 (1699) enabled plugins: _default 2024-02-10 23:45:58.741 - info: ble.0 (1699) monitoring all services 2024-02-10 23:45:58.790 - info: ble.0 (1699) starting scanner process... 2024-02-10 23:45:58.901 - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket' Require stack: - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js - /opt/iobroker/node_modules/@abandonware/noble/index.js - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js 2024-02-10 23:45:58.679 - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17 2024-02-10 23:45:58.740 - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default 2024-02-10 23:45:58.741 - info: ble.0 (1699) enabled plugins: _default 2024-02-10 23:45:58.741 - info: ble.0 (1699) monitoring all services 2024-02-10 23:45:58.790 - info: ble.0 (1699) starting scanner process... 2024-02-10 23:45:58.901 - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket' Require stack: - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js - /opt/iobroker/node_modules/@abandonware/noble/index.js - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
-
Dann versuch
cd /opt/iobroker/node_modules sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
Dann versuch
cd /opt/iobroker/node_modules sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
Ja Geil !!!! Hat geklappt !!! Alles grün und die BT Geräte werden gefunden. MEGA !!!!
Vielen lieben Dank Thomas
Auch vielen lieben an alle anderen die mir versucht haben zu helfenJetzt kann Charlie wieder selbst nach Hause kommen
https://youtu.be/6ebXPKz4bSc?si=bCU5lA-OjBXOasHM -
@wauzzi
Hallo,
wegen solcher Probleme mit BLE habe ich schon länger ein Skript "fixble.sh" folgenden Inhalts:#! iobroker stop sudo apt update sudo apt upgrade cd /opt/iobroker/node_modules/iobroker.ble npm install --omit=dev iobroker fix sudo reboot
Dieses startet u.a. npm install.
Datin wird eine Abfrage gestellt, ob man etwas erneuern will.
Ich würde das Skript gerne auch unattended (per cron) laufen lassen. (Wie) kann man dabei erreichen, dass diese Abfrage immer als mit "Y" beantwortet gilt, ohne dass ein Eingriff nötig ist?
Dank im Voraus