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

Bad value calculated&used for InterFrameDelay in QModbusRtuSerialSlavePrivate

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • c990bdbf8ec922dd7702a2a0e33b9b70db3ac6ee (qt/qtserialbus/dev)

    Description

      I'm running MODBUS server on the desktop PC via USB-RS485 adapter (baudrate = 115200) and I have request timeouts and stalls. I have activated low level QtSerialBus logs and saw this:

      Dropping older ADU fragments due to larger than 3.5 char delay (expected: 2 , max: 15 )

      Apparently, m_interFrameDelayMilliseconds is too low for my setup, however there is no direct way to fix it (like QtModbusRtuSerial*Master*::setInterFrameDelay).

      Dirty workaround is to open serial port at lowest baudrate (i.e. 1200) and change it via direct call to the QSerialPort::setBaudRate.

      So, there are either a bug in m_interFrameDelayMilliseconds or there should be QtModbusRtuSerial*Slave*::setInterFrameDelay call, or both.

      Attachments

        For Gerrit Dashboard: QTBUG-89995
        # Subject Branch Project Status CR V

        Activity

          People

            heimrich Karsten Heimrich
            hate-engine Andrey Batyiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes