Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSerialPort Issues after upgrading from QT 5.11 to QT 5.13
Qt 6.11 is out! See what's new in the release blog

QSerialPort Issues after upgrading from QT 5.11 to QT 5.13

Scheduled Pinned Locked Moved Solved General and Desktop
qserialport5.135.11.2windows 10
4 Posts 3 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanT
    wrote on last edited by
    #1

    After upgrading from QT 5.11 to QT 5.13 my serial ports on windows 10 have broken. I can no longer send or receive data in the program i have created or in the terminal example program provided by QT. I have used realterm to verify that serial data is coming in form my device. I am setting up the device in a QObject constructor like this:

    SerialDevice::SerialDevice(QString const &PORTNAME, QObject *parent)
        : QObject(parent), _device(new QSerialPort(PORTNAME))
    {
        _device->setBaudRate(38400);
        _device->setParity(QSerialPort::NoParity);
        _device->setDataBits(QSerialPort::Data8);
        _device->setStopBits(QSerialPort::StopBits::OneStop);
        _device->setFlowControl(QSerialPort::FlowControl::NoFlowControl);
        _device->open(QIODevice::ReadWrite);
        QSerialPortInfo info(*_device.get());
    
       //other values initialized from info here
    
       QObject::connect(_device.get(), &QSerialPort::readyRead, this, &SerialDevice::dataRead);
    

    In version 5.11 QSerialPort::readyRead is being emitted and data can be read from the serial port, in 5.13 QSerialPort::readyRead is not being emitted and as a result no data is being read from the serial port. I have attempted reinstalling QT 5.13 and i currently have QT versions 5.11, 5.12 and 5.13 installed on my system.

    Any ideas or suggestions anyone has for what could be causing this problem would be appreciated.

    Thanks,
    Dan

    aha_1980A 1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      https://forum.qt.io/topic/107003/qt5-13-1-5-12-5-s-qserialport-trouble

      1 Reply Last reply
      5
      • D DanT

        After upgrading from QT 5.11 to QT 5.13 my serial ports on windows 10 have broken. I can no longer send or receive data in the program i have created or in the terminal example program provided by QT. I have used realterm to verify that serial data is coming in form my device. I am setting up the device in a QObject constructor like this:

        SerialDevice::SerialDevice(QString const &PORTNAME, QObject *parent)
            : QObject(parent), _device(new QSerialPort(PORTNAME))
        {
            _device->setBaudRate(38400);
            _device->setParity(QSerialPort::NoParity);
            _device->setDataBits(QSerialPort::Data8);
            _device->setStopBits(QSerialPort::StopBits::OneStop);
            _device->setFlowControl(QSerialPort::FlowControl::NoFlowControl);
            _device->open(QIODevice::ReadWrite);
            QSerialPortInfo info(*_device.get());
        
           //other values initialized from info here
        
           QObject::connect(_device.get(), &QSerialPort::readyRead, this, &SerialDevice::dataRead);
        

        In version 5.11 QSerialPort::readyRead is being emitted and data can be read from the serial port, in 5.13 QSerialPort::readyRead is not being emitted and as a result no data is being read from the serial port. I have attempted reinstalling QT 5.13 and i currently have QT versions 5.11, 5.12 and 5.13 installed on my system.

        Any ideas or suggestions anyone has for what could be causing this problem would be appreciated.

        Thanks,
        Dan

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @dant,

        that is most likely QTBUG-78086

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        4
        • D Offline
          D Offline
          DanT
          wrote on last edited by
          #4

          yup looks like it is that bug, thanks guys

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved