[Rxtx] noob trouble with rxtx, losing bytes somewhere

Mariusz Dec 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.


Very interesting!!!!

I have decided very soon to DO NOT use events because of  speed lower than
in my direct-read solution.
BUT
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.


Regards
Mariusz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qbang.org/pipermail/rxtx/attachments/20091214/234da1cb/attachment-0916.htm>


More information about the Rxtx mailing list