FYI I am running busybox. I am able to send data to my ttyS1 using the following command:
stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo
echo -en 'data here' > /dev/ttyS1
But when I try to read, I do this:
stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo
cat /dev/ttyS1
But program ends without any messages.
I also tried cat < /dev/ttyS1
doesn't work either.
I am positive that the data is being sent to this port since I have LED indicator to indicate data is coming. And Connection Settings are set to be same as 115200 baud, 8bit, Even Parity, 1stopbit.
minicom
or an equivalent?