El 12/06/14 14:44, cmsv escribió:
I have one of those i find them a bit problematic.
If you intend to access the router through serial console all that you
need is explained here:

http://wiki.openwrt.org/toh/tp-link/tl-wr740n
Hi again
I downgrade to Attitude Adjustment and know i have setserial and stty.

How can i use this /dev/ttyATH0 as a serial port for send/receive information and not as a port for access from outside?

Let me explain.

I have a door with one of this http://es.ideas4all.com/ideas/0000/0447/iman.jpg

When the door is open i have this contact open and the information send through /dev/ttyUSB0 never come back. Whe the door is closed the contact get closed and when you send something through /dev/ttyUSB0 the same come back again.

echo "0" > /dev/ttyUSB0  (send information)
head -n 1 /dev/ttyUSB0 (try to receive something)

I create a loop for those commands and send & receive every second and it's working OK when i use USB to RS232 (manhattan tl2303).
Now i want to use tl-wr740n because this hardware is cheap!
When i do the same using /dev/ttyATH0 (the tty from => dmesg | grep tty ) i can't see the information comming back.
I use the the J1 pins 1&2 on the picture [1] in the bottom right.
TX is the pin1. the one with the drawing around
RX is the pin2.


I think i have a conflict with serial because this for connect from outside the router. I edit /etc/inittab and delete information about /dev/ATH0 and then reboot but i have the same symptoms.

Thanks for your time.

Emiliano.



[1] http://phobosk.files.wordpress.com/2012/10/board-upperside.jpg

--
Emiliano Vazquez | PcCentro Informatica & CCTV
Office: +54 (11) 4635-3218 y Rotativas
Movil: 011-15-6253-7165
Mail: [email protected]
Web: http://www.pccentro.com.ar
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to