Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved readyRead() signal is working strange

    Qt for MCUs
    qserialport readyread serial port rs485
    3
    14
    1327
    Loading More Posts
    • 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.
    • I
      IRBaboon @SGaist last edited by

      @SGaist hello!
      OS Windows 10
      Qt 5.15.1
      Creator 4.13.2

      1 Reply Last reply Reply Quote 0
      • Crawl.W
        Crawl.W last edited by

        Firstly, you need to use packet capture software to see if any returned data is accepted.

        I 1 Reply Last reply Reply Quote 0
        • I
          IRBaboon @Crawl.W last edited by IRBaboon

          @Crawl-W good day!
          I have used terminal to check if data is accepted correctly.
          All data send by the device was successfully received.

          Crawl.W 1 Reply Last reply Reply Quote 0
          • Crawl.W
            Crawl.W @IRBaboon last edited by

            Ok,it is basically certain that your main thread is occupied. Reference to my topic. QSerialport did not emit readyRead () signal,but USB monitor data received.Only occasionally problem

            I 1 Reply Last reply Reply Quote 0
            • I
              IRBaboon @Crawl.W last edited by

              @Crawl-W hello!
              I have read all through your topic. Seems that problem is very similar but I do not get what can occupy the thread.
              My programm is working as a terminal in this mode and is suposed to just wait the bytes to be received...

              Crawl.W 1 Reply Last reply Reply Quote 0
              • Crawl.W
                Crawl.W @IRBaboon last edited by Crawl.W

                You need to make sure that your main thread is idle when the signal is triggered.
                Firstly, exclude qt lib version bugs.
                Then, peel off serial port read and write code, and you should decouple code.
                In general, for such questions can only provide experience and possibilities. The rest is still have to rely on yourself.

                I Crawl.W 2 Replies Last reply Reply Quote 0
                • I
                  IRBaboon @Crawl.W last edited by IRBaboon

                  This post is deleted!
                  Crawl.W 2 Replies Last reply Reply Quote 0
                  • Crawl.W
                    Crawl.W @IRBaboon last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • Crawl.W
                      Crawl.W @Crawl.W last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • Crawl.W
                        Crawl.W @IRBaboon last edited by

                        You need solve it rather than evade it, especially when there is already a problem.

                        There is a Chinese idiom called 欲盖弥彰. But you can put the problem aside and solve it later.

                        1 Reply Last reply Reply Quote 0
                        • I
                          IRBaboon last edited by IRBaboon

                          I have just tested a simple terminal with terminal 1.9b via com0com - it worked in both directions on my work, and....
                          It is working the same strange way on my personal PC! I can simply send bytes via my QT software and I cannot receive anything via it until I send a new parcel again.
                          So it is something on the PC...

                          Crawl.W 1 Reply Last reply Reply Quote 0
                          • Crawl.W
                            Crawl.W @IRBaboon last edited by

                            @IRBaboon If your PC have no obvious lagging, my issue is an error direction. Here are some ideas you can try:

                            1. read help doc seriously or test one other poeple's credible demo on your devie, is it possible to call it incorrectly?(for serial device, It is difficult for others to run your demo)
                            2. try the lastest verion of QT
                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post