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

QSerialPort doesn't work with Exar VCP

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 4.8.x, 5.5.1
    • Component/s: Serial Port
    • Labels:
      None
    • Environment:
      Windows 7 x64, Qt 5.4, Qt 5.5. Exar VCP driver v. 2.2

      Description

      QSerialPort fails to open virtual com ports from Exar using latest official drivers or Windows Update drivers.

      The problem in QSerialPortPrivate::initialize function.

      It calls GetCommState driver returns DCB struct with DCB.BaudRate set to 0, which is reasonable since port is not yet configured. After that it set some flags and calls to updateDcb() which tries to set new settings with SetCommState. And SetCommState returns false if DCB.BaudRate is 0.

      Solution is simple. Just set DCB.BaudRate some non-zero value before trying to call SetCommState.

        Attachments

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

          Activity

            People

            Assignee:
            kuzulis Denis Shienkov
            Reporter:
            kryksyh Dmitry Makarenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes