NEWS
SOLVED BLE-Adapter startet nicht mehr
-
PUSH!
Keiner einer Idee oder ist das so mühselig das jetzt herauszufinden? Ich kann gerne weitere Infos bereitstellen, wenn das hilft.
-
Ich würde nach solchen Stunts einfach das passende OS frisch neuinstallieren. Dann passen auch die Treiber zur Hardware.
-
@kenny384 Hi,
also dein Bluetooth funktioniert da garnicht, das hat mal nix mit iobroker zu tun, würd ich sagen...stoppe mal den ble adapter, und dann versuch doch mal in der konsole mit sudo hcitool lescan zu sehen, welches device er nimmt und ob überhaupt Geräte oder was gefunden wird...
-
@ilovegym Danke für die Antwort:
Scheinbar findet er gar nichts:
pi@ioBroker-RasPi4:~ $ sudo hcitool lescan Could not open device: No such device
-
This adapter needs additional libraries to compile. See https://github.com/sandeepmistry/noble#prerequisites for detailed instructions. On Raspberry Pi and similar, this should do it: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin If the adapter starts but won't connect to your bluetooth hardware, please check the info.driverState state in ioBroker. If it is unauthorized, you need to give node additional permissions. For Linux, this is as simple as sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) which requires libcap2-bin to be installed.
-
@crunchip Ich glaube das hatte ich schonmal gemacht. Von den genannten Paketen war scheinbar auch schon alles installiert. Der Befehl "sudo setcap cap_net_raw+eip $(eval readlink -f
which node
)" läuft so durch, aber hat auch nichts geändert. Log beim Starten vom BLE weiterhin so:ble.0 2020-06-24 15:58:07.288 info (30522) Terminated (NO_ERROR): Without reason ble.0 2020-06-24 15:58:07.286 info (30522) terminating ble.0 2020-06-24 15:58:07.237 error at process._tickCallback (internal/process/next_tick.js:61:11) ble.0 2020-06-24 15:58:07.237 error at process.nextTick (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:60:24) ble.0 2020-06-24 15:58:07.237 error at NobleBindings.init (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13) ble.0 2020-06-24 15:58:07.237 error at Hci.init (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35) ble.0 2020-06-24 15:58:07.237 error (30522) Error: ENODEV, No such device ble.0 2020-06-24 15:58:07.236 error (30522) uncaught exception: ENODEV, No such device ble.0 2020-06-24 15:58:06.954 info (30522) monitored services: fe95 ble.0 2020-06-24 15:58:06.952 info (30522) enabled plugins: Xiaomi, _default ble.0 2020-06-24 15:58:06.950 info (30522) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default ble.0 2020-06-24 15:58:06.783 info (30522) starting. Version 0.11.6 in /opt/iobroker/node_modules/iobroker.ble, node: v10.21.0, js-controller: 3.1.4
-
@kenny384 hmm vielleicht in der config bluetooth deaktiviert?
in der /boot/config.text schauen ob bluetooth disabled ist.. -
@ilovegym wollte ich auch gerade schreiben.
Und nach den Befehlen, System neu starten -
@ilovegym Finde keine Einstellung die BT disabled haben könnte. Oder übersehe ich etwas? Die allerletzte Zeile finde ich aber interessant. Ist das richtig so? Habe einen Pi4.
#hdmi_mode=1 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable the lirc-rpi module #dtoverlay=lirc-rpi # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on enable_uart=1 [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_framebuffers=2 [all] #dtoverlay=vc4-fkms-v3d dtoverlay=pi3-miniuart-bt-overlay
-
@kenny384 sagte in BLE-Adapter startet nicht mehr:
dtoverlay=pi3-miniuart-bt-overlay
dtoverlay=miniuart-bt .... sollte das jetzt sein, mWn
-
@harrym Habe ich testweise mal ganz unten drunter gesetzt und die Zeile darüber auskommentiert. Neustart --> Leider keine Veränderung
Ich habe noch folgenden Befehl im Netz gefunden und mal ausgeführt:
pi@ioBroker-RasPi4:~ $ systemctl status hciuart.service ● hciuart.service - Configure Bluetooth Modems connected by UART Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-06-24 16:25:35 CEST; 10min ago Process: 365 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE) Jun 24 16:25:05 ioBroker-RasPi4 systemd[1]: Starting Configure Bluetooth Modems connected by UART... Jun 24 16:25:35 ioBroker-RasPi4 btuart[365]: Initialization timed out. Jun 24 16:25:35 ioBroker-RasPi4 btuart[365]: bcm43xx_init Jun 24 16:25:35 ioBroker-RasPi4 systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE Jun 24 16:25:35 ioBroker-RasPi4 systemd[1]: hciuart.service: Failed with result 'exit-code'. Jun 24 16:25:35 ioBroker-RasPi4 systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
-
@kenny384 Ei jo, wenn du dein bluetooth device verschiebst, dann isses nicht mehr, wo es sein soll
schau mal hier
https://forum.homegear.eu/t/bluetooth-ohne-funktion-nach-dtoverlaypi3-miniuart-bt/2013/7 -
@ilovegym Puuh, das bekomme ich irgendwie nicht hin. Ich habe die config.txt jetzt so (Auszug), aber das hat nichts verändert:
# Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on enable_uart=1 [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_framebuffers=2 [all] #dtoverlay=vc4-fkms-v3d dtoverlay=pi3-miniuart-bt core_freq=250
Hinter dem dtoverlay=pi3-miniuart-bt stand vorher noch -overlay. Das habe ich im Beispiel oben weggenommen, hat aber auch nichts verändert.
-
Die in dem verlinkten Thread beschriebene hciuart.service sieht bei mir so aus:
[Unit] Description=Configure Bluetooth Modems connected by UART ConditionFileNotEmpty=/proc/device-tree/soc/gpio@7e200000/bt_pins/brcm,pins Requires=dev-serial1.device After=dev-serial1.device [Service] Type=forking ExecStart=/usr/bin/btuart [Install] WantedBy=multi-user.target
-
-
@kenny384
neue SD-Karte, und nochmal von Anfang an.. irgendwo ist da was geschossen.. normal ist bluetooth kein Thema und auch nicht deaktiviert. -
@ilovegym Okay, muss ich dann wohl tun, wenn ich mal die Zeit habe. Liegt bestimmt daran, dass das System ursprünglich mal auf einem Raspi 3 erstellt wurde, dann auf einen Raspi 4 umgezogen ist und jetzt noch von SD auf SSD. Kennt man ja aus dem echten Leben: Bei jedem Umzug geht irgendwas verloren und/oder kaputt
-
@kenny384 ahh okay..
oder alles was bluetooth angeht, deinstallieren und noch mal neu.. aber bevor du dir ne bestehende installation müllst.. lieber ne andere Karte rein... und ganz neu frisch aufgesetzt.
-
-
@haselchen sagte in BLE-Adapter startet nicht mehr:
sudo service bluetooth status
pi@ioBroker-RasPi4:~ $ sudo service bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: inactive (dead) Docs: man:bluetoothd(8) Jun 24 16:53:02 ioBroker-RasPi4 systemd[1]: Condition check resulted in Bluetooth service being skipped.
-