Friday, 20 January 2012

Add Serial Port to TP-Link MR3420

I added a serial port to the MR3420 by first opening up the case. There are four screws under the rubber feet on the base of the case. Once open I located the serial port on the board below the white label VcGdRxTx I have placed on the board on the right. The four connections are as per the label with pin one identified by the box round the square PCB pad.

I then added a small 4 way socket on the side of the case. This socket was glued in with Epoxy resin and it was wired up to the pins on the MR3420 board. I then used a Sparkfun 3.3V FTDI USB to serial adapter to interface between my PC and the MR3420.

I use Ubuntu 11.10 a Linux Distribution on my PC, to connect to the MR3420 via a program run in a Terminal window called minicom. When the USB to serial adapter is plugged in to the USB socket on the PC use dmesg on the command line to display what port the adapter is using, mine was ttyUSB1. You will need this info to set-up minicom. The serial communication paramters are Serial Device /dev/ttyUSB1 , 115200 baud , 8 data bits , 1 Stop Bit , No parity , No Hardware flow control and No Software flow control.

When everything is plugged in and the MR3420 is powered up you should see the progress of the boot sequence and after this the command prompt in the Terminal window on the PC. You should then load new OpenWRT firmware for the correct version of your MR3420 via the Web configuration, this will allow new packages to be installed and customisation of the router.

The picture above is the console view of my MR3420 and is displaying the details of the CPU the router has, this was displayed by typing "cat /proc/cpuinfo" without the quotes. I hope you find this blog entry useful.

4 comments:

  1. hi
    can you tell me the main hardware components of this router ?
    tell more info about adsl to 3g failover feature in this router i want to know how it works

    thank you very much

    ReplyDelete
    Replies
    1. You're asking about officially supported functionality by the TP-LINK firmware, not what's supported by third party firmware.

      Delete
  2. Hi,

    I was wondering if i could use a debug port based on the FTDI FT232 chip as in

    http://www.acmesystems.it/DPI

    (since i already have this one)

    Thanks,
    Andrea

    ReplyDelete
    Replies
    1. Sorry for late reply, I think I have been using the FTDI to do the serial work for this project. So I think this will work for you.

      Delete

File resolv.conf changed on reboot

The file /etc/resolv.conf was being reset and losing the correct nameserver on my Raspberry Pi after a reboot. The unfriendly way of fixing ...