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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.13.2
    • Fix Version/s: 6.2.0 Alpha
    • Component/s: SerialBus: MOD Bus
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      22ae70e4820661b7cdf0d9020810cc791c55e569 (qt/qtserialbus/dev)
    • Story Points:
      8
    • Sprint:
      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

            Assignee:
            heimrich Karsten Heimrich
            Reporter:
            pdegoeje Pieter de Goeje
            PM Owner:
            Maurice Kalinowski Maurice Kalinowski
            RnD Owner:
            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