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. How to program the reception of data with qextserialport
QtWS25 Last Chance

How to program the reception of data with qextserialport

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 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.
  • N Offline
    N Offline
    nanohueso
    wrote on last edited by
    #1

    Hi, i don't know how to program the Receiver ( Rx) in the qt . Im sending a struct with certain data ( through serial communication) and i want to check if that information reached correctly ( without lossing any data).
    Can anyone provide me an example of the receiver ? ( obviously in qt c++)

    Thanks!!

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

      Why is qextserialport? What is reason for it?

      You can use "QtSerialPort":http://qt-project.org/wiki/QtSerialPort module for your task.

      You can read "documentation":http://qt-project.org/doc/qt-5.1/qtserialport/qtserialport-index.html and see examples.

      Note: The QtSerialPort module is available in Qt5.1 and above. For others version of Qt you should build and install the module manually.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nanohueso
        wrote on last edited by
        #3

        i have QT 4.7.1 . In the links that you sent me , there is no example of the serial communication receiver .. :S .

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

          bq. there is no example of the serial communication receiver

          It because you not attentive...

          bq. i have QT 4.7.1

          then yes, your choose is qextserialport

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nanohueso
            wrote on last edited by
            #5

            Do I have to use qextserialport because i have qt 4.7.1 ???

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

              Yes, because QtSerialPort supports on Qt4.8.0 and above

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nanohueso
                wrote on last edited by
                #7

                oooh, so , what do i have to do ? , I am sending a struct through serial comunication to a microcontroller that turns on a LED, i want the microcontroller to send me the crc of the package of data that i sent from qt , can you give me a helping hand with this? i have to develop the qt part , in order to be prepare to receive the information to check that the struct was sent correctly

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

                  See QextSerialPort's examples: http://code.google.com/p/qextserialport/source/browse/#git/examples

                  Or you has banned in Google? :)

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nanohueso
                    wrote on last edited by
                    #9

                    EXAMPLE :

                    TEMPLATE = subdirs
                    SUBDIRS = qespta enumerator
                    uartassistant
                    win32:SUBDIRS += event

                    SERIOUSLY ? do you consider this an example? do you really think a person who is beginning with this stuff can understand this? come on asjoul

                    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