Hi!
I installed trunk (ar71xx-generic-tl-mr3220-v1-squashfs) rebuild by myself with luci support on a fresh tplink mr3220 (20euro on amazon), everything went smooth. I've also put the router in client (station) mode to be a node of my local network (accessible via wireless as a client). No problems.
Then I've opened the router and soldered three wires to three pins of the serial port (TX, RX and ground) on the mainboard. With some care (voltage conversion is needed, see http://www.hackup.net/2011/09/serial-co … 20-router/ ) I have connected the wires to the TX-RX pins of an arduino board. On the arduino board there's a program running, sending strings to the serial line. Basically I want to receive those lines at the router serial port. But I don't know how. The guy at "hackup.net" suggests simply to use the command "screen" with something like
> screen /dev/ttyS0 9600
if I do that, I see only funny characters or - almost always - nothing at all.
I've also tried with "microcom" but it says that ttyS0 does not respond.
You could say "hey, you've done bad soldering and your serial is not connected!". But I have the proof that *something* is coming from arduino to the serial port. Just doing
> cat /proc/tty/driver/serial
I get
0: uart:16550A mmio:0x18020000 irq:11 tx:10760 rx:184717 brk:184716 RTS|DTR|DSR|CD
and the numbers after "rx:..." and "brk:...." constantly grow!!
And if I disconnect the wire going from arduino-tx to router-rx, those number stop to grow!
In summary, data are flowing but I am not able to read them.
Does anyone have any idea how to simply read ascii characters from /dev/ttyS0 ?
Thanks!