I have the tx and rx pins connected directly to each other on my wrt54g router.
I send echo "test" > /dev/ttyS1 in one terminal
and in another terminal where I have cat < /dev/ttyS1
It will display "test" then some newlines, then "test" again and then more newlines, it continues this in an infinite loop.
Is there a short? or is there a setting I need to turn off? People suggested stty -echo or -echo but that command doesn't seem to be recognized.
Thanks!
[EDIT]
On a similar note, how do I "edit" lines in /etc/inittab <-- where is this?
https://forum.openwrt.org/viewtopic.php?id=15165
https://forum.openwrt.org/viewtopic.php?id=14530
I want to disable the console in ttyS0 so that I can try this again and see if it happens there as well.
(Last edited by dcyli on 23 Sep 2011, 20:38)