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

Extended CAN frame format is not read correctly

    XMLWordPrintable

Details

    • 1f2f5b700b0e72785af46ae23775009cb55a1192

    Description

      Plugin: vectorcan

      The extended can frame is not read correctly since the QCanBusFrame constructor expects an ID with values smaller than 0x20000000U

      Extended CAN messages have always an ID greater than 0x8000000.

      Filename: vectorcanbackend.cpp
      Function: void VectorCanBackendPrivate::startRead()

      Proposed solution: reset the extended format identifier bit when constructing the can frame.

      QCanBusFrame frame(msg.id & (~XL_CAN_EXT_MSG_ID), QByteArray(reinterpret_cast<const char *>(msg.data), int(msg.dlc)));

      Attachments

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

        Activity

          People

            aha_1980 André Hartmann
            bdmihai bdmihai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes