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

Reading discrete inputs or coils doesn't work because QModbusClientPrivate::collateBits() throws away the results.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 Alpha
    • 5.13.2
    • SerialBus: MOD Bus
    • None
    • All
    • 8
    • 22ae70e4820661b7cdf0d9020810cc791c55e569 (qt/qtserialbus/dev)
    • Qt6_Foundation_Sprint 30

    Description

      After receiving a response PDU for Read Coils/ Read Discrete Inputs, QModbusClientPrivate::collateBits() should call setValues() on the QModbusDataUnit to set the result. Instead, the function calls setValue() for each bit, which promptly discards the result because the m_values vector is empty.

      A workaround is to manually call setValues() with the expected number of bits before the request is processed.

      Attachments

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

        Activity

          People

            heimrich Karsten Heimrich
            pdegoeje Pieter de Goeje
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes