Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] BLE Adapter testen (v0.6.0)

    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

    [Aufruf] BLE Adapter testen (v0.6.0)

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hardwearhansi last edited by

      Habe genau dass selbe Problem

      1 Reply Last reply Reply Quote 0
      • B
        BeautyBoyBob last edited by

        Ich ebenfalls.

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer last edited by

          Was sagt denn der Datenpunkt "info.driverState"?

          1 Reply Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer last edited by

            @reini:

            Hallo, bei meinem ble Adapter steht derzeit bei bluetooth driver state "unauthorized" - bekomme auch keine neuen Werte mom. (Version 0.5.5), was muss ich da tun? `
            Betriebssystem?

            NodeJS-Version?

            Edit: Falls Linux, dann bitte die Anweisungen hier beachten - Abschnitt "Running without root/sudo":

            https://github.com/noble/noble#running-without-rootsudo

            1 Reply Last reply Reply Quote 0
            • G
              gaso last edited by

              @BeautyBoyBob:

              Ich ebenfalls. `

              schon eine Lösung gefunden ?

              bei mir ist er immnoch gelb !?

              1 Reply Last reply Reply Quote 0
              • B
                BeautyBoyBob last edited by

                Bei mir auch noch. Hatte leider noch keine Zeit mich damit zu beschäftigen.

                Ich vermute aber es liegt an irgendwelchen Versionen von npm, nodeJS usw…

                Ich hatte ziemlich wild alles mögliche upgedatet nach Problemen mit der einen Versionen des Javascript Adapters, danach kam das bei mir.

                1 Reply Last reply Reply Quote 0
                • AlCalzone
                  AlCalzone Developer last edited by

                  Lest bitte mal meinen letzten Post 🙂 und den vorletzten

                  1 Reply Last reply Reply Quote 0
                  • R
                    reini last edited by

                    der letzte Beitrag von AlCalzone hat bei mir alle Probleme gelöst ("Running without root/sudo") - seitdem ist mein BLE Adapter immer auf "poweredOn" und nicht mehr ständig "unauthorized" (Hardware Raspi Zero)

                    TOP - danke!

                    1 Reply Last reply Reply Quote 0
                    • G
                      gaso last edited by

                      driverState

                      state

                      bluetooth driver state

                      state indicator.state unsupported

                      1 Reply Last reply Reply Quote 0
                      • G
                        gaso last edited by

                        @reini:

                        der letzte Beitrag von AlCalzone hat bei mir alle Probleme gelöst ("Running without root/sudo") - seitdem ist mein BLE Adapter immer auf "poweredOn" und nicht mehr ständig "unauthorized" (Hardware Raspi Zero)

                        TOP - danke! `

                        und was hast du bei dir eingetragen ?

                        mit dem Befehl

                        sudo setcap cap_net_raw+eip $(eval readlink -f which node)

                        komme ich irgendwie nicht klar

                        1 Reply Last reply Reply Quote 0
                        • B
                          BeautyBoyBob last edited by

                          Ich leider auch nicht. Libcap2-bin konnte ich noch installieren. Aber die 2 Weiteren Commands gehen leider nicht. Mein ioBroker läuft im Docker auf einem Synology NAS.
                          8070_ble.png

                          1 Reply Last reply Reply Quote 0
                          • B
                            BeautyBoyBob last edited by

                            Bei mir hat das allerdings andere Gründe, warum BLE nicht funktioniert.
                            8070_ble2.png

                            ble.0	2018-12-14 16:24:33.373	error	unhandled promise rejection: Error: Cannot find module 'bluetooth-hci-socket'
                            

                            Hat bei mir noch tiefgehendere Gründe durch andere Updates, hab mir da wohl ein wenig was zerschossen, bekomme jedenfalls bluetooth-hci-socket nicht einfach so installiert.

                            1 Reply Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer last edited by

                              sudo apt-get install libcap2-bin
                              

                              hat nicht funktioniert?

                              sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                              

                              habe ich einfach kopiert und in die Konsole eingefügt - läuft ohne Probleme durch

                              @gaso:

                              driverState

                              state

                              bluetooth driver state

                              state indicator.state unsupported `
                              https://github.com/noble/noble/issues/568 => Du benutzt nicht unterstützte Bluetooth Hardware. Was für ein Gerät/Dongle nutzt du?

                              1 Reply Last reply Reply Quote 0
                              • AlCalzone
                                AlCalzone Developer last edited by

                                @BeautyBoyBob:

                                Hat bei mir noch tiefgehendere Gründe durch andere Updates, hab mir da wohl ein wenig was zerschossen, bekomme jedenfalls bluetooth-hci-socket nicht einfach so installiert. `

                                Hast du NodeJS 10 installiert? Dann geht das (noch) nicht.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  BeautyBoyBob last edited by

                                  @AlCalzone:

                                  Hast du NodeJS 10 installiert? Dann geht das (noch) nicht. `

                                  Das sind meine Versionen.
                                  8070_ble3.png

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    gaso last edited by

                                    hat aber in der Kon­s­tel­la­ti­on schon mal funktioniert
                                    11401_usb.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      BeautyBoyBob last edited by

                                      @BeautyBoyBob:

                                      @AlCalzone:

                                      Hast du NodeJS 10 installiert? Dann geht das (noch) nicht. `

                                      Das sind meine Versionen.

                                      ble3.png `

                                      Okay, habe nun wie hier beschrieben auf Node js 8 downgegradet und nun ist der BLE Adapter wieder auf Grün 😄

                                      https://smarthome.schimmer-media.de/for … ci-socket/

                                      1 Reply Last reply Reply Quote 0
                                      • Deanna4711
                                        Deanna4711 last edited by

                                        Auch ich bekomme meinen BLE Adapter nicht "grün", es werden aber keine echten Fehlermeldungen ausgegeben. Das System ist ein RockPi mit Debian Stretch, alle benötigten Pakete habe ich (meiner Newbie Meinung nach) nachinstalliert.

                                        Platform: linux
                                        Architecture: arm
                                        CPUs: 6
                                        Speed: 408 MHz
                                        Model: ARMv8 Processor rev 4 (v8l)
                                        RAM: 3.7 GB 
                                        System uptime: 00:50:43
                                        Node.js: v8.14.0
                                        NPM: 6.4.1
                                        adapters count: 208
                                        Uptime: 12:55:03
                                        
                                        ble.0	2018-12-15 12:07:27.008	debug	system.adapter.admin.0: logging true
                                        ble.0	2018-12-15 11:07:20.974	debug	system.adapter.admin.0: logging false
                                        ble.0	2018-12-15 11:06:43.429	debug	system.adapter.admin.0: logging true
                                        ble.0	2018-12-15 11:06:37.432	info	monitored services: ble.0.c4:7c:8d:62:6c:8c, ble.0.c4:7c:8d:64:43:6b, ble.0.c4:7c:8d:64:47:6e, ble.0.c4:7c:8d:65:5f:b7, fe95
                                        ble.0	2018-12-15 11:06:37.430	info	enabled plugins: Xiaomi, _default
                                        ble.0	2018-12-15 11:06:37.428	info	loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
                                        ble.0	2018-12-15 11:06:37.349	info	starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.ble, node: v8.14.0
                                        ble.0	2018-12-15 11:06:37.202	debug	statesDB connected
                                        ble.0	2018-12-15 11:06:37.159	debug	objectDB connected
                                        ble.0	2018-12-15 11:04:37.311	info	{"index":0,"bus":"UART"}
                                        ble.0	2018-12-15 11:04:30.670	info	{"index":0,"bus":"UART"}
                                        ble.0	2018-12-15 11:01:16.450	info	{"index":0,"bus":"UART"}
                                        ble.0	2018-12-15 11:01:11.138	info	{"index":0,"bus":"UART"}
                                        ble.0	2018-12-15 10:34:33.847	info	monitored services: ble.0.c4:7c:8d:62:6c:8c, ble.0.c4:7c:8d:64:43:6b, ble.0.c4:7c:8d:64:47:6e, ble.0.c4:7c:8d:65:5f:b7, fe95
                                        ble.0	2018-12-15 10:34:33.845	info	enabled plugins: Xiaomi, _default
                                        ble.0	2018-12-15 10:34:33.843	info	loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
                                        ble.0	2018-12-15 10:34:33.760	info	starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.ble, node: v8.14.0
                                        

                                        hciconfig liefert mir folgendes:

                                        linaro@linaro-alip:~$ hciconfig
                                        hci0:   Type: Primary  Bus: UART
                                                BD Address: 43:45:C5:00:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
                                                UP RUNNING
                                                RX bytes:922 acl:0 sco:0 events:65 errors:0
                                                TX bytes:5378 acl:0 sco:0 commands:78 errors:0
                                        
                                        

                                        hcitool lescan aber:

                                        linaro@linaro-alip:~$ sudo hcitool lescan
                                        Set scan parameters failed: Connection timed out
                                        
                                        

                                        Es läuft kein weiterer Adapter (Radar etc.) und BT müsste mindestens 20 verschiedene Objekte erkennen. U.a. eben die Xiaomi Sensoren. Ich habe keine weiteren Ideen mehr.

                                        1 Reply Last reply Reply Quote 0
                                        • AlCalzone
                                          AlCalzone Developer last edited by

                                          Was steht im State "info.driverState"?

                                          Bitte auch hier lesen ==> viewtopic.php?p=203033#p203033

                                          1 Reply Last reply Reply Quote 0
                                          • Deanna4711
                                            Deanna4711 last edited by

                                            @AlCalzone:

                                            Was steht im State "info.driverState"? `

                                            ![](</s><ATTACHMENT 10527_snipimage.jpg )[attachment=0]~~SnipImage.JPG[/attachment]" />

                                            @AlCalzone:

                                            Bitte auch hier lesen ==> viewtopic.php?p=203033#p203033 `

                                            Running without root/sudo
                                            Run the following command:
                                            
                                            sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                                            This grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising.
                                            

                                            Habe ich ausgeführt, keine Veränderung. :?~~

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            794
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            59
                                            370
                                            65823
                                            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