[Rxtx] noob trouble with rxtx, losing bytes somewhere
mariusz.dec at gmail.com
Mon Dec 14 15:16:28 MST 2009
2009/12/14 Aaron Wolfe <aawolfe at gmail.com>
> Sorry to reply to myself (and top post), just wanted to put the
> solution I found out there in case someone else has this problem in
> the future.
> I tried Mariusz's sample, it is essentially the same as things I've
> tried before. Still I had the problem that sometimes bytes would be
> in a buffer somewhere, but not in the inputstream. to be clear, the
> problem seems to be that the device sends A B C, and I get only 2
> events, with A and B. Then the device sends D, and I get an event,
> but its the data C.
I have decided very soon to DO NOT use events because of speed lower than
in my direct-read solution.
In my software I have FULL access to ALL data SENT from external host - I am
sure because I did myself both sides and their's protocols.
> I don't know why this fixes it, maybe I should have set these all
> along. I don't understand what the values are for, I found some posts
> with descriptions but my system does not work as described.
I have written here before - RXTX is VERY GREAT project with only one
disadvantage - documentation and samples.
So Aaron do an example from your solution (events) and describe Threshold
configuration for future reference.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rxtx