Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Bluetooth Adapter stellt betrieb nach ein paar Minuten ein

    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

    Bluetooth Adapter stellt betrieb nach ein paar Minuten ein

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peter1980 @haselchen last edited by

      @haselchen
      Also an den Themen liegt es nicht.

      Also Node aktualisieren
      Intervall hochsetzen
      und Xiaomi durch xiaomi ersetzen

      Passiert weiterhin.
      Anbei das Log
      ble.0 2137 2022-07-19 14:55:44.240 info stopping scan
      ble.0 2137 2022-07-19 14:55:42.334 error The value of "offset" is out of range. It must be >= 0 and <= 5. Received 6
      ble.0 2137 2022-07-19 14:29:16.661 info starting scan for services ["fe95"]
      ble.0 2137 2022-07-19 14:29:14.545 info starting scanner process...

      P 1 Reply Last reply Reply Quote 0
      • P
        Peter1980 @Peter1980 last edited by

        Wenn das Problem aufgetreten ist hilft oft auch ein Restart der Instanz nicht.
        Er zeigt zwar im Log an
        6e0b4bbb-e4d4-403a-a231-898aa3f84593-image.png

        aber der BT Adapter bleibt aus.
        350c05e4-d54b-4209-b23d-7d6a45c140da-image.png

        Der Pi findet das Device aber wohl noch.
        pi@RevPi:~ $ lsusb
        Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
        Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
        Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
        Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
        pi@RevPi:~ $ rfkill
        ID TYPE DEVICE SOFT HARD
        0 bluetooth hci0 unblocked unblocked
        pi@RevPi:~ $

        haselchen 1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @Peter1980 last edited by haselchen

          @peter1980

          Da steht powered off
          Ausserdem hast du noch Version 0.12.0
          Und du hast die Installationshinweise von der Github Seite nicht ausgeführt.

          Als Beispiel

          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.
          

          Und ist dein Gerät an HCI 0 , so wie du es in den Adaptereinstellungen eingegeben hast?

          P 1 Reply Last reply Reply Quote 0
          • P
            Peter1980 @haselchen last edited by

            @haselchen
            Hci0 passt.
            0.13. konnte ich noch nicht updaten.
            Muss erstmal schauen wie ich das smooth hinbekomme, solange die Version sich noch nicht in der Adapter Übersicht updaten lässt. Da ist noch die 0.12 im gut die 0.13

            AlCalzone Thomas Braun 2 Replies Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer @Peter1980 last edited by

              @peter1980 Temporär aufs Beta-Repository wechseln, BLE 0.13 installieren, dann zurück auf Stable

              P 1 Reply Last reply Reply Quote 1
              • Thomas Braun
                Thomas Braun Most Active @Peter1980 last edited by Thomas Braun

                @peter1980

                Warum in Gottesnamen immer diese Fixierung auf git?
                Damit tut man sich i.d.R. keinen Gefallen. Nimm die V 013.0 aus dem Beta-Zweig. Ich vermute aber, das dein Problem unabhängig von der Version des Adapters aus der Betriebssystemebene kommt.

                ble
                github:	0.13.0 for 19 days
                latest:	0.13.0 for 84 days
                stable:	0.12.0 for 20 months
                
                AlCalzone 1 Reply Last reply Reply Quote 0
                • AlCalzone
                  AlCalzone Developer @Thomas Braun last edited by

                  @thomas-braun Es könnte tatsächlich sein, dass 0.13.0 das behebt. Die bringt eine neuere Version von noble mit, die diesen Commit enthält:
                  https://github.com/abandonware/noble/commit/f9854e34c3e74d7fb58cd983f8d45604f4b0eca2

                  Fix out of range errors for malformed EIR data.

                  0 sandoval committed to abandonware/noble
                  Fix out of range errors for malformed EIR data.
                  
                  We've sometimes encountered in the wild devices that have malformed
                  EIR data structures.
                  
                  For example, we've found the device 1c:52:16:b8:6a:f2 that
                  provided the `eir` buffer with data:
                  `[30,3,18,162,77,46,254,20,72,142,147,210,23,60,253,2,48,128,74,92,243,232,188,150,82,60,64,0,0,0,0]`.
                  This caused an out of bounds error on line 146, when
                  calling function `bytes.readUInt16LE(j)`
                  with `j = 28` which fails, since we're trying to read two bytes
                  starting from position 28 when `bytes` has only 29 elements.
                  
                  The proposed solution respects the bounds of the `bytes` buffer when
                  reading from its positions directly.
                  
                  While running scan on one device using noble, use another bluetooth-enabled linux device
                  to run a service with malformed EIR data by executing these commands:
                  
                  ```
                  sudo hciconfig hci0 up
                  sudo hciconfig hci0 leadv 3
                  sudo hcitool -i hci0 cmd 0x08 0x0008 05 04 03 02 01 00
                  ```
                  
                  Co-authored-by: Filipe Carvalhedo <filipecarvalhedo@hotmail.com>
                  Co-authored-by: Pedro Santana <pedrohenrique@loopkey.com.br>
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @AlCalzone last edited by

                    @alcalzone

                    Okay, aktuellere lib kann natürlich gut sein.

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

                      @thomas-braun
                      @AlCalzone

                      Hatte ich vor 23 Stunden dem TE schon geraten 😉
                      (Mehrmals)

                      P 1 Reply Last reply Reply Quote 1
                      • P
                        Peter1980 @haselchen last edited by

                        Also ich habe alles aktualisiert, inkl. v0.13. Jetzt bin ich noch am beobachten.
                        Aber es ist auf jeden Fall besser geworden.
                        Ob es wirklich stabil und fehlerfrei bleibt werde ich zurück melden.
                        Hatte am WE auch kaum Zeit dafür.

                        1 Reply Last reply Reply Quote 0
                        • P
                          Peter1980 @AlCalzone last edited by Peter1980

                          @alcalzone Wusste nicht das es die Funktion gibt. Jetzt hab ich Sie auch gefunden.
                          Hatte es aber schon mit dem GIT Repo link direkt aus dem Repo geupdatet.
                          Danke.

                          1 Reply Last reply Reply Quote 0
                          • P
                            Peter1980 last edited by Peter1980

                            Weiterhin das gleiche Thema. Noch jemand ne gute Idee/Ratschlag?

                            57d2a5aa-abbc-48d0-a90d-6c20b7d1d919-image.png
                            f8d15601-2b2e-4f3b-af95-eaa7a458b717-image.png
                            ee23c47e-bd87-4831-9fbc-a5090dc17145-image.png
                            5e2cacb5-d403-4f10-9905-a68dcef88939-image.png

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

                              @peter1980 Hast du noch andere Bluetooth-Hardware zum Testen? z.B. Raspberry statt externem Dongle oder umgekehrt?

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                Peter1980 @AlCalzone last edited by

                                @alcalzone aktuell nicht. Kann einen anderen externen dongel besorgen. Ich hab als Hardware einen revpi ohne Bluetooth.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                939
                                Online

                                31.9k
                                Users

                                80.2k
                                Topics

                                1.3m
                                Posts

                                4
                                23
                                931
                                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