Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    QSerialPort and non-canonical mode on Linux

    General and Desktop
    2
    3
    1138
    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.
    • P
      Pavlya last edited by

      Hello.

      I need to set my QSerialPort in non-canonical (raw) mode. When I work with native API I use open() function, and struct termios with cfmakeraw() for changing mode. How can I do it for QSerialPort. Maybe I have to get file descriptor (like open() result)? Or is there another way?

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

        You can use QSerialPort::handle() and do what you want.

        Btw: QSerialPort always opens in RAW mode by default.

        1 Reply Last reply Reply Quote 0
        • P
          Pavlya last edited by

          bq. Btw: QSerialPort always opens in RAW mode by default.

          I have found it (((. Thank you kuzulis for your reply.

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