Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. LIRC Adapter Funktion mit RPI4

    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

    LIRC Adapter Funktion mit RPI4

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

      @johndoe sagte in LIRC Adapter Funktion mit RPI4:

      Wie gesagt, übers Terminal kann ich die IR-LED ansteuern.

      Das heißt nix, der iobroker muss als client auf den lircd zugreifen können.
      lirc bringt aber ganz merkwürdige Abhängigkeiten zum X-Server und dem Druckersystem cups mit, das mag ich nicht auf meinem System haben. Sonst hätte ich das mal installiert.

      1 Reply Last reply Reply Quote 0
      • J
        JohnDoe last edited by

        Ich habe jetzt gerade mal die LIRC Instanz neu gestartet.
        Danach bekomme ich diese Ausgabe (systemctl status lirc*):

        Aug 13 17:59:02 SmartHomePi lircd[502]: lircd-0.10.1[502]: Info: removed client
        Aug 13 17:59:02 SmartHomePi lircd-0.10.1[502]: Info: removed client
        Aug 13 17:59:10 SmartHomePi lircd[502]: lircd-0.10.1[502]: Notice: accepted new client from 127.0.0.1
        Aug 13 17:59:10 SmartHomePi lircd[502]: lircd-0.10.1[502]: Info: Cannot configure the rc device for /dev/lirc0
        Aug 13 17:59:10 SmartHomePi lircd-0.10.1[502]: Notice: accepted new client from 127.0.0.1
        Aug 13 17:59:10 SmartHomePi lircd-0.10.1[502]: Info: Cannot configure the rc device for /dev/lirc0
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @JohnDoe last edited by Thomas Braun

          @johndoe sagte in LIRC Adapter Funktion mit RPI4:

          /dev/lirc0

          Wie sehen da die Rechte aus?

          ls -l /dev/lirc0
          
          1 Reply Last reply Reply Quote 0
          • J
            JohnDoe last edited by

            @thomas-braun said in LIRC Adapter Funktion mit RPI4:

            ls -l /dev/lirc0

            crw-rw---- 1 root video 251, 0 Aug 13 16:18 /dev/lirc0
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @JohnDoe last edited by

              @johndoe

              Ist der user iobroker in der Gruppe 'video' drin?
              Vermutlich nicht.

              sudo -u iobroker groups
              
              1 Reply Last reply Reply Quote 0
              • J
                JohnDoe last edited by

                iobroker tty dialout audio video bluetooth gpio i2c
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @JohnDoe last edited by

                  @johndoe

                  Bitte vollständige Ein- und Ausgabezeilen posten.

                  Lirc ist etwas tricky. Im Ubuntu-Wiki gibt es noch ein paar Hinweise:

                  https://wiki.ubuntuusers.de/Lirc/

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JohnDoe @Thomas Braun last edited by JohnDoe

                    @thomas-braun said in LIRC Adapter Funktion mit RPI4:

                    Bitte vollständige Ein- und Ausgabezeilen posten.

                    Was meinst du?
                    So:

                    $ sudo -u iobroker groups
                    iobroker tty dialout audio video bluetooth gpio i2c
                    
                    

                    Mehr kommt da nicht.

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

                      @johndoe

                      So.

                      echad@chet:/opt/iobroker $ sudo -u iobroker groups
                      iobroker tty dialout audio video plugdev bluetooth gpio i2c
                      
                      1 Reply Last reply Reply Quote 0
                      • J
                        JohnDoe last edited by

                        SHPI@SmartHomePi:~ $ sudo -u iobroker groups
                        iobroker tty dialout audio video bluetooth gpio i2c
                        
                        1 Reply Last reply Reply Quote 0
                        • J
                          JohnDoe last edited by JohnDoe

                          Aber Fakt ist doch, dass der LIRC Adapter mit lirc verbunden ist und lirc auch sendet.
                          Was bedeutet das denn:

                          Aug 13 17:59:10 SmartHomePi lircd-0.10.1[502]: Info: Cannot configure the rc device for /dev/lirc0
                          

                          ?

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

                            @johndoe

                            Vermutlich nichts, du willst ja keine rc / Fernbedienung betreiben.

                            1 Reply Last reply Reply Quote 0
                            • J
                              JohnDoe last edited by JohnDoe

                              Kann es daran liegen:

                              SHPI@SmartHomePi:~ $ sudo systemctl restart lirc.service
                              Failed to restart lirc.service: Unit lirc.service not found.
                              

                              ?

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

                                @johndoe sagte in LIRC Adapter Funktion mit RPI4:

                                lirc.service

                                Das heißt auch lircd.service

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JohnDoe last edited by JohnDoe

                                  Hat es was zu sagen, dass die Meldungen von lircd.service doppelt kommen:

                                  SHPI@SmartHomePi:~ $ systemctl status lircd.service
                                  ● lircd.service - Flexible IR remote input/output application support
                                       Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
                                       Active: active (running) since Sat 2022-08-13 20:51:49 CEST; 5min ago
                                  TriggeredBy: ● lircd.socket
                                         Docs: man:lircd(8)
                                               http://lirc.org/html/configure.html
                                     Main PID: 965 (lircd)
                                        Tasks: 2 (limit: 1829)
                                          CPU: 1.815s
                                       CGroup: /system.slice/lircd.service
                                               └─965 /usr/sbin/lircd --nodaemon
                                  
                                  Aug 13 20:53:01 SmartHomePi lircd[965]: lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1
                                  Aug 13 20:53:01 SmartHomePi lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1
                                  Aug 13 20:53:02 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: removed client
                                  Aug 13 20:53:02 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: removed client
                                  Aug 13 20:53:02 SmartHomePi lircd-0.10.1[965]: Info: removed client
                                  Aug 13 20:53:02 SmartHomePi lircd-0.10.1[965]: Info: removed client
                                  Aug 13 20:53:33 SmartHomePi lircd[965]: lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1
                                  Aug 13 20:53:33 SmartHomePi lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1
                                  Aug 13 20:53:33 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: Cannot configure the rc device for /dev/lirc0
                                  Aug 13 20:53:33 SmartHomePi lircd-0.10.1[965]: Info: Cannot configure the rc device for /dev/lirc0
                                  
                                  

                                  ?

                                  Ich habe LIRC noch mal neu installiert und konfiguriert: Keine Änderung.
                                  Der LIRC-Adapter ist mit dem Client verbunden und über die RPI-Konsole kann ich IR-Kommandos schicken.
                                  Aber im IOBroker werden die Fernbedienung-KEYs nicht angezeigt.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    JohnDoe last edited by

                                    Nachdem ich jetzt alles noch mal neu installiert und konfiguriert habe, läuft LIRC einwandfrei. 👍

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    525
                                    Online

                                    31.9k
                                    Users

                                    80.3k
                                    Topics

                                    1.3m
                                    Posts

                                    2
                                    20
                                    394
                                    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