Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Pi 3 als Bluetooth LE Scanner (Beispielscript)

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Pi 3 als Bluetooth LE Scanner (Beispielscript)

Scheduled Pinned Locked Moved Skripten / Logik
254 Posts 28 Posters 67.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rascal
    wrote on last edited by
    #98

    wenn ich noble mittels npm installieren will (wie auf github beschrieben) kommt das:

    root@Rasp-Radio-Garage:~# npm install noble
    npm WARN optional dep failed, continuing xpc-connection@0.1.4
    -
    > usb@1.1.2 install /root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
    > node-pre-gyp install --fallback-to-build
    
    make: Entering directory '/root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
      CC(target) Release/obj.target/libusb/libusb/libusb/core.o
      CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
      CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
      CC(target) Release/obj.target/libusb/libusb/libusb/io.o
      CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
      CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
      CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
      CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
      CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
      CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
      AR(target) Release/obj.target/usb.a
      COPY Release/usb.a
      CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
      CXX(target) Release/obj.target/usb_bindings/src/device.o
      CXX(target) Release/obj.target/usb_bindings/src/transfer.o
      SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
      COPY Release/usb_bindings.node
      COPY /root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node
      TOUCH Release/obj.target/action_after_build.stamp
    make: Leaving directory '/root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
    
    > bluetooth-hci-socket@0.4.4 install /root/node_modules/noble/node_modules/bluetooth-hci-socket
    > node-gyp rebuild
    
    make: Entering directory '/root/node_modules/noble/node_modules/bluetooth-hci-socket/build'
      CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
      SOLINK_MODULE(target) Release/obj.target/binding.node
      COPY Release/binding.node
    make: Leaving directory '/root/node_modules/noble/node_modules/bluetooth-hci-socket/build'
    noble@1.6.0 node_modules/noble
    ├── bplist-parser@0.0.6
    ├── debug@2.2.0 (ms@0.7.1)
    └── bluetooth-hci-socket@0.4.4 (nan@2.3.5, usb@1.1.2)
    root@Rasp-Radio-Garage:~#
    
    
    1 Reply Last reply
    0
    • ruhr70R Offline
      ruhr70R Offline
      ruhr70
      wrote on last edited by
      #99

      @rascal:

      ja,

      apt-get install bluetooth bluez libbluetooth-dev libudev-dev

      alles installiert und die neueste version `
      Ist noble vorhanden?

      In den Einstellungen des JavaScript Adapters unter "zusätzliche npm Module laden" eingetragen?

      Und auf dem Slave auch wirklich installiert?

      /opt/iobroker/node_modules/iobroker.javascript/node_modules/noble

      (Aus dem Kopf)

      Gesendet von iPad mit Tapatalk

      Adapter: Fritzbox, Unify Circuit
      Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rascal
        wrote on last edited by
        #100

        dass habe ich in dem von dir angegebenem Verzeichnis:

        root@Rasp-Radio-Garage:/opt/iobroker/node_modules/iobroker.javascript/node_modules/noble# ls
        CHANGELOG.md  examples  index.js  lib  LICENSE  package.json  README.md  test  test.js  with-bindings.js  ws-slave.js
        root@Rasp-Radio-Garage:/opt/iobroker/node_modules/iobroker.javascript/node_modules/noble#
        
        
        1 Reply Last reply
        0
        • ruhr70R Offline
          ruhr70R Offline
          ruhr70
          wrote on last edited by
          #101

          Ja, sorry. Steht ja auch oben im Log.

          Mmmh…

          Gesendet von iPad mit Tapatalk

          Adapter: Fritzbox, Unify Circuit
          Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rascal
            wrote on last edited by
            #102

            meine Adapter Konfig:
            421_unbenannt.jpg

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rascal
              wrote on last edited by
              #103

              ist das hier normal?

              root@Rasp-Radio-Garage:~# service bluetooth status
              * bluetooth.service - Bluetooth service
                 Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
                 Active: active (running) since Mit 2016-06-08 23:01:46 CEST; 1min 52s ago
                   Docs: man:bluetoothd(8)
               Main PID: 1007 (bluetoothd)
                 Status: "Running"
                 CGroup: /system.slice/bluetooth.service
                         `-1007 /usr/lib/bluetooth/bluetoothd
              
              Jun 08 23:01:46 Rasp-Radio-Garage bluetoothd[1007]: Bluetooth daemon 5.23
              Jun 08 23:01:46 Rasp-Radio-Garage bluetoothd[1007]: Starting SDP server
              Jun 08 23:01:46 Rasp-Radio-Garage systemd[1]: Started Bluetooth service.
              Jun 08 23:01:46 Rasp-Radio-Garage bluetoothd[1007]: Bluetooth management interface 1.10 initialized
              Jun 08 23:01:46 Rasp-Radio-Garage bluetoothd[1007]: Sap driver initialization failed.
              Jun 08 23:01:46 Rasp-Radio-Garage bluetoothd[1007]: sap-server: Operation not permitted (1)
              root@Rasp-Radio-Garage:~#
              
              
              1 Reply Last reply
              0
              • ruhr70R Offline
                ruhr70R Offline
                ruhr70
                wrote on last edited by
                #104

                Das passt schon.

                Ich werde aus dem ersten Fehler nach "Start Skript" nicht schlau. Module Debug?

                Als ob noble ein Problem hat.

                Node Version ist 4.x?

                Ich kann leider erst am Wochenende mir die Details ansehen

                Gesendet von iPad mit Tapatalk

                Adapter: Fritzbox, Unify Circuit
                Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                1 Reply Last reply
                0
                • ruhr70R Offline
                  ruhr70R Offline
                  ruhr70
                  wrote on last edited by
                  #105

                  Das passt schon bezog sich auf deinen Post davor :-)

                  Gesendet von iPad mit Tapatalk

                  Adapter: Fritzbox, Unify Circuit
                  Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    rascal
                    wrote on last edited by
                    #106
                    root@Rasp-Radio-Garage:~# node -v
                    v4.4.5
                    
                    
                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rascal
                      wrote on last edited by
                      #107

                      soll ich alles, inklusive, raspbian nochmals installieren?

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rascal
                        wrote on last edited by
                        #108

                        hat das was damit zu tun, dass ich "RASPBIAN JESSIE LITE" als System habe?

                        1 Reply Last reply
                        0
                        • ruhr70R Offline
                          ruhr70R Offline
                          ruhr70
                          wrote on last edited by
                          #109

                          Per Ferndiagnose gerade schwierig zu beurteilen. Wenn Du die Zeit hast ;-) Vieleicht erst einmal als Standalone Version und nicht als Slave.

                          Node.js 4-4.5 ist auch gut

                          Auf dem Raspberry Pi 3 läuft es eigentlich problemlos.

                          Gesendet von iPad mit Tapatalk

                          Adapter: Fritzbox, Unify Circuit
                          Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                          1 Reply Last reply
                          0
                          • derAugeD Offline
                            derAugeD Offline
                            derAuge
                            wrote on last edited by
                            #110

                            Nein

                            Das passt schon.

                            Du mußte nur die bt-tools mit installieren

                            Gesendet von meinem SM-T530 mit Tapatalk

                            1 Reply Last reply
                            0
                            • HomoranH Do not disturb
                              HomoranH Do not disturb
                              Homoran
                              Global Moderator Administrators
                              wrote on last edited by
                              #111

                              läuft das skript auf dem raspi3?

                              kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                              der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                              1 Reply Last reply
                              0
                              • lobomauL Offline
                                lobomauL Offline
                                lobomau
                                wrote on last edited by
                                #112

                                @Homoran:

                                läuft das skript auf dem raspi3? `
                                Definitiv ja! Hab es laufen. Wie beschrieben installiert, aber nix Slave oder raspbian Lite.

                                Host: NUC8i3 mit Proxmox:

                                • ioBroker CT Debian 13, npm 10.9.4, nodejs 22.21.0
                                • Slave: Pi4
                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  rascal
                                  wrote on last edited by
                                  #113

                                  ok… nur LOL... habe nur iobroker neu installiert und NICHT als client konfiguriert.. jetzt läuft das script

                                  jetzt habe ich iobroker gestoppt, iobroker setup custom.... siehe da, jetzt funktioniert das script auch als client iobroker und die werte werden alle eingetragen.

                                  strange.. .ist aber so

                                  1 Reply Last reply
                                  0
                                  • HomoranH Do not disturb
                                    HomoranH Do not disturb
                                    Homoran
                                    Global Moderator Administrators
                                    wrote on last edited by
                                    #114

                                    die Frage war an rascal gerichtet!

                                    Ob er das skript auf seinem neuen RasPi3 laufen hat, der als slave eingebunden ist.

                                    Und nicht auf seinem Master!

                                    Natürlich läuft es auf EINEM Raspi3, dafür ist es ja, und dafür hat rascal ja auch einen gekauft.

                                    Gruß

                                    Rainer

                                    kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                    1 Reply Last reply
                                    0
                                    • ruhr70R Offline
                                      ruhr70R Offline
                                      ruhr70
                                      wrote on last edited by
                                      #115

                                      Schön, dass es nun klappt :-)

                                      Den Schritt, den Pi3 als Slave an meine Hauptinstallation anzubinden steht mir noch bevor. Wenn ich dazu Fragen habe, weiß ich jetzt an wen ich mich wenden kann ;-)

                                      Gesendet von iPad mit Tapatalk

                                      Adapter: Fritzbox, Unify Circuit
                                      Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        rascal
                                        wrote on last edited by
                                        #116

                                        ich helfe gerne wenn ich kann…. wild Befehle in die Console klopfen und hoffen, dass irgendwas davon hilft ist meine Spezialität.

                                        Danke nochmals für Eure Hilfe und Geduld, gn8

                                        1 Reply Last reply
                                        0
                                        • lobomauL Offline
                                          lobomauL Offline
                                          lobomau
                                          wrote on last edited by
                                          #117

                                          Wie funktioniert da genau mit dem löschen und auf blacklist setzen?

                                          Habe einfach in den Objekten den Haken auf true gestellt. Sollte das device jetzt aus der Aufstellung verschwinden? Tut es nicht.
                                          1146_delete_device.gif

                                          Host: NUC8i3 mit Proxmox:

                                          • ioBroker CT Debian 13, npm 10.9.4, nodejs 22.21.0
                                          • Slave: Pi4
                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          648

                                          Online

                                          32.7k

                                          Users

                                          82.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe