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

void QModbusDevice::disconnectDevice() is not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.7.0, 5.7.1, 5.8.0
    • Fix Version/s: None
    • Component/s: SerialBus: MOD Bus
    • Labels:
      None
    • Environment:
      windows 7 Vista

      Description

      When I used the ModBus Master course, I found that the serial port was opened correctly after I called the bool QModbusDevice :: connectDevice () method, but when I call the void QModbusDevice :: disconnectDevice () method, the serial port is always on QModbusDevice :: ClosingState. I browse the source code and found that although the serial port is in QModbusDevice :: ClosingState, d-> m_queue queue is not empty, so the process has been empty d-> m_queue, which will lead to the serial port is in a closed state, but it shows the serial port is still in closing.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              heimrich Karsten Heimrich
              Reporter:
              z1an Zhao Lan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes