I am working with a serial port (RS232), and i have come across the following.
When i list serial port settings with
stty -F /dev/ttyS0
i get, among other things:
... eof = ^D; eol = ; eol2 =
How can i set end of line charater to the line feed? That is - i do not know where to get table of character representations (so that i could understand what all ^C mean) and how should it be entered in the following command:
sudo stty /dev/ttyS0 9600 eol=<line feed>
When i try to send or recieve character data from it with
echo 'hello' > /dev/ttyS0 cat < /dev/ttyS0
all i get is blinking cursor, and no data seem to transmit.