I am trying to get data from a USB serial port that is connected to an Arduino. I use Cygwin and I write
cat /dev/ttyS4
to output data in the shell.
When I stop the process, I am assigned
Access is denied
when I try to access it again. I have to close Cygwin, open it again and enter it to get output to the shell.
I noticed that I can read the serial port from only one program. For example, if I read data from a serial port in Arduino software, I cannot access it in Cygwin.
Is there a way to access the serial port data as many times as I want in Cygwin, without having to close the program, open it again and write it in the same command?
source share