I want to get Arduino code onto a virtual serial port instead of the actual Arduino. The IDE sends binary code to the Arduino through the COM port which in this case will be a virtual COM port and no Arduino.
I want to read and store the code that is being uploaded into the COM port. I have tried several Java libraries (RXTX, jSSC and the gnu.io), but I can't read what's on the COM port as it will always give the exception that it is being used by another application (which is the Arduino IDE). So I want to upload Arduino code on a virtual port and on the other end of this port there is a Java application which can read what is being sent to this port.
Related question: Upload Arduino code on virtual serial port through Arduino IDE.
If a solution is available or easier in any other language I'm open.