I'm developing a motion detection sensor and I'm using a Processing application to implement rotations. Initially, a serial communication is established between an Arduino board connected to the PC and the Processing app. However, I'm not using arduino. I'm sending my sensor data through bluetooth to a dongle plugged into the PC and receiving the Data using a C# application. I was able to communicate with processing by dumping the data from C# into a file and reading it in Processing withut serial communication. Everything works great, but it is slow.
So I need to switch to serial communication. My idea was to write from C# to an empty COM port and read from it in Processing using the same Baud Rate, almost thesame what was happening between arduino and Processing.
However, I can write to the port BUt I can't read: I get an exception saying that the PORT IS BUSY.
ANy suggestions on how should I deal with this problem and establish decent serial communication, or how should I use virtual com POrts?
Thank you