I use JavaComm and get inputStream from the serial port object. My problem is that sometimes, when the system starts up, there are noise characters in the buffer that I don't want. I want to initialize the serial port, and then somehow clear the input of all data before processing starts.
Is there any way to do this?
TY Fred
source
share