Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter rpi2 2.x

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter rpi2 2.x

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

      @smallfeuer sagte in Test Adapter rpi2 2.x:

      Ich hab mal ein zwei Pfade probiert...

      Du sollst nix probieren, du sollst in das richtige Verzeichnis gehen...
      Schaut auf einem gescheiten System dann so aus:

      echad@chet:/opt/iobroker $ npm ls opengpio
      iobroker.inst@3.0.0 /opt/iobroker
      └─┬ iobroker.rpi2@2.3.0
        └── opengpio@1.0.16
      
      echad@chet:/opt/iobroker $ 
      
      S 2 Replies Last reply Reply Quote 0
      • S
        Smallfeuer @Thomas Braun last edited by

        @thomas-braun Na das steht in Zeile 35-37 auch 🙂

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

          @thomas-braun Aber merkwürdig, in Zeile 3 (wenn auch zu tief im Pfad) zeigt er

          ├── UNMET DEPENDENCY opengpio@^1.0.16
          

          Zeile 34-37 dann:

          smallfeuer@pi3garage:/opt/iobroker $ npm ls opengpio
          iobroker.inst@3.0.0 /opt/iobroker
          └─┬ iobroker.rpi2@2.3.0
            └── opengpio@1.0.17
          
          S 1 Reply Last reply Reply Quote 0
          • S
            Smallfeuer @Smallfeuer last edited by Smallfeuer

            @thomas-braun
            Der Pfad /opt/iobroker/iobroker-date/files/rpi2.admin wurde bei mir auf dem Master erstellt. Nicht auf dem Slave. Ist das korrekt? Wäre es nicht sinnvoll das die Daten auf dem Slave installiert werden?

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

              @smallfeuer

              Das wird dahin installiert, wo du sagst das es hin soll...

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

                @thomas-braun sagte in Test Adapter rpi2 2.x:

                iert, wo du sagst das es h

                Bei der installation in der Rubrik Adapter habe ich den pi3 ausgewählt, installiert wurde dort aber nichts

                $ iobroker add rpi2 auto --host pi3garage --debug
                
                upload [13] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/de/translations.json i18n/de/translations.json application/json
                
                upload [12] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/en/translations.json i18n/en/translations.json application/json
                
                upload [11] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/es/translations.json i18n/es/translations.json application/json
                
                upload [10] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                
                upload [9] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/it/translations.json i18n/it/translations.json application/json
                
                upload [8] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                
                upload [7] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                
                upload [6] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                
                upload [5] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                
                upload [4] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
                
                upload [3] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
                
                upload [2] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/jsonConfig.json jsonConfig.json application/json
                
                upload [1] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/rpi2.png rpi2.png image/png
                
                upload [0] rpi2.admin /opt/iobroker/node_modules/iobroker.rpi2/admin/words.js words.js application/javascript
                
                host.pi3garage create instance rpi2
                
                S 1 Reply Last reply Reply Quote 0
                • S
                  Smallfeuer @Smallfeuer last edited by Smallfeuer

                  @thomas-braun

                  admin.0
                  2024-12-29 23:25:08.046	warn	rpi2 has an invalid jsonConfig: [{"instancePath":"/items/_gpios/items/_pullUpWarning/hidden","schemaPath":"#/patternProperties/%5E.%2B/properties/hidden/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/items/_gpios","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/9/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]
                  

                  Aufgefallen ist es mir auf Grund dieser Meldung

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Smallfeuer @Smallfeuer last edited by

                    @Garfonso @thomas-braun
                    Fall jemand eine Idee hat, bin für jeden Rat dankbar.
                    Ich hab jetzt ein sauberes - neu aufgesetztes System als Slave und kann mit der aktuellen Beta seit dem letzten Host Update im stable keine Gpio mehr sehen bzw. setzen. Der Host läuft auf Proxmoxx, der Slave ist ein Pi3 B. Falls ich noch irgendwie mit Daten beitragen kann sagt es.

                    1 Reply Last reply Reply Quote 1
                    • S
                      Smallfeuer last edited by

                      Hier noch der DEBUG Text.

                      
                      rpi2.0
                      2024-12-30 12:24:43.720	warn	If the library is installed and npm list | grep opengpio shows the npm library is also installed, please report this issue to the adapter developer with the model of your device and deboug output from an adapter start.
                      rpi2.0
                      2024-12-30 12:24:43.720	warn	Please make sure that libgpiod-dev (on raspian/debian run sudo apt install libgpiod-dev) is installed in the system and then reinstall the adapter.
                      
                      rpi2.0
                      2024-12-30 12:24:43.719	warn	Cannot initialize GPIO: No chip found. GPIO functionality disabled!
                      rpi2.0
                      2024-12-30 12:24:43.718	debug	Got 3 from Raspberry Pi 3 Model B Plus Rev 1.3.
                      rpi2.0
                      2024-12-30 12:24:43.716	debug	STDERR:
                      rpi2.0
                      2024-12-30 12:24:43.715	debug	CPU Info: Raspberry Pi 3 Model B Plus Rev 1.3
                      rpi2.0
                      2024-12-30 12:24:43.700	debug	undefined
                      rpi2.0
                      2024-12-30 12:24:43.459	debug	Creating gpio.17.isInput
                      rpi2.0
                      2024-12-30 12:24:43.375	debug	wlan disabled -> clean up.
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Smallfeuer last edited by

                        @smallfeuer sagte in Test Adapter rpi2 2.x:

                        2024-12-30 12:24:43.719 warn Cannot initialize GPIO: No chip found. GPIO functionality disabled!

                        Ist das im

                        rpi-config
                        

                        aktiviert?

                        S S 2 Replies Last reply Reply Quote 0
                        • S
                          Smallfeuer @Thomas Braun last edited by

                          @thomas-braun Guten Morgen 😉 raspi-config meinst du? Ja, dort ist aktiv. Testweise hab ich grad den Zugriff mit folgender "Datei" getestet:

                          import lgpio
                          import time
                          
                          # Öffne den GPIO-Chip
                          h = lgpio.gpiochip_open(0)
                          
                          # Definiere den Pin 17 als Eingang
                          lgpio.gpio_claim_output(h, 17, lgpio.LOW)
                          lgpio.gpio_claim_input(h, 17)
                          
                          while True:
                              # Lies den Zustand des Pins
                              zustand = lgpio.gpio_read(h, 17)
                              print("Pin 17: ", zustand)
                              time.sleep(0.1)
                          
                          # Schließe den GPIO-Chip
                          lgpio.gpiochip_close(h)
                          

                          Das auslesen des Pins klappt damit einwandfrei.

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

                            @thomas-braun sagte in Test Adapter rpi2 2.x:

                            @smallfeuer sagte in Test Adapter rpi2 2.x:

                            Der Befehl npm list | grep opengpio bringt auch keine Ausgabe

                            In welchem Verzeichnis ausgeführt?
                            Am besten immer die vollen Ein- und Ausgaben inkl. prompt im Terminal zeigen.

                            Der adapter sollte sich eigentlich so melden:

                            2024-12-29 21:57:25.585  - info: rpi2.0 (558114) starting. Version 2.3.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v23.5.0, js-controller: 7.0.6
                            2024-12-29 21:57:26.227  - info: rpi2.0 (558114) GPIO ports are not configured
                            

                            GPIOs habe ich auf meiner Kiste nicht eingestellt, daher die Meldung an der Stelle.

                            Hast du mal testweise einen EINGANG bei dir definiert?

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

                              @smallfeuer sagte in Test Adapter rpi2 2.x:

                              Hast du mal testweise einen EINGANG bei dir definiert?

                              Nein, mit GPIOs hab ich noch nie irgendwas gemacht.

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

                                @thomas-braun Na probier doch mal, ein Eingang definieren tut ja nicht weh. Dann mal neu starten ob der Fehler bei dir identisch auftritt. Wenn ich keine GPIO definiere/brauche, hab ich ja keine Fehlermeldung. Dann sieht es aus wie bei dir.

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

                                  @smallfeuer

                                  Nein, werde ich nicht machen.

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

                                    @thomas-braun Naja, bisher hörte sich das immer so an, als ob es bei dir mit der 2.3.0 funktioniert. Da du keine GPIO Pin nutzt, brauchst, geschweige denn testen möchtest, weiß ich ehrlich gesagt nicht wie wir hier weiter kommen wollen.
                                    Hatte ja gestern noch Hoffnung das es an meinem alten System liegt.

                                    @ALL Hat jemand die 2.3.0 evtl. mit der 32 Bit Lite Version am laufen, bzw. überhaupt irgendwie GPIO EIN-AUSgänge die er/sie nutzt?

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

                                      @smallfeuer

                                      Ich weiß nicht mal wo und wie man die Dinger einstellt, weil ich das noch nie benötigt habe.

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

                                        @thomas-braun Na das ist easy, einfach bei der Instanz auf Einstellung, dann der Reiter GPIO und dort hinzufügen. Kannst die Pin 17 beispielsweise einfach als Eingang definieren. Dort auch wieder löschen, neustart -> Fehlermeldung wieder weg.

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

                                          @smallfeuer

                                          Hier kein Ding:

                                          2024-12-30 13:25:47.003  - info: rpi2.0 (558114) Got terminate signal TERMINATE_YOURSELF
                                          2024-12-30 13:25:47.011  - info: rpi2.0 (558114) terminating
                                          2024-12-30 13:25:47.013  - info: rpi2.0 (558114) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                          2024-12-30 13:25:47.511  - info: rpi2.0 (558114) terminating
                                          2024-12-30 13:25:54.001  - info: rpi2.0 (609403) starting. Version 2.3.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v23.5.0, js-controller: 7.0.6
                                          
                                          

                                          Nix Fehlermeldung.

                                          Edit: Wenn ich den neuen Eintrag dann wieder lösche kommt natürlich korrekterweise der Hinweis, das kein GPIO konfiguriert ist:

                                          2024-12-30 13:35:54.277  - info: rpi2.0 (609889) starting. Version 2.3.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v23.5.0, js-controller: 7.0.6
                                          2024-12-30 13:35:54.846  - info: rpi2.0 (609889) GPIO ports are not configured
                                          
                                          
                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            Smallfeuer @Thomas Braun last edited by Smallfeuer

                                            @thomas-braun na das ist ja interessant. Was für ein Pi hast du? Kann es sein das es an der Node Version liegt?
                                            Den State in den Objekten bekommst du angezeigt?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            788
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            27
                                            511
                                            71425
                                            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