How to modify timing in readyRead of QextSeriaport
-
Dear All,
I've a problem with the QExtSerialPort in QT. I'm developing for an IMX6UL CPU under a linux based operating system.
I've noticed that, at baud 9600, SIGNAL readyRead is "active" about 35ms after having sent my serial string (which is composed of 3 characters, so about 3ms)
In this way, if I try to communicate with the CPU, I can use a maximum frequency of about 30Hz, which is too low for my application.
Furthermore, if I use lower baudrates, the time of 35 ms becomes bigger ( 80ms for 4800, 175 ms for 2400).
My goal is that readyReady becomes active when I'm not transmitting for a time of 3,5 characters (i.e. or baud of 9600, a time of 3,5 / 4 ms).
Should I modify the readyread funcion?
I'd like to keep this library because I've already wrote a lot of code.
Thank you in advance
-
Dear All,
I've a problem with the QExtSerialPort in QT. I'm developing for an IMX6UL CPU under a linux based operating system.
I've noticed that, at baud 9600, SIGNAL readyRead is "active" about 35ms after having sent my serial string (which is composed of 3 characters, so about 3ms)
In this way, if I try to communicate with the CPU, I can use a maximum frequency of about 30Hz, which is too low for my application.
Furthermore, if I use lower baudrates, the time of 35 ms becomes bigger ( 80ms for 4800, 175 ms for 2400).
My goal is that readyReady becomes active when I'm not transmitting for a time of 3,5 characters (i.e. or baud of 9600, a time of 3,5 / 4 ms).
Should I modify the readyread funcion?
I'd like to keep this library because I've already wrote a lot of code.
Thank you in advance
@mattiad Is there a reason why you don't use http://doc.qt.io/qt-5/qserialport.html ?
-
@mattiad Because this thread is in the category
Mobile and Embedded
I'll mention, that QSerialPort is not a 100%
supported for Android and IOS, info: here and hereFor the partial android support take a look here.
-
@jsulm I've tried but I have the same problem. It takes too much time before havin bytes available in the buffer