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

Add a textual error description for QCanBusFrame::isValid

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.2
    • SerialBus: CAN Bus
    • None
    • All

    Description

      QCanBusFrame::isValid() already provides a means to check if a frame is valid, i.e. if it can be transmitted over CAN bus.

      However, when this check fails, it is hard to know why the frame is invalid. Typical errors may be:

      • FrameId exceeds the allowed values
      • Payload it too long
      • For CAN FD, only discrete values of payload size are allowed

      So lets introduce a function to display these errors resp. extend the toString() function to handle these cases too.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes