[Rxtx] Not receiving 0xa characters
Kustaa.Nyholm at planmeca.com
Wed Nov 24 11:01:59 MST 2010
>OK, to stem this madness I just ran some tests on RXTX-2.1-7 using
>java.io.InputStream.read(byte) to collect bytes from a RXTXPort
>SerialInputStream instance. I am reading and writing linefeeds with no
Do I detect a hint of some attitude there?
The OP surely had a problem or he would not have posted here.
It maybe that the problem is on the sender side or in his code.
Or maybe not.
It certainly is possible for the serial driver to eat or inject various
combinations of CR and/or LF. Seen that, been there, done that.
Doing a simple test like sending and receiving LFs does not prove much,
one way or the other, it could be that your OS/driver works but the OP's
configuration doesn't. If there is an issue in rxtx in that it does not
set those flags I mentioned (or equivalent in Windows, if any) then it
is possible that it would all depend on the ports default behavior.Like I wrote,
I have not looked at the source code so I was just speculating,
as I think I clearly said.
If you have knowledge about this, for example know for fact that this
cannot happen in Windows for any driver or if you have looked into
the source code and think that what I speculated cannot be the problem
then just say so and explain your reasoning.
Calling this madness is not very productive.
>If somebody has a genuine issue with their data receive code just post
>it here and I will show you exactly why it is broken.
If the OP would post the code then I would be interested to take up your offer!
More information about the Rxtx