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. Show outgoing serial ports only
Qt 6.11 is out! See what's new in the release blog

Show outgoing serial ports only

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 431 Views 1 Watching
  • 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.
  • W Offline
    W Offline
    wbadry
    wrote on last edited by
    #1

    Hello,
    Is it possible to get only the outgoing com ports?

    alt text

    I found how to get all available com ports

    Is it possible to filter results to get only outgoing com port? Thanks

    JonBJ 1 Reply Last reply
    0
    • W wbadry

      Hello,
      Is it possible to get only the outgoing com ports?

      alt text

      I found how to get all available com ports

      Is it possible to filter results to get only outgoing com port? Thanks

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @wbadry
      Not that I know, but.... There is no parameter to QSerialPortInfo::availablePorts() for port direction type. On a QSerialPort there is https://doc.qt.io/qt-5/qserialport.html#Direction-enum, but I only see that being used for reading/writing the baud rate on a port.... ?

      1 Reply Last reply
      0
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        In the RS232/422/485 world there is no such thing. the physical layer expects bidirectional IO and unidirectional is a specialization that is at the discretion of a higher level in the stack and is thus undefined as far as the COM port itself is concerned.

        The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

        1 Reply Last reply
        3

        • Login

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