Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Permission denied when opening serialport

    General and Desktop
    3
    5
    2825
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Ivan1120 last edited by

      Hi guys:
      Why I always get "Permission denied", when my program is opening serial port?? How to enable the permission?? I tried to key chmod 777 /dev/ttyUSB0, but it was not working.

      1 Reply Last reply Reply Quote 1
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        What are the exact permission on that device ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • I
          Ivan1120 last edited by

          I am not sure, because i use errorString() function in the QSerialPort and it shows permission denied.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            What does a ls -la return ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • K
              kuzulis Qt Champions 2020 last edited by

              In this case, a reason maybe is in that need to delete a lock file (of course if a lock file exists)...

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