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

QSerialPort hangs after restart

XMLWordPrintable

    • c296ae217cdb21b413b857b63961b78a65569162

      QSerialPort is using QLockFile to prevent accessing the opened serial port.
      The problem comes, when the device looses power and after a new start the still existing lock file makes the application hang, because there is no timeout on opening.

      Possible solution is to compare the system uptime and the creation time of the lock file, to decide if the lock file is valid.

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

            thiago Thiago Macieira
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes