I have written a simple program that writes into the serial port 
(blockingly) and measures the time it takes. writing 104 Bytes of data @ 
19200 takes 58/59 msec.

Reading the same amount of data takes only 54 msec (making a simple math 
shows that 54 msec is the correct number).

How can i reduce the latency of writing into the serialport?? By the way my 
hardware is a Beagle Bone Black. My code follows:

QTime t;t.start();
int bytes_written = write(m_serialport_fd, data, data_size);
if(bytes_written != data_size)
   //handle error
tcdrain(m_serialport_fd);
qDebug()<<"Writing into serialport took" << t.elapsed();

Any hints is appreciated.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e9643a26-a348-46ad-a8ec-52c0b7a99dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to