Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. USB Port

    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

    USB Port

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

      Hallo zusammen,

      ich versuche einen USB Port in modbus einzustellen. Leider wird mir keine Auswahlmöglichkeit angezeigt. Hatte gestern einen Komplettabsturz und muss nun alles neu einrichten. Ich verwende zwei USB Ports. Muss ich die jetzt wieder erst wo freigeben?

      Danke!

      67776239-2ae1-428c-944b-dd9ab960e6e6-image.png

      da sind sie wohl:

      pi@kellerkind4GB:~ $ ls -la /dev/ttyUSB*
      crw-rw---- 1 root dialout 188, 0 Nov 23 09:01 /dev/ttyUSB0
      crw-rw---- 1 root dialout 188, 1 Nov 23 09:01 /dev/ttyUSB1
      
      UncleSam 2 Replies Last reply Reply Quote 0
      • UncleSam
        UncleSam Developer @SMS last edited by

        @SMS Ist der Benutzer iobroker Mitglied der Gruppe dialout?

        SMS 1 Reply Last reply Reply Quote 0
        • SMS
          SMS @UncleSam last edited by SMS

          @UncleSam

          Wo sehe ich das?

          UncleSam 1 Reply Last reply Reply Quote 0
          • UncleSam
            UncleSam Developer @SMS last edited by

            @SMS sudo usermod -G dialout iobroker

            Wenn du ioBroker mit dem Einzeiler installiert hast, sollte das bereits der Fall sein.

            SMS 1 Reply Last reply Reply Quote 0
            • SMS
              SMS @UncleSam last edited by

              @UncleSam

              Kann ich das wo nachschauen?

              UncleSam 1 Reply Last reply Reply Quote 0
              • UncleSam
                UncleSam Developer @SMS last edited by

                @SMS sagte in USB Port:

                @UncleSam

                Kann ich das wo nachschauen?

                grep 'dialout' /etc/group
                Wenn da iobroker erwähnt ist, dann ist der schon Mitglied der Gruppe.

                SMS 1 Reply Last reply Reply Quote 0
                • SMS
                  SMS @UncleSam last edited by

                  @UncleSam sagte in USB Port:

                  grep 'dialout' /etc/group

                  OK dann kann es daran nicht liegen

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

                    @SMS
                    Du kannst die Gruppen auch mit

                    sudo -u iobroker groups
                    

                    Sollte so oder ganz ähnlich aussehen:

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

                      @Thomas-Braun

                      pi@kellerkind4GB:~ $ sudo -u iobroker groups
                      iobroker dialout
                      

                      Meine gpio's gehen irgendwie auch nicht gerade. haben aber heute morgen funktioniert 😞

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

                        @SMS Für die gpio fehlt wohl auch die Gruppe.

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

                          @Thomas-Braun

                          wie füge ich das dazu?

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

                            @SMS

                            sudo usermod -aG GRUPPENNAME BENUTZERNAME
                            
                            SMS UncleSam 2 Replies Last reply Reply Quote 0
                            • SMS
                              SMS @Thomas Braun last edited by

                              @Thomas-Braun

                              Gruppennname = dialout?
                              Benutzername= ??

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • UncleSam
                                UncleSam Developer @SMS last edited by

                                @SMS Mal eine Frage: wie hast du alles installiert? Mit dem Einzeiler Skript oder irgendwie von Hand?

                                SMS 1 Reply Last reply Reply Quote 0
                                • SMS
                                  SMS @UncleSam last edited by SMS

                                  @UncleSam

                                  ich hatte das Image welches man hier (https://www.iobroker.net/#de/download) downloaden konnte

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

                                    @SMS
                                    Für USB sollte der user auch in tty drin sein.
                                    Versuch mal so:

                                    sudo usermod -aG tty audio video bluetooth redis gpio iobroker
                                    

                                    USB-Gerät ist nicht als /dev/ttyUSB... verfügbar

                                    Das kann dadurch verursacht sein, dass der aktuelle Benutzer nicht in der Gruppe tty eingetragen ist. Kontrollieren lässt sich das für den aktuellen Benutzer mit dem Befehl:

                                    SMS 1 Reply Last reply Reply Quote 0
                                    • UncleSam
                                      UncleSam Developer @SMS last edited by

                                      @SMS sagte in USB Port:

                                      ich hatte das Image welches mal hier (https://www.iobroker.net/#de/download) downloaden konnte

                                      OK, das ist der Fehler. Das Image ist über ein Jahr alt und hat nicht die richtigen Berechtigungen.

                                      Am einfachsten nimmst du das aktuelle Raspberry OS Image von ihrer Website und installierst dann mit diesem Einzeiler ioBroker:

                                      curl -sL https://iobroker.net/install.sh | bash -
                                      

                                      Damit hast du ein aktuelles System.

                                      SMS 1 Reply Last reply Reply Quote 0
                                      • UncleSam
                                        UncleSam Developer @Thomas Braun last edited by

                                        @Thomas-Braun sagte in USB Port:

                                        sudo usermod -aG GRUPPENNAME BENUTZERNAME

                                        Sorry, das war mein Fehler, es fehlte das "a"!

                                        1 Reply Last reply Reply Quote 0
                                        • SMS
                                          SMS @UncleSam last edited by

                                          @UncleSam

                                          das muss ich dann aber auf allen Pi's installieren? Ich habe einen Master und mehrere Slaves am laufen.

                                          UncleSam 1 Reply Last reply Reply Quote 0
                                          • SMS
                                            SMS @Thomas Braun last edited by SMS

                                            @Thomas-Braun

                                            pi@kellerkind4GB:~ $ sudo usermod -aG tty audio video bluetooth redis gpio iobroker
                                            Aufruf: usermod [Optionen] BENUTZERZUGANG
                                            
                                            Optionen:
                                              -c, --comment KOMMENTAR       Neuer KOMMENTAR im GECOS-Feld
                                              -d, --home HOME_DIR           Neues Home-Verzeichnis für den Benutzer-
                                                                            zugang
                                              -e, --expiredate ABL_DATUM    Ablaufdatum auf ABL_DATUM setzen
                                              -f, --inactive INAKTIV        Passwort nach Ablauf von INAKTIV
                                                                            deaktivieren
                                              -g, --gid GRUPPE              Erzwinge GRUPPE als neue primäre Gruppe
                                              -G, --groups GRUPPEN          Neue Liste zusätzlicher GRUPPEN
                                              -a, --append                  Benutzer zu zusätzlichen Gruppen hinzufügen,
                                                                            die mit der Option -G angegeben werden, ohne
                                                                            ihn dabei aus anderen Gruppen zu entfernen
                                              -h, --help                    Diese Hilfe anzeigen, sonst nichts
                                              -l, --login NEUER_NAME        Neuer Wert für den Namen des Benutzerzugangs
                                              -L, --lock                    Den Benutzerzugang sperren
                                              -m, --move-home               Den Inhalt des Home-Verzeichnisses an den
                                                                            neuen Ort verschieben (nur mit -d benutzen)
                                              -o, --non-unique              Benutzung von doppelter (nicht einmaliger)
                                                                            UID erlauben
                                              -p, --password PASSWORD       Ein verschlüsseltes Passwort als neues
                                                                            Passwort verwenden
                                              -R, --root CHROOT_VERZ        Verzeichnis für chroot
                                              -s, --shell SHELL             Neue Login-Shell für den Benutzerzugang
                                              -u, --uid UID                 Neue UID des Benutzerzugangs
                                              -U, --unlock                  Den Benutzerzugang entsperren
                                              -v, --add-subuids FIRST-LAST  add range of subordinate uids
                                              -V, --del-subuids FIRST-LAST  remove range of subordinate uids
                                              -w, --add-subgids FIRST-LAST  add range of subordinate gids
                                              -W, --del-subgids FIRST-LAST  remove range of subordinate gids
                                              -Z, --selinux-user SEUSER     neue SELinux-Benutzer-Zuordnung für den
                                                                            Benutzerzugang
                                            
                                            pi@kellerkind4GB:~ $
                                            

                                            wie heißt denn die Gruppe und der Benutzer?

                                            Thomas Braun 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

                                            849
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            usb port
                                            3
                                            29
                                            1173
                                            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