How to program the reception of data with qextserialport
-
wrote on 15 Oct 2013, 13:06 last edited by
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!!
-
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.
-
wrote on 15 Oct 2013, 17:52 last edited by
i have QT 4.7.1 . In the links that you sent me , there is no example of the serial communication receiver .. :S .
-
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
-
wrote on 15 Oct 2013, 17:59 last edited by
Do I have to use qextserialport because i have qt 4.7.1 ???
-
Yes, because QtSerialPort supports on Qt4.8.0 and above
-
wrote on 15 Oct 2013, 18:28 last edited by
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
-
See QextSerialPort's examples: http://code.google.com/p/qextserialport/source/browse/#git/examples
Or you has banned in Google? :)
-
wrote on 15 Oct 2013, 19:36 last edited by
EXAMPLE :
TEMPLATE = subdirs
SUBDIRS = qespta enumerator
uartassistant
win32:SUBDIRS += eventSERIOUSLY ? do you consider this an example? do you really think a person who is beginning with this stuff can understand this? come on asjoul
2/9