np43 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

SerialPort in Windows XP dosn't receive data while Application Window is moved #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I using QextSerialPort to communicate with an Microcontroller over an 
USB-to-RS232 Converter. To do that, I use the the EventDriven mode. 

All works fine until I move the Application Window. While moving the 
Application window, the received data is buffered somewhere and is send after I 
stop moving the Application Window arround.

My Question: Is there a way to receive data from QextSerialPort while other 
window events occur? 

I using version 1.2beta2.

Original issue reported on code.google.com by tim.ess...@googlemail.com on 8 Aug 2012 at 9:25

GoogleCodeExporter commented 9 years ago
I had the same problem. The solution is: separate GUI and QextSerialPort 
communication to different Threads. This will also improve the performance of 
the serial port functionality.

Original comment by maikelme...@googlemail.com on 29 Apr 2013 at 6:45

GoogleCodeExporter commented 9 years ago
I notice that QT's QSerialPort will fix this issue in their up-and-coming 5.5 
release

https://bugreports.qt.io/browse/QTBUG-34946
https://codereview.qt-project.org/#/c/71871/

It says the the above pages to use the QWinOverlappedIoNotifier instead of the 
QWinEventNotifier. 
QExtSerialPort includes <QtCore/QWinEventNotifier> in qextserialport_win.cpp. 
If I upgrade my QT to 5.5, will this stream issue be fixed? Or, will my 
Qextserialport code need changed?

I know having separate threads will fix any issues, but due to the length of 
code and my lack of experience, this maybe hard for me to implement.

Original comment by patrick....@gmail.com on 16 Jun 2015 at 8:40