Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [SOLVED] QextSerialPort problem
QtWS25 Last Chance

[SOLVED] QextSerialPort problem

Scheduled Pinned Locked Moved 3rd Party Software
5 Posts 3 Posters 3.2k Views
  • 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.
  • X Offline
    X Offline
    xeroblast
    wrote on last edited by
    #1

    im running openSuse 11.4 and i have created a program that uses a serial port using QextSerialPort.

    i run my program in a normal user but the port will not open but if i run as root then the serial port is open.

    how do i solve this? any workaround to be a root user when using the serial port?

    thanks.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xeroblast
      wrote on last edited by
      #2

      my current solutions is making the user a member of the group that is handling the /dev/ttyS0.

      is there any way that the current user doesnt need to be a member of a group?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Nope. You need the permissions to access the port, otherwise that won't work.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xeroblast
          wrote on last edited by
          #4

          thanx.. so thats the only way...

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #5

            Yes. Typically add the user you run your application as to the uucp group or maybe enable filesystem ACLs and set a suitable ACL on your serial device.

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved