[Rxtx] Latency Woes

Curtis Hacker hakcenter at gmail.com
Mon Mar 7 19:24:16 MST 2011


Sample code ?

I don't necessarily want to read the byte I just wrote, but wait till 
the que depth is 2.

Setup a thread without a sleep timer:
if (in.available() > 1) {
     do_stuff();
}

??

On 03/07/11 18:08, Adrian Crum wrote:
> Drop the requests into a queue, and then have a separate thread 
> service the queue.
>
> -Adrian
>
> On 3/7/2011 5:55 PM, Curtis Hacker wrote:
>> I have finally deduced my slow data logging to a latency issue.
>>
>> I write software for dsms, and the protocol is request / receive, you 
>> cannot do more than 1 sensor at a time. So when you log multiple 
>> sensors, +20ms per item, sampling rate drops like a rock.
>>
>> I was wondering if there is any ideas besides going completely native 
>> with my application to reduce latency. With or without events I don't 
>> care at this point I need to kill as much of the latency as possible. 
>> Realistically I need no more than 1ms.
>> _______________________________________________
>> Rxtx mailing list
>> Rxtx at qbang.org
>> http://mailman.qbang.org/mailman/listinfo/rxtx
> _______________________________________________
> Rxtx mailing list
> Rxtx at qbang.org
> http://mailman.qbang.org/mailman/listinfo/rxtx
>



More information about the Rxtx mailing list