Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BLE und Radar2 rot

    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

    BLE und Radar2 rot

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

      Ich befürchte, daß BT Signale weder bei Radar noch bei BLE durchkommen.
      Wenn ich BLE deaktiviere und Radar2 aktiviere, bleibt Radar2 rot, anders herum das selbe.
      Wenn ich beide Instanzen deaktiviere und Radar aktiviere, ist dieser grün, aber die Objekte werden als false getriggert.
      In den Objekten bei Info wird angezeigt, daß dir entsprechende Instanz läuft.
      Bei sudo hcitool scan bzw sudo hcitool lescan wird jedoch alles erkannt.
      Ich vermute, daß es durch die neue Installationsroutine zu Berechtigungsproblemen kommt.
      Was kann man tun?
      Gruß,
      Mathias

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

        Du kannst nicht beide gleichzeitig mit dem selben Bluetooth-Adapter betreiben - zumindest nicht mit jeder Bluetooth-Hardware.
        Wenn BLE rot bleibt, gibts irgend einen Fehler - schau mal im Log. Bei fehlenden Berechtigungen ist der Status nämlich zumindest gelb.

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

          Schau doch mal, was ich geschrieben habe............
          das ist mir durchaus bewußt, dass ich nur einen Adapter mit einem Dongle betreiben kann.
          Deshalb werden selbstverständlich 2 instanzen deaktiviert und eine wird aktiviert, bevor ich etwas mache.

          geht trotzdem nicht. BLE bleibt rot, nachdem ich Radar deaktiviert habe.
          das Gleiche Problem habe ich auch anderes herum, also Radar rot, BLE deaktiviert.

          Hier meine Logs Radar2, werden immer wieder wiederholt.

          code
          host.iobroker-rock64	2019-03-06 15:42:47.390	info	Restart adapter system.adapter.radar2.0 because enabled
          host.iobroker-rock64	2019-03-06 15:42:47.389	error	instance system.adapter.radar2.0 terminated with code 1 ()
          host.iobroker-rock64	2019-03-06 15:42:47.389	error	Caught by controller[0]: at Function.Module._load (module.js:498:3)
          host.iobroker-rock64	2019-03-06 15:42:47.389	error	Caught by controller[0]: at tryModuleLoad (module.js:506:12)
          host.iobroker-rock64	2019-03-06 15:42:47.389	error	Caught by controller[0]: at Module.load (module.js:566:32)
          host.iobroker-rock64	2019-03-06 15:42:47.388	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
          host.iobroker-rock64	2019-03-06 15:42:47.388	error	Caught by controller[0]: at Module._compile (module.js:653:30)
          host.iobroker-rock64	2019-03-06 15:42:47.388	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/raw-socket/index.js:4:11)
          host.iobroker-rock64	2019-03-06 15:42:47.387	error	Caught by controller[0]: at require (internal/module.js:11:18)
          host.iobroker-rock64	2019-03-06 15:42:47.387	error	Caught by controller[0]: at Module.require (module.js:597:17)
          host.iobroker-rock64	2019-03-06 15:42:47.387	error	Caught by controller[0]: at Function.Module._load (module.js:475:25)
          host.iobroker-rock64	2019-03-06 15:42:47.387	error	Caught by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
          host.iobroker-rock64	2019-03-06 15:42:47.386	error	Caught by controller[0]: Error: Cannot find module './build/Release/raw.node'
          host.iobroker-rock64	2019-03-06 15:42:47.386	error	Caught by controller[0]: ^
          host.iobroker-rock64	2019-03-06 15:42:47.386	error	Caught by controller[0]: throw err;
          host.iobroker-rock64	2019-03-06 15:42:47.384	error	Caught by controller[0]: module.js:550
          host.iobroker-rock64	2019-03-06 15:42:46.871	info	instance system.adapter.radar2.0 started with pid 4000
          host.iobroker-rock64	2019-03-06 15:42:16.846	info	Restart adapter system.adapter.radar2.0 because enabled
          host.iobroker-rock64	2019-03-06 15:42:16.845	error	instance system.adapter.radar2.0 terminated with code 1 ()
          Caught	2019-03-06 15:42:16.845	error	by controller[0]: at Function.Module._load (module.js:498:3)
          Caught	2019-03-06 15:42:16.845	error	by controller[0]: at tryModuleLoad (module.js:506:12)
          Caught	2019-03-06 15:42:16.845	error	by controller[0]: at Module.load (module.js:566:32)
          Caught	2019-03-06 15:42:16.844	error	by controller[0]: at Object.Module._extensions..js (module.js:664:10)
          Caught	2019-03-06 15:42:16.844	error	by controller[0]: at Module._compile (module.js:653:30)
          Caught	2019-03-06 15:42:16.844	error	by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/raw-socket/index.js:4:11)
          Caught	2019-03-06 15:42:16.844	error	by controller[0]: at require (internal/module.js:11:18)
          Caught	2019-03-06 15:42:16.843	error	by controller[0]: at Module.require (module.js:597:17)
          Caught	2019-03-06 15:42:16.843	error	by controller[0]: at Function.Module._load (module.js:475:25)
          Caught	2019-03-06 15:42:16.843	error	by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
          Caught	2019-03-06 15:42:16.843	error	by controller[0]: Error: Cannot find module './build/Release/raw.node'
          Caught	2019-03-06 15:42:16.842	error	by controller[0]: ^
          Caught	2019-03-06 15:42:16.842	error	by controller[0]: throw err;
          Caught	2019-03-06 15:42:16.842	error	by controller[0]: module.js:550_text
          

          Hier meine Logs BLE:

          host.iobroker-rock64	2019-03-06 15:46:06.122	info	Do not restart adapter system.adapter.ble.0 because desired by instance
          host.iobroker-rock64	2019-03-06 15:46:06.122	error	instance system.adapter.ble.0 terminated by request of the instance itself and will not be restarted, before user restarts it.
          ble.0	2019-03-06 15:46:05.700	info	loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default
          ble.0	2019-03-06 15:46:05.543	info	starting. Version 0.7.1 in /opt/iobroker/node_modules/iobroker.ble, node: v8.15.1
          ble.0	2019-03-06 15:46:05.458	debug	statesDB connected
          ble.0	2019-03-06 15:46:05.398	debug	objectDB connected
          host.iobroker-rock64	2019-03-06 15:46:04.127	info	instance system.adapter.ble.0 started with pid 4060
          host.iobroker-rock64	2019-03-06 15:46:04.099	info	object change system.adapter.ble.0
          

          Gruß,
          Mathias

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

            Bei BLE fehlt mir irgendwie die Meldung, aber in beiden Fällen fehlt eine Abhängigkeit, die nicht sauber installiert wurde.

            Gehe mal in den Ordner /opt/iobroker/node_modules/iobroker.ble und führe npm install aus. Sollten hierbei Fehler auftreten, bitte posten.

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

              Hier die Fehler.....

              t import Const
              ImportError: No module named compiler.ast
              gyp ERR! configure error
              gyp ERR! stack Error: `gyp` failed with exit code: 1
              gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
              gyp ERR! stack     at emitTwo (events.js:126:13)
              gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
              gyp ERR! System Linux 4.4.132-1072-rockchip-ayufan-ga1d27dba5a2e
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.ble/node_modules/deasync
              gyp ERR! node -v v8.15.1
              gyp ERR! node-gyp -v v3.8.0
              gyp ERR! not ok
              Build failed
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
              
              npm ERR! code ELIFECYCLE
              npm ERR! errno 1
              npm ERR! deasync@0.1.14 install: `node ./build.js`
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the deasync@0.1.14 install script.
              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/rock64/.npm/_logs/2019-03-06T15_19_26_939Z-debug.log
              

              Mir vergeht langsam die Lust........
              nun werde ich die nächste Baustelle hier posten.......
              Gruß,
              Mathias

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

                @MathiasJ Das scheint mir oben abgeschnitten. Ist das wirklich alles?

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

                  Ja, das sind alle Fehler.
                  Davor kamen Warnungen.
                  Gruß,
                  Mathias

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

                    Soll ich vllt ein anderes OS installieren?
                    Mit dem Neuaufbau habe ich ja schon meine Erhafrung. Ich könnte von srmbian nach Ubuntu 18.04 für Rock64 wechseln.
                    Vllt gehts dann.
                    Gruß
                    Mathias

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

                      In Zukunft wäre der komplette Output interessant, zumal die Meldung mittem im Wort abgeschnitten scheint. In deinem Fall scheint das Problem an einer falschen Python-Variante zu liegen.

                      apt-get install python-dev
                      

                      und dann die Reparaturinstallation von BLE nochmal probieren - das gleiche könnte für Radar2 nötig sein.

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

                        Reperaturinstallation?
                        Du meinst, den Adapter kpl. neu installieren?

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

                          Nee das selbe wie oben:

                          @AlCalzone sagte in BLE und Radar2 rot:

                          Gehe mal in den Ordner /opt/iobroker/node_modules/iobroker.ble und führe npm install aus. Sollten hierbei Fehler auftreten, bitte posten.

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

                            so, jetzt ist wenigstens Radar2 grün.
                            BLE wird heruntergefahren, wie vorher.
                            Ich habe keine Fehlermeldungen bei der Reperaturinstallation von Radar2 und BLE.
                            Nur steige ich da irgendwie nicht durch:
                            USB-Dongle auf Bus2-Gerät2
                            USB-Dongle auf Bus3-Gerät2,
                            Was gebe ich jetzt in die Adapter ein?

                            Edit
                            es werde alle G-Tags erkannt.
                            Nur BLE spinnt herum und Zigbee läßt sich auch nicht installieren.

                            Edit2
                            Radar2 ist alle paar Sekunden offline.
                            Im Log bekomme ich die Meldung:

                            host.iobroker-rock64	2019-03-06 18:00:06.258	info	Restart adapter system.adapter.radar2.0 because enabled
                            host.iobroker-rock64	2019-03-06 18:00:06.257	error	instance system.adapter.radar2.0 terminated with code 7 (Adapter already running)
                            

                            ich werde IObroker morgen neu aufsetzen, dieses mal mit Ubuntu 18.04 für Rock64.
                            Vllt habe ich da mehr Glück. es läuft bei dieser Installation zu vel schief.

                            Gruß,
                            Mathias

                            AlCalzone 2 Replies Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer @MathiasJ last edited by

                              @MathiasJ sagte in BLE und Radar2 rot:

                              BLE wird heruntergefahren, wie vorher.

                              Steht irgendwas im Log?

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

                                @MathiasJ sagte in BLE und Radar2 rot:

                                Adapter already running

                                Kein Grund direkt neu aufzusetzen - da läuft noch ein Adapter-Prozess, den ioBroker nicht beendet bekommt. Starte die Kiste mal sauber neu.

                                Bzgl. BLE: Bitte mal von Github aktualisieren, dann sehen wir vllt auch warum der nicht startet.

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

                                  Ich bin Dir noch etwas schuldig:

                                  Hier erst mal der Log vom BLE:

                                  host.iobroker-rock64	2019-03-06 18:02:43.167	error	instance system.adapter.ble.0 terminated by request of the instance itself and will not be restarted, before user restarts it.
                                  

                                  Mehr kommt leider nicht, bis ich BLE neu gestartet habe.
                                  Keine 10 Sekunden später kommt die gleiche Meldung usw.

                                  Ach ja, Deine Antwort hat sich mit meiner überschnitten. ich habe in Edit2 noch was gepostet.

                                  BLE im Terminal oder im Admin neu installieren? Github geht ja auch im Admin.
                                  Ich habe nur an einer Neuinstallation des Systems gedacht, weil wir nicht wissen, was sonst noch falsch läuft.

                                  Gruß,
                                  Mathias

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

                                    @MathiasJ sagte in BLE und Radar2 rot:

                                    BLE im Terminal oder im Admin neu installieren? Github geht ja auch im Admin.

                                    Admin bitte.

                                    weil wir nicht wissen, was sonst noch falsch läuft.

                                    Kannst aber nicht sicher sein, dass du alle Probleme schon gefunden hast 😉

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

                                      BLE und weitere Adapter im Admin über Github neu installiert, weil die Config-Seite bei anderen Adaptern nicht da war.
                                      Nun sind sie da.
                                      BLE wird immer noch heruntergefahren und wartet darauf, daß sie von mir neu gestartet wurde. bringt nur nochts. nach ein par sekunden wird BLE wieder heruntergefahren usw.
                                      Hier ist der Log der Installation:

                                       npm ERR! path /opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/node_modules/abbrev
                                      npm ERR! code EACCES
                                      npm ERR! errno -13
                                      npm ERR! syscall access
                                      npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/node_modules/abbrev'
                                      npm ERR!  { Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/node_modules/abbrev'
                                      npm ERR!   stack: 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/node_modules/abbrev\'',
                                      npm ERR!   errno: -13,
                                      npm ERR!   code: 'EACCES',
                                      npm ERR!   syscall: 'access',
                                      npm ERR!   path: '/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/node_modules/abbrev' }
                                      npm ERR! 
                                      npm ERR! The operation was rejected by your operating system.
                                      npm ERR! It is likely you do not have the permissions to access this file as the current user
                                      npm ERR! 
                                      npm ERR! If you believe this might be a permissions issue, please double-check the
                                      npm ERR! permissions of the file and its containing directories, or try running
                                      npm ERR! the command again as root/Administrator (though this is not recommended).
                                      
                                      

                                      Der Adapter wurde erfolgreich installiert. Vllt deinstalliere ich die Instanz, mache einen Neustart und installiere sie mal neu?
                                      Radar2 läuft jetzt durch, seit dem ich die Kiste neu gestartet habe.

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

                                        @MathiasJ Ja da fehlt das Bluetooth-Modul, das wegen fehlendem Schreibzugriff nicht installiert werden kann. Bist du auf der Kommandozeile üblicherweise als root unterwegs oder als ein anderer User? Falls ersteres, könnte

                                        chown -R iobroker:iobroker /opt/iobroker
                                        

                                        helfen.

                                        1 Reply Last reply Reply Quote 1
                                        • MathiasJ
                                          MathiasJ last edited by

                                          danke.....
                                          ich muß IObroker komplett neu aufsetzen.
                                          Ich wollte gerade die SD-karte sichern.
                                          Jetzt ist IObroker gar nicht mehr erreichbar.
                                          Also von vorne.... 😢

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

                                            so.....
                                            nachdem ich alles neu aufgesetzt und USB-Dongles getauscht habe
                                            BLE läuft........
                                            Radar2 läuft.......

                                            Er war nicht nur ein Software- sondern auch ein Hardwareproblem 😞
                                            Einer der beiden Dongles wurde nicht erkannt. um genau zu sein der Logilink.
                                            Jetzt laufen beide Adapter mit Speedlink Dongles.
                                            Vielen lieben Dank, @AlCalzone

                                            Gruß,
                                            Mathias

                                            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

                                            856
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            ble adapter bluetooth radar adapter radar2 radar2 adapter
                                            2
                                            24
                                            2782
                                            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