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

void QModbusDevice::disconnectDevice() is not work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.7.0, 5.7.1, 5.8.0
    • SerialBus: MOD Bus
    • None
    • windows 7 Vista

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes