OpenWrt Forum Archive

Topic: serial console on tp-link 1043nd (usb-ttl)

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

Just got my usb-ttl (cp2102), but can't get it working with my router (tp-link 1043nd).
http://img38.imageshack.us/img38/8068/usbttl.jpg

I've soldered the 4-pin header and checked continuity according to the wiki. The terminal (putty) will however only spit out garbled text, it actually looks like a baudrate/parity/flow-control problem but no matter what settings I choose, the output is either garbled or absent.

What I've tried so far;
Connecting only TX/RX - Garbled output that comes in chunks (uboot, kernel booting?), seems to go quiet after a while.
Reversing TX/RX - No output.
Connecting TX/RX and GND - No output.
Connecting TX/RX, GND and VCC - No output.
Verified soldering joints with multimeter, all is fine as far as I can tell.

What could be the problem? Faulty usb-ttl cable?
The router is working fine btw, just wanted to make sure I have serial access for recovery.


Output looks something like this at 115200/8n1 no-flowcontrol:

¿åëRûûë£E¿5/9-A/97¿UY{¿¿±u#/=#957±¿o!¿y!#¯uoym¿wëRûûë£E¿5/9-¥'=3!5/9-¥'=3!¿q5#5¿_'=3!uoym¿y!#ëRûûë£E¿5/9-¥'=3!5/9-¥'=3!¿#5¿UY{¿;¿1-57§¿=-1#57¿;¿#%;55/9-¥'=3!¿-§¿-!¿%5%¿5/9-¥'=3!¿UY{¿¿=7§¿uoym¿¿755957åëRûûë£E¿#3A9!##9)¿5££¿¯¿;9)5§¿%=åëRûûë£E¿-A=;'5¿¯y¿¥¿c53-'5y!¿W5=%åëRûûë£E¿!/9-A/97¿UY{¿¯aoym¿wëRûûë£E¿=¿''A1¿;¿7¿!¿%!75åëRûûë£E¿75-95¿5/¿5#57¿!¿%!75åëRûûë£E¿;'=#¿!7¿3!-#1¿=5åë êûûë£E¿;'=#¿!7¿3!-#åëRûûÛ£E¿;'=#¿!'=#¿5#57¿3!-#1¿=5åëêûûÛ£E¿;'=#¿!'=#¿5#57¿3!-#1¿=5åëRûûÛ£E¿m_¿}wåëRûûÛE¿;'=#¿!'=#¿5#57¿3!-#1¿=5åë!%5¿=7
R{{{{6kE?'-;/
?
 ?57ekR{{{{6kE?5/
'?-'?%!75        ?}/5}q?=?;
¿=#7¿/-¿I5#5Ë£E¿5/¿'-#)¿¿¯e;¡s''¿7'5åëiû-#-¿¥åëµTÊ¿/5¿I3E¿)5
¿!¿5#53=-'=35¿%!75åë

(Last edited by spock on 28 Jan 2013, 18:03)

Try only gnd and rx of adapter, connect to gnd and tx of router..

nebbia88 wrote:

Try only gnd and rx of adapter, connect to gnd and tx of router..

No luck. :-(

In the meantime I got the adapter to work on another device. So I've messed something up in the 1043nd for sure.

I've done continuity check on GND and both TX/RX shows voltage to GND. I'm no electrician so don't laugh.. but here goes -- when the router power is unplugged, I see 1.6V between TX/RX and GND using the multimeters power (whatever this is called I'm not sure). With the router power plugged in I see 3.2V on TX and 0V on RX.. all this seems quite normal to me.

Google told me that CP2102 works poorly if the voltage is under 3V in some situations, original CP2102 spec. was min 2.7V, but they updated their docs to say 3V minimum later.. still my router measures 3.2V so it shouldn't be this either.

Any guesses?

Any chance polarity can be wrong?  That is, is the 1043nd putting out and expecting the lines to idle high and they actually are idling low?  I suspect that the CP2102 can be set for idle-low by the driver, but I don't know how to do it (I'd like to).  All the CP2102 usb serial dongles that I have seen idle high like rs232 devices (but use ttl voltage levels).

One other possibility.  The usb dongle which I use for router serial console is a PL2303 which has a jumper for 5V/3V3, and I put it on 3V3.  I have a dongle like yours, but haven't used it for this purpose since I wasn't sure that it wasn't using 5V ttl when the router is expecting 3V.  Even if you connect to the 3V3 output pin, that doesn't mean (I think) that the Tx and Rx voltage levels are 3V3 rather than 5V.

What other device to you have the CP2102 dongle working on?

(Last edited by lizby on 28 Jan 2013, 20:52)

@lizby

From the spec. sheet of CP2102 it seems that it's always 3.3V TTL but can deliver either 5V or 3.3V for VCC. I just put an order for a PL2303 based adapter to try with as well..

Since I'm pretty sure I suck at soldering I'm going to redo it tomorrow and see if some magic will happen. If that doesn't work Google also talks about noise sensitivity on long TTL cables (the ones I got with the adapter are ~20cm, and my workbench isn't exactly noise free), so I'll have to test that too..

The other device I got working was my new router, tp-link 4300. Very similar to the 1043nd.

Solved it! One part stupidity and I think one part wiki error.. according to the wiki (http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#serial) TX is to the far right.. but on my 1043nd v1.8 the TX is second from right. I had just forgotten to plug the GND cable when I tried swapping TX/RX.

Below is the working connection, I guess the wiki must be wrong?
http://img12.imageshack.us/img12/9340/usbttl2.jpg

(Last edited by spock on 28 Jan 2013, 22:16)

That's really strange.. Noone reported this???

nebbia88 wrote:

That's really strange.. Noone reported this???

If I'm the only one seeing this, it must mean the pcb on my ttl adapter is mislabeled. Which seems more plausible..

Yes i was thinking the same.. Just try to disconnect tx on the adapter and see if you still get serial output ^^

But why did it work with 4300???

I feel a bit silly not to have thought of that myself.. but no, the terminal dies if I disconnect either TX or RX (or GND, for that matter - so it might die for other reasons).

It's the usb dongle which is mislabelled--I've seen that also.  You should see the console output with just 0V and the correct TX from the cp2102 dongle--removing RX should not alter that.  But you do need the 0V.

Hey guys..
I was following the Wiki too. My router is 1.8 ver. In the first test i did with soldered pins i get the same chunk caracters. So, a change the baudrate in the device list in windows for 115200 (like Wiki Says) and connect via Putty. Was working, i could read the information.
But now, i only gets a blank screen on putty, nothing heappens, can anyone have an idea?

The discussion might have continued from here.