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 macht Probleme auf Raspi 5

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [GELÖST] ble Adapter macht Probleme auf Raspi 5

    This topic has been deleted. Only users with topic management privileges can see it.
    • wauzzi
      wauzzi @Thomas Braun last edited by

      @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 ?

      1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @wauzzi last edited by

        @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

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

          @wauzzi

          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`)
          
          wauzzi 1 Reply Last reply Reply Quote 0
          • wauzzi
            wauzzi @Thomas Braun last edited by

            @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 $
            
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @wauzzi last edited by

              @wauzzi

              Dann schau dir einen Kaltstart des Adapters per

              iob logs --watch | uniq
              

              an.

              Glasfaser wauzzi 2 Replies Last reply Reply Quote 0
              • Glasfaser
                Glasfaser @Thomas Braun last edited by

                Kommt wohl öfters der Fehler vor :

                .#
                https://github.com/AlCalzone/ioBroker.ble/issues/837

                nifu777 created this issue in AlCalzone/ioBroker.ble

                open Cannot find module #837

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

                  @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
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @wauzzi last edited by

                    @wauzzi

                    Dann versuch

                    cd /opt/iobroker/node_modules
                    sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
                    
                    wauzzi 1 Reply Last reply Reply Quote 2
                    • wauzzi
                      wauzzi @Thomas Braun last edited by wauzzi

                      @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                      @wauzzi

                      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 helfen 💞

                      Jetzt kann Charlie wieder selbst nach Hause kommen 😉
                      https://youtu.be/6ebXPKz4bSc?si=bCU5lA-OjBXOasHM

                      1 Reply Last reply Reply Quote 2
                      • W
                        wrod last edited by

                        @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

                        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

                        892
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        4
                        27
                        1566
                        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