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. qt5.13.1/5.12.5's Qserialport trouble
Forum Updated to NodeBB v4.3 + New Features

qt5.13.1/5.12.5's Qserialport trouble

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 5 Posters 2.9k 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.
  • 7611534547 761153454

    Thank you for your reply. I hope the authorities can know about this

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

    Hi @761153454,

    as you can read in the linked bugreport, it will be fixed in 5.12.6 and 5.13.2.

    It's just a matter of time when these packages are released officially.

    Regards

    Qt has to stay free or it will die.

    1 Reply Last reply
    3
    • B Offline
      B Offline
      BriFuture
      wrote on last edited by
      #7

      Hi, with qtserialport project from github (https://github.com/qt/qtserialport), I checkout to 5.12.8, the readyread signal is emitted normal, but bytesAvailable is still 0 even when readAll() returns non-zone bytesarray, is it still a bug?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #8

        @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

        is it still a bug?

        Please use the library provided with your Qt installation and check again.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        B 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

          is it still a bug?

          Please use the library provided with your Qt installation and check again.

          B Offline
          B Offline
          BriFuture
          wrote on last edited by
          #9

          @Christian-Ehrlicher
          The original .dll files for serialport doesnot work, The serialport instance can not emit readyRead singal, shall I reinstall Qt ?

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #10

            @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

            The serialport instance can not emit readyRead singal, shall I reinstall Qt ?

            No, show some code and tell use what exact Qt version you're using.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            B 2 Replies Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

              The serialport instance can not emit readyRead singal, shall I reinstall Qt ?

              No, show some code and tell use what exact Qt version you're using.

              B Offline
              B Offline
              BriFuture
              wrote on last edited by BriFuture
              #11

              @Christian-Ehrlicher
              Qt: 5.12.5
              MSVC 2017 WIN64
              CMake Build System

              just connect ready read signal with lambda as following:

                  connect(pri->serialPort, &QSerialPort::readyRead, [=] {
                      qDebug() << pri->serialPort->bytesAvailable() <<  pri->serialPort->readAll();
                  });
              

              with original qserialport.dll file, nothing happened, but if I replace the file with other versions build from qserialport project will get following output:

              [16:38:04.833 D] 0 "$PT"
              [16:38:04.863 D] 0 ",14128.4,-1114.9,-35508.1,0.933,-0.968,9.591,0.014,0.017,0.007,27*7f\r\n"
              
              [16:38:05.843 D] 0 "$PTR,14131.6,-1111.6,-35504.9,0.9"
              [16:38:05.853 D] 0 "24,-0.968,9.59,0.015,0.018,0.007,27*42\r\n"
              
              1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

                The serialport instance can not emit readyRead singal, shall I reinstall Qt ?

                No, show some code and tell use what exact Qt version you're using.

                B Offline
                B Offline
                BriFuture
                wrote on last edited by
                #12

                @Christian-Ehrlicher

                Now I change the code as two lines,

                    connect(pri->serialPort, &QSerialPort::readyRead, [=] {
                        qDebug() << pri->serialPort->bytesAvailable();
                        qDebug() <<  pri->serialPort->readAll();
                    });
                

                and the result is correct now.
                So upgrade the Qt5SerialPort.dll to version 5.12.8 works fine for me.

                1 Reply Last reply
                0
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

                  So upgrade the Qt5SerialPort.dll to version 5.12.8 works fine for me.

                  When you read the complete thread you would have seen that this was an issue with 5.12.5 and was fixed in 5.12.6 / 5.13.2

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  1
                  • B Offline
                    B Offline
                    BriFuture
                    wrote on last edited by
                    #14

                    yeah, that's the reason I'd like to take a try to upgrade the serialport module,
                    but I'm not pretty sure that the bug is fixed as I see unsolved tag at first,

                    and the one line code which returned wrong results really confused me.

                    by the way, it would be better if this thread was marked solved.

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      @BriFuture said in qt5.13.1/5.12.5's Qserialport trouble:

                      yeah, that's the reason I'd like to take a try to upgrade the serialport module,

                      Why not simply updating the whole Qt instead fiddling around with a single module?

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      1

                      • Login

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