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

When QT serial port reads data, it will wait a very long time, which is basically fixed between 150-250ms. With the same serial port assistant, it takes about 40-50ms to read the parameters.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • Serial Port
    • None
    • windows10.0,Qt Creator 4.10.2

    • Windows

    Description

      //
      serial->readAll();
      serial->write(sendData);
       while(serial->bytesAvailable()<39) 
      { if (!serial->waitForReadyRead(10)) 
      { serial->readyRead();
       QCoreApplication::processEvents(QEventLoop::AllEvents, 50); } }
       revData += serial->readAll();
      

      Attachments

        Activity

          People

            kuzulis Denis Shienkov
            adamlamp one rabbit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: