Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qtserialport polling method.
Forum Updated to NodeBB v4.3 + New Features

Qtserialport polling method.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Lavanya
    wrote on last edited by
    #1

    Can any body tell me the how to implement polling method of communication for serialport using qtserialport class.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can take a look at the sync examples to see how to use QSerialPort in a synchronous fashion.

      Be aware of the consequence of polling in a GUI application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • L Offline
        L Offline
        Lavanya
        wrote on last edited by
        #3

        Hi,
        That means the terminal example which implement asynchronous fashion of serial port is for interrupt method ?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lavanya
          wrote on last edited by
          #4

          i am bit confused with synchronous and asynchronous which is for interrupt and for polling method implementations.
          can some one clarify me in regard this?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Clarify what exactly ?

            -> synchronous: you block waiting for something
            -> asynchronous: you get a notification when something arrived

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            4
            • L Offline
              L Offline
              Lavanya
              wrote on last edited by
              #6

              @SGaist said in Qtserialport polling method.:

              you block waiting for something

              Thank you SGaist.
              Synchrounous=polling method of implementation.
              ASynchronous=interrupt method of implementation.
              This what i want to get clarified.
              Thank you by your post i understand this.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Good

                Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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