This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using serialport from Qt library

Hi all:

               Does SDK for AM335x that contain serialport library of Qt?? If I want to use it, how should i do. It seems to no finding about SerialPort of Qt. 

  • Hi Ivan,

    I don't think QtSerialPort module is included, because it is an add-on module for the Qt library. You will most probably have to build it yourself. Please check this wiki page for more information: https://qt-project.org/wiki/QtSerialPort

    Best regards,
    Miroslav

  • Hi I implement the serialport function on my target board by Qt library. Everything looked fine, it could receive and send. But.... when I tried to send data frequently, the program on the target board seemed to can't receive more data, because my GUI would not show anything later... do u have any idea for me? I think my Qt program is no problem , because this is verified on desktop. 

  • Hi :

                    I am using the latest sdk named “AM335xSDK__07_00_00_00” and now I can build my own qt application on my target board. But I need to use serialport for need, I tried to implement the function of serial port by Qt, it is worked. Unfortunately, though my program can read data from my pc through serialport(micro USB interface), it would failed if I kept to send data to my target board. I found a thing is weird. I tried two situation listed below:

    (1)   If my program open comport and receive data on target board from my PC, it only could receive data for 10s, and then my program wouldn’t receive any data, but my pc still sent data to the target board.(My program will detect error about serialport while it’s running. The error message always exist after the first data come and until 10s later.)

    (2)   If my program opened comport and my pc didn’t send any data to the target board. My program would never receive the error.

     

    Do u have any suggestions for me?? I didn’t find any useful information about it.

     

    BTW., I confirm my program does not have any problem, because it’s come from QT official website.

     

     

    Thanks & Best Wishes.