Hi, I know this issue has been discussed many times. But I still can't find a solution to my problem.
I have a Fonera 2100 with one serial port and want to communicate with a atmega microcontroller.
I want to have a 2 way communication: Handy -> Fonera -> Atmega -> Fonera -> Handy
The problem is that i want to detach the shell from serial port. I have uncommented the line in /etc/inittab : tts/0::askfirst:/bin/ash –login.
But I still get the message "Please press Enter to activate this console" and all characters from TX are looped thru RX.
Is it somewhere hardcoded or do I need setserial/stty?
In one direction it works fine with the command: nc -l -p 3333 > /dev/tts/0
So I can Telnet to the port 3333 and everything gets forwarded to the serial port.
But how can I read the bytes from /dev/tts/0 and send them back over WIFI?
Another solution I've read would be to make a shell script and execute it with atmega (because shell is activated). But the atmega would get all sended characters back on RX which is not a good solution for me.
Greetings redreggae