QextSerialPort and bytesWritten(qint64) signal
-
Hi everyone!
How can I detect, is all data sended?
signal bytesWritten(qint64) not emit after data writing complete. -
If my memory serves me, the bytesWritten() is not implemented in QextSerialPort.
Try another library:
http://qt-project.org/wiki/QtSerialPortGet the source code here:
https://qt.gitorious.org/qtplayground/qtserialport/archive-tarball/masterBut bear in mind that bytesWritten () returns only the number of bytes that were sent to the port driver. ie not the fact that they are actually sent to the Tx line.
-
Hi qxoz,
Which verison of QextSerialPort are you using now? note that bytesWritten(qint64) only works in EventDriven mode.
These is a related issue: http://code.google.com/p/qextserialport/issues/detail?id=103 but I am not sure whether it is valid or not.
Debao
-
Thanks for answers.
to 1+1=2: Yes i forgot turn EventDriven mode.
to kuzulis: Thanks for link. I think in future i`ll use this one.