Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst)BLE-Adapter

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    (gelöst)BLE-Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dennis.80 @ostseereiter last edited by

      @ostseereiter ich verwende den internen bluetooth chip. dieser wird mir allerdings nicht mehr angezeigt. werde wohl mal ein backup einspielen müssen, haben beim versuch den adapter wieder ans laufen zu bekommen wohl eher etwas verschlimmbessert.

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active last edited by

        @dennis-80 sagte in (gelöst)BLE-Adapter:

        dieser wird mir allerdings nicht mehr angezeigt.

        dann ist aber etwas anderes faul, da nutzt auch kein backup oder Adapter installieren

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Dennis.80 last edited by

          @dennis-80

          rfkill
          

          zeigt?

          D 2 Replies Last reply Reply Quote 0
          • D
            Dennis.80 @Thomas Braun last edited by

            @thomas-braun nach dem backup wird zumindest die bluetooth hardware wieder gefunden:

            ID TYPE DEVICE SOFT HARD
            0 wlan phy0 blocked unblocked
            1 bluetooth hci0 unblocked unblocked

            Die Ampeln bleiben aber weiterhin auf rot

            1 Reply Last reply Reply Quote 0
            • J
              Jan1 @Dennis.80 last edited by

              @dennis-80
              hattest Du das was Thomas oben geschrieben hat gemacht:

              Ändere
              
              ExecStart=/usr/lib/bluetooth/bluetoothd
              
              in
              
              ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap 
              

              Wenn ja, da bin ich reingefallen, weil das bei mir andere Pfade waren und ich einfach die Zeile so übernommen hatte 😉

              1 Reply Last reply Reply Quote 0
              • D
                Dennis.80 @Thomas Braun last edited by

                @thomas-braun ich komme langsam voran. Die Ampel ist schonmal wieder auf gelb gesprungen. Die Hardware wird nun wieder erkannt. Folgende Probleme bleiben: Bluetoothstatus: Failed to set privacy: Rejected (0x0b) und Cannot find module '@abandonware/bluetooth-hci-socket 😞

                iob ble 3.JPG iob ble 2.JPG

                Hast du evtl. noch eine Idee? Will eigentlich nicht auf den Adapter verzichten 😞

                AlCalzone 1 Reply Last reply Reply Quote 0
                • AlCalzone
                  AlCalzone Developer @Dennis.80 last edited by

                  @dennis-80 Hab nicht alles gelesen. Mal folgendes probiert?

                  cd /opt/iobroker/node_modules/iobroker.ble
                  npm i --production
                  
                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Dennis.80 @AlCalzone last edited by

                    @alcalzone said in (gelöst)BLE-Adapter:

                    cd /opt/iobroker/node_modules/iobroker.ble
                    npm i --production

                    oh, stimmt mich jetzt nicht optimistischer...

                    iob ble 4.JPG

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Dennis.80 last edited by

                      @dennis-80

                      Bitte keine Screenshots, kann ich nicht lesen unterwegs.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Dennis.80 @Thomas Braun last edited by

                        @thomas-braun

                        IOBROKER LOG:
                        ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                        ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/index.js
                        ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                        ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                        ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                        ble.0 2022-03-15 12:55:58.987 error Require stack:
                        ble.0 2022-03-15 12:55:58.987 error (1784) Cannot find module '@abandonware/bluetooth-hci-socket'

                        sudo systemctl status bluetooth
                        ● bluetooth.service - Bluetooth service
                        Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
                        Active: active (running) since Tue 2022-03-15 12:19:09 CET; 41min ago
                        Docs: man:bluetoothd(8)
                        Main PID: 494 (bluetoothd)
                        Status: "Running"
                        Tasks: 1 (limit: 3720)
                        CGroup: /system.slice/bluetooth.service
                        └─494 /usr/lib/bluetooth/bluetoothd --compat --noplugin=sap -E

                        Mär 15 12:19:09 Jarvis4iob systemd[1]: Starting Bluetooth service...
                        Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Bluetooth daemon 5.50
                        Mär 15 12:19:09 Jarvis4iob systemd[1]: Started Bluetooth service.
                        Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Starting SDP server
                        Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Excluding (cli) sap
                        Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Bluetooth management interface 1.18 initialize
                        Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Failed to set privacy: Rejected (0x0b)

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Dennis.80 last edited by

                          @dennis-80

                          Bitte CodeTags verwenden.

                          Deinstallier den ble-Adapter mal und dann nochmal frisch installieren.

                          nodeJS ist sauber?

                          sudo ln -s /usr/bin/node /usr/bin/nodejs
                          which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          
                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Dennis.80 @Thomas Braun last edited by

                            @thomas-braun
                            sieht in Ordnung aus, den ble Adapter habe ich nochmals frisch installiert.

                            nach einem Neustart, bleiben die Fehler im IO Log aber identisch

                            /usr/bin/nodejs
                            /usr/bin/node
                            /usr/bin/npm
                            v14.19.0
                            v14.19.0
                            8.5.3
                            pi
                            /home/pi
                            OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                            OK:2 http://archive.raspberrypi.org/debian buster InRelease
                            OK:3 https://deb.nodesource.com/node_14.x buster InRelease
                            Paketlisten werden gelesen... Fertig
                            Abhängigkeitsbaum wird aufgebaut.
                            Statusinformationen werden eingelesen.... Fertig
                            Alle Pakete sind aktuell.
                            nodejs:
                              Installiert:           14.19.0-deb-1nodesource1
                              Installationskandidat: 14.19.0-deb-1nodesource1
                              Versionstabelle:
                             *** 14.19.0-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                    100 /var/lib/dpkg/status
                                 10.24.0~dfsg-1~deb10u1 500
                                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                            
                            
                            J D 2 Replies Last reply Reply Quote 0
                            • J
                              Jan1 @Dennis.80 last edited by

                              @dennis-80
                              Bingo
                              NPM manuell verfummelt 😉

                              1 Reply Last reply Reply Quote 0
                              • D
                                Dennis.80 @Dennis.80 last edited by

                                @dennis-80 said in (gelöst)BLE-Adapter:

                                @thomas-braun
                                sieht in Ordnung aus, den ble Adapter habe ich nochmals frisch installiert.

                                nach einem Neustart, bleiben die Fehler im IO Log aber identisch

                                /usr/bin/nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                v14.19.0
                                v14.19.0
                                8.5.3
                                pi
                                /home/pi
                                OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                OK:2 http://archive.raspberrypi.org/debian buster InRelease
                                OK:3 https://deb.nodesource.com/node_14.x buster InRelease
                                Paketlisten werden gelesen... Fertig
                                Abhängigkeitsbaum wird aufgebaut.
                                Statusinformationen werden eingelesen.... Fertig
                                Alle Pakete sind aktuell.
                                nodejs:
                                  Installiert:           14.19.0-deb-1nodesource1
                                  Installationskandidat: 14.19.0-deb-1nodesource1
                                  Versionstabelle:
                                 *** 14.19.0-deb-1nodesource1 500
                                        500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                        100 /var/lib/dpkg/status
                                     10.24.0~dfsg-1~deb10u1 500
                                        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                
                                

                                und der vollständigkeit halber

                                /opt/iobroker/node_modules/iobroker.ble $ npm i --production
                                npm ERR! code ENOTEMPTY
                                npm ERR! syscall rename
                                npm ERR! path /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex
                                npm ERR! dest /opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn
                                npm ERR! errno -39
                                npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex' -> '/opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn'
                                
                                npm ERR! A complete log of this run can be found in:
                                npm ERR!     /home/iobroker/.npm/_logs/2022-03-15T13_11_23_912Z-debug-0.log
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Dennis.80 last edited by

                                  @dennis-80 sagte in (gelöst)BLE-Adapter:

                                  /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex' -> '/opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn

                                  sudo -u iobroker mv /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex /opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn
                                  
                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    Jan1 @Thomas Braun last edited by

                                    @thomas-braun
                                    Er hat NPM 8 drauf, läuft das überhaupt schon sauber mit IOBroker?

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Jan1 last edited by

                                      @jan1

                                      Bei mir schon (tm).

                                      Ja, könnte man aber auch sauber machen.

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        Jan1 @Thomas Braun last edited by

                                        @thomas-braun
                                        Kommt ja auch nicht von alleine auf 8 und wenn da schon was manuell gefummelt wurde 😉

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          Dennis.80 last edited by

                                          @jan1 said in (gelöst)BLE-Adapter:

                                          @thomas-braun
                                          Kommt ja auch nicht von alleine auf 8 und wenn da schon was manuell gefummelt wurde 😉

                                          manuell würde ich mich eigentlich nicht an das system wagen. habe aber versucht netzfünde nachzuvollziehen

                                          heißt für mich dann wohl im endeffekt system neu aufsetzen?!

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Dennis.80 last edited by

                                            @dennis-80 sagte in (gelöst)BLE-Adapter:

                                            manuell würde ich mich eigentlich nicht an das system wagen. habe aber versucht netzfünde nachzuvollziehen

                                            Hast du aber schon. Du hast manuell, am Paketmanager vorbei, npm global installiert.

                                            Schau in meiner Signatur, wie man nodeJS nochmal reinstalliert. Dann kommt da auch wieder die vorgesehene npm@6 mit.

                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            544
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            84
                                            4702
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo