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. [Solved]Abnormal signal of QSerialPort

[Solved]Abnormal signal of QSerialPort

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.6k 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.
  • I Offline
    I Offline
    Ivan1120
    wrote on last edited by
    #1

    Hi guys:
    Recently, I used QSerialPort module in my project and i found something is weird. Whenever I replug-in serial port to computer, the sending data from QT using QSerialPort is abnormal, next I use project by C# open comport and send, the data is correct. And I change back Qt project again, doing the thing as same as first I tried, the sending data is correct.
    I have tried about more than 3 times, this situation was keeping to exist. Does anyone know why or have same experience like me? Thanks for responds in advance.

    BTW, the related functions about QSerialPort are all return true, it means the function really did right things I program.

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, maybe in your Qt project you do not set transmit speed on the serial port (but you do in your C# project).

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

        Also please use open() before setXX() methods in case you use Qt 5.2. and to check your return values again.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Ivan1120
          wrote on last edited by
          #4

          Hi, above guys. I have checked that the things you mentioned, they are all respond true for me. And I also catch signals through oscilloscope, the signal is not really normal, because they always under 0V.

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

            Then please provide an minimal example to reproduce an problem. Besides, please specify your type of serial port (what chip?)

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Ivan1120
              wrote on last edited by
              #6

              Hi, you can refer example that named "Terminal". The chip is FTDI. Is this only exist in my computer? I give the application to other people, everything is OK. But in my computer, the same issue still exist.

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

                But in my computer, the same issue still exist.

                Only you himself can to help itself to solve this problem.

                Btw, the FTDI devices should be work fine.. You can try to update an FTDI driver and so on..

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Ivan1120
                  wrote on last edited by
                  #8

                  Thanks. I resolved this problem after i reinstalled driver of comport device.

                  1 Reply Last reply
                  0

                  • Login

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