Java serial comm notifyOnDataAvailable configure receive buffer size?
- by fred basset
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?