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

When the wrong parity is used for communicating with QSerialPort then there is no indication of an error having occured

    XMLWordPrintable

Details

    • c24fd46221b98eb2e9248765ae32c0fccbebcd35 (qt/qtserialport/5.15)

    Description

      When the wrong parity is used for communicating with QSerialPort then there is no indication of an error having occurred. So if the device is expecting Odd parity and QSerialPort is using Even parity then there should be an indication of an error.

      Update: I found the reasoning now which makes sense, but it would be ideal for this to be covered in the documentation since we cannot do anything about in Qt SerialPort at least.

      As mentioned in https://codereview.qt-project.org/c/qt/qtserialport/+/125517

      It is impossible to implement all these features on all platforms,
      and particular drivers may not support them, too.

      Consequently, the user should handle such errors themselves by applying
      platform-specific ioctls on the device descriptor and/or parsing the
      stream's byte-stuffing.

      Attachments

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

        Activity

          People

            heimrich Karsten Heimrich
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes