I'm trying to communicating Arduino with Java by serial. I have a program running in the loop which needs to produce signals in microseconds.
The issue is when I try to connect to the Arduino using Java (RxTx library) through serial, at the point where the communication happens between java and arduino there are somewhat seconds delay and this stops the continuation of the loop leaving without sending any signal for that time. Then once the communication is done the loop starts to continue.
As a simplest example if you have a Blink Led program running on the main loop,at the point of Java and Arduino communication that Blinking program stops for some seconds and continues back once the communication is successful.
Is there anyway that I can do the serial communication without interfering the main loop (the program which is running)?