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

Extend QCanBusFrame::toString() with format parameter

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 5.11
    • 5.8, 5.9
    • SerialBus: CAN Bus
    • None

    Description

      Idea: allow custom output instead of fixed format by adding a toString(const QString &format) overload.

      Format can contain the following format specifiers:

      i: CAN-ID (lowercase letters) without leading zeros
      I: CAN-ID (uppercase letters)
      CAN-ID in decimall?

      d: Data field in hex (lowercase letters)
      D: Data field in hex (uppercase letters)
      a: Data field in ASCII

      l: Decimal data length in bytes (without leading zero)
      ll: Decimal data length in bytes (two digits, leading zero)
      LL: Decimal data length in bytes (two digits, leading space)

      e: 0 for standard format, 1 for extended format
      E: space for standard format, 'E' for extended format
      r: 0 for standard frame, 1 for remote request frame
      R: space for standard frame, 'R' for remote request frame
      f: 0 for CAN 2.0b frame, 1 for CAN FD frame
      F: space for CAN 2.0b frame, 'F' for CAN FD frame
      FF: two spaces for CAN 2.0b frame, „FD“ for CAN FD frame

      Attachments

        Issue Links

          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