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

Timer not expiring when serial port disconnected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.11.1
    • Serial Port
    • None
    • Linux/X11

      I have a problem with QSerialPort on Linux (using Arch Linux, Qt 5.11.1 official installer). I've attached a simple program reproducing the issue: basically it opens a serial port, then keeps sending a message per second (using a timer) and reads back data whenever available. The problem is that if I disconnect the serial port (i.e. unplug the usb), the timer stops from triggering. The same program on Windows 10 works as expected (i.e. the slot connected to QTimer::timeout keeps being called). Let me know if you need additional information

       

      Tomassino

       

        1. main.cpp
          0.2 kB
          Tomassino Ferrauto
        2. serporprob.pro
          0.8 kB
          Tomassino Ferrauto
        3. worker.cpp
          1 kB
          Tomassino Ferrauto
        4. worker.h
          0.3 kB
          Tomassino Ferrauto
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kuzulis Denis Shienkov
            tomassino Tomassino Ferrauto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes