OpenWrt Forum Archive

Topic: Serial pins are shorted somewhere?

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

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)

You open /etc/inittab with your favourite text editor, look out for the entries which Slammer mentioned and put a comment sign (#) in front of that entry.

The discussion might have continued from here.