On March 16, 2010 at 21:25, Lyndel McGee said...
Peter,
I've done some timings of serial.receive() in the past.
For me, each round-trip to poll for received data takes approximately 40 milliseconds (you should add your own logging to test the timing). It is the nature of the beast.
That's probably it. While 40ms does not sound too bad per se, it will add up. If 100 command pairs are transferred in 15 seconds this actually adds a whole 4 seconds, so it sure sounds like this is exactly what I'm seeing. I will add some logging to see exactly how much data is transferred to be sure...
Any way, thanks for the 40ms figure. Very good info!