Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSerialPort and non-canonical mode on Linux
QtWS25 Last Chance

QSerialPort and non-canonical mode on Linux

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • P Offline
    P Offline
    Pavlya
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

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

      Btw: QSerialPort always opens in RAW mode by default.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pavlya
        wrote on last edited by
        #3

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

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

        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