Java serial comm notifyOnDataAvailable configure receive buffer size?
Posted
by
fred basset
on Stack Overflow
See other posts from Stack Overflow
or by fred basset
Published on 2010-12-28T00:51:54Z
Indexed on
2010/12/28
0:53 UTC
Read the original article
Hit count: 207
Hi All,
I have a Java serial driver that's using the notifyOnDataAvailable mode to enable async. receive notification.
I see an occasional problem where the SerialPortEvent.DATA_AVAILABLE serial event is not called until a relatively large no. of characters have been received (e.g. 34). The problem is that the sender sent a 20 byte packet, so the Java receiver did not send an ACK until the sender did a retry of the 20 byte send.
Is there any way in Java COMM to configure the size of the receive buffer?
© Stack Overflow or respective owner