Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud



Andrey Mikhalchuk’s Blog

Technoblog about life

Oct 23, 2008 How to add serial interface to WRT54GL router

If you decided to mod your wrt54gl router and turn it into one of the most capable routers for soho network, probably the first mod you should start with is adding serial interface to it. Why? Because when you do the other mods (like adding SD reader, turning into robot, adding leds etc) you definitely send the router into the brick state. And the best way to unbrick it is to look at the router’s console output. The entire operation is very easy and should not take longer then 1 hour. Here is how to do this:

  1. Open the router. This video shows how.
  2. Locate the 10-pin connector on the board. It provides two serial interfaces and we will need one of them (serial console). You can similarly use the other one to control other devices via serial interface, but this is a separate topic.
  3. Get an RS232 adapter. For instance this one.
  4. If your computer doesn’t have com port, and has USB then get an adapter. For instance this one. If your computer doesn’t have USB ports, get another computer. Any computer with either USB or serial interface would work.
  5. Connect pins from the router board to pins on the RS232 adapter as following: 4->”TX”, 6->”RX”, 10->”-”, 2->”+”. Use either soldering iron or standard F/F connectors like this ones.
  6. Connect the RS232 adapter to the computer (via USB-Serial adapter if necessary), connect the RS232 adapter to the router board, turn everything on and check that the leds on the RS232 adapter lit appropriately (refer to the adapter manual to find out what’s appropriate)
  7. Turn everything off, start your favorite terminal program (for windows users that’s possibly hyperterm), configure it as 115200 8N1 (115200 bps speed, 8 data bits, no parity, 1 stop bit) and power the router on again.

Now you should be able to see what’s happening in the router’s brain. Based on your linux experience you can diagnose what’s going wrong and try to fix it using full access to the router you just got.

In addition to 10-pin serial connector the router also provides 12-pin JTAG connector you can use to bring the router to live in situations when serial port is dead. But this is completely different story and I hope you will never need JTAG (for this purpose).

Now you have serial interface added to your router. If you want to give it even more capabilities take a look at the most hacked router in the world ever :)

This post is published in Linux, Robotics.

11 Responses to “How to add serial interface to WRT54GL router”

  1. Ryan s Says:

    Do you think this ( would work? This way I don’t have to convert from 3v to 5v. It handles both.

  2. Andrey Mikhalchuk Says:


    The link you sent is a USB-to-Serial adapter. It is good for connecting the router to a PC for instance. However neither WRT54GL nor SSC-32 have USB interface, so you need to deal with their Serial TTL interfaces which operate on incompatible voltage. Voltage divider is a simple schema that fixes this problem.


  3. Aron Says:

    Hi Andrey! do you think it is possible to attach an usb adapter to the linsys wrt54gl, and use it for pendrives, or external harddrives?
    I would like to install dd-wrt and have some extra storage space. I found many links how to attach an sd card reader, but the read-write speeds are not so good, as it could be with an usb adapter.

    I appreciate any help!

    Thank You!

  4. Ryan s Says:

    Hey Andrey, I was doing some research and I found out a pretty easy way to do this.. .. This is a kit or fully assembled set that does this… for those with little experience. This would make your project even easier for beginners.


    P.S. Check out, it’s the best DIY site I know of. 10,000 members others agree.

  5. Andrey Mikhalchuk Says:

    That’s the same way I described. There are just so many kits and readily available boards that do the task it is not possible to list them all.

  6. Andrey Mikhalchuk Says:

    I spent some time trying to add a USB port but with no luck. The only possibility to attaceh a usb web camera I found is using an IP server. Some newer routers have USB ports available though. You can use one of those.
    Adding storage is not a problem, but, as you pointed out, it is quite slow because uses really slow SPI protocol. WRT54GL is very cheap but it is not very capable too.

  7. Carlton Moore Says:

    Hi Andrey, got the serial interface in…

    Cant seem to get it to read data… I have re-flashed to dd-wrt v 24 I’m using hyperterm and have the port settings to 115,200 8 N 1 Is there a specific flow conrol setting I need? Any ther ideas?

    Thanks for your time,

  8. Andrey Mikhalchuk Says:


    - The flow control should be turned off (both hardware and software).
    - If you’re not getting the signal try swapping Tx and Rx lines.
    - Make sure you’re connecting to right port (/dev/tts/0 on router side and your serial port on PC side).
    - Make sure your RS232-TTL converter (the one that sits between the router and your com port) is working properly.

    Let me know if problems.


  9. Carlton Moore Says:

    Hi Andrey – Thanks again for the info. Flow control is off (both) Tried swapping TX and RX lines… still no deal. When you say, “Make sure you’re connecting to right port (/dev/tts/0 on router side and your serial port on PC side)” what do you mean by “/dev/tts/0″ ? Meantime, I’ll go back and check for cold solder joints / incorrect pin alignment etc. on my ttl converter.

    Thanks again


  10. Carlton Moore Says:

    also, there is an option on my ttl converter to have handshaking on or off… which is reccomended?

  11. Carlton Moore Says:

    Hi Andrey! Made it work. Turns out the com port on my laptop’s docking station doesnt work…. installed xp on an old ibm 800 mhz machine with 2 serial ports on it…. as soon as i connected and rebooted the router there it was!
    Took till 4:00am but hey… :) still want data output from it?

    thanks again

Leave a Reply

You must be logged in to post a comment.

Site Map (c) Andrey Mikhalchuk, 2005-2008