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

qt5.13.1/5.12.5's Qserialport trouble

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 5 Posters 3.0k 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 Offline
    7611534547 Offline
    761153454
    wrote on last edited by
    #1

    I am a friend of Qt China group.I used qt5.13.1 to receive and send serial port data, but I could not respond.Two computers have been changed. The hardware serial port and software serial port have been tested, but they cannot receive and send.But once in a while you open the serial port for the first time and then you can never send it again.I have tested qt5.13.0, qt5.12.2 and previous versions and it is ok.Except qt5.13.1.If a friend has a similar situation, follow up, looking forward to god's answer.

    Qt中国群 :218967017、218967042
    python中国群:133067664

    aha_1980A 1 Reply Last reply
    0
    • 7611534547 761153454

      I am a friend of Qt China group.I used qt5.13.1 to receive and send serial port data, but I could not respond.Two computers have been changed. The hardware serial port and software serial port have been tested, but they cannot receive and send.But once in a while you open the serial port for the first time and then you can never send it again.I have tested qt5.13.0, qt5.12.2 and previous versions and it is ok.Except qt5.13.1.If a friend has a similar situation, follow up, looking forward to god's answer.

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

      Hi @761153454,

      That looks like https://bugreports.qt.io/browse/QTBUG-78086

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      5
      • J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        FYI:
        A probably related bug I ran into myself
        https://bugreports.qt.io/browse/QTBUG-78011


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        aha_1980A 1 Reply Last reply
        2
        • J.HilkJ J.Hilk

          FYI:
          A probably related bug I ran into myself
          https://bugreports.qt.io/browse/QTBUG-78011

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

          @j-hilk

          FYI:
          A probably related bug I ran into myself
          https://bugreports.qt.io/browse/QTBUG-78011

          I guess that is a result of QTBUG-78086...

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • 7611534547 Offline
            7611534547 Offline
            761153454
            wrote on last edited by
            #5

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

            Qt中国群 :218967017、218967042
            python中国群:133067664

            aha_1980A 1 Reply Last reply
            0
            • 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 Online
                  Christian EhrlicherC Online
                  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 Online
                      Christian EhrlicherC Online
                      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 Online
                            Christian EhrlicherC Online
                            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 Online
                                Christian EhrlicherC Online
                                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