How to find the correct /dev/ttyS*?
I am going to use serial port to do some communication stuff. when the program comes to
open("/dev/ttyS0", O_RDWR|O_NOCTTY );
programme hangs with output "pemission denied".
What's the problem? Is it because I used wrong device name? How can I know which tty device my serial port is using? My Linux box has a ps2 mouse and a keyboard. and there is one COM port, which I am trying to use.