I have a similar problem to the following link. How to change baud rate without closing the connection?. But i use C# in stead of java. I am beginning with baud rate 300. Then a
To change baud rate of a device, follow these steps. eg: To Start communication with a baud rate of 1200.
Port.BaudRate=1200
.Next you want to change the baud rate to 4800, then follow these steps
Port.BaudRate=4800
.NOTE: Change the Port.BaudRate after receving the ACK from the controller device. The communciation will be started with the previously set BaudRate.