I'm trying to connect to a Khepera robot using serial interface (running Scientific Linux 6.1) I used the command screen /dev/ttyS0
to communicate which worked OK, but then I wanted to close it and use MATLAB, but I found no way to close that session, so I just clicked X on the terminal window running screen.
Now my ttyS0 port cannot be opened. Both MATLAB and screen says that it cannot open that port.
How can I reset the ttyS0 port? I mean one choice is to restart the computer. But how to do it without restarting?
What is the proper way to terminate a serial communication?
Also, what does the following command do? I've found it with Google and run it but nothing happened. Did it do anything bad what I need to fix?
/sbin/agetty -L -f /etc/issueserial 9600 ttyS0 vt100