Closed GoogleCodeExporter closed 9 years ago
I'm not sure off the top of my head what the best thing to do about this is.
Currently, the readyRead() signal is hooked up directly to QSocketNotifier.
Kind of a
pain to try and track whether something has actually been read since the last
signal
was emitted...
Let us know if you have any thoughts.
Original comment by lst...@gmail.com
on 28 Jan 2010 at 11:18
Maybe compare bytesAvailable() between the two snapshots?
Original comment by stephan....@gmail.com
on 13 Feb 2010 at 11:00
Istask wrote:
> Let us know if you have any thoughts.
Maybe use double buffer in event mode? Read all data from
serial port buffer to internal class buffer on QSocketNotifier
signal. Emit dataReady() ONCE after this.
This may be a bit complicated since you have to rewrite all read/write
functions to handle double-buffering.
Original comment by tntr...@gmail.com
on 20 Feb 2010 at 2:15
Yeah - I think having a buffered option would be the way to go. Patches
welcome :)
Original comment by lst...@gmail.com
on 10 Mar 2010 at 7:46
Thanks
Original comment by dbzhang...@gmail.com
on 16 Mar 2012 at 8:13
Original issue reported on code.google.com by
tntr...@gmail.com
on 17 Jan 2010 at 11:24