Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78149

QSerialPort::bytesWritten() never called on Windows 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.13.0, 5.13.1
    • Fix Version/s: None
    • Component/s: Serial Port
    • Labels:
      None
    • Environment:
      Windows 10, mingw73_32
    • Platform/s:
      Windows

      Description

      In a class, called FrameWriter, I have a slot that is called by the QSerialPort::bytesWritten() signal. This slot then sends more data to the serial port.

      The "FrameWriter" is tested once with a QBuffer, and works fine (Windows, Linux).

      This class is used by a other class, called SerialPort.

      To unit test my "SerialPort" class, I have a plug that bridges Rx/Tx (pin 2 and 3 on DB9 connector), then simply send data and check them back.

      On Linux, with Qt 5.13.0 all works fine. On Windows, QSerialPort::bytesWritten() is never called (Qt 5.13.0 as well as 5.13.1).

      To reproduce: bridge Rx/Tx on the serial port. Run the Terminal Example. Select the port, disable the local echo option. In the terminal, type some chars and see them displayed back. For me, on Windows 10, works fine with Qt 5.12.4. With 5.13.x no char is displayed back.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                kuzulis Denis Shienkov
                Reporter:
                scandyna Philippe Steinmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes