Easiest method to Unbrick WR740N using in-built anti-bricking tool.

TP-Link TL-WR740N is one of the cheapest and feature-packed router available in the market. With the price tag of 12.99$, it is definitely worth a buy.

If you’re an owner of WR740N, you ought to exploit its DD-WRT or OpenWRT support, for features such as Repeater, OpenVPN etc With the price, it’s of low harm to try Custom Firmwares and tinker around with the router, and with the method I am providing in this article it becomes totally lossless even if you brick your router upon trying different firmwares.

So I tried DD-WRT, Stock -> DD-WRT and then OpenWRT, DD-WRT -> OpenWRT. But in my journey back to stock, OpenWRT->Stock, the router got bricked. I had following signs to believe that it is now bricked and is not usable:

  • Only the Power LED lights up.
  • GUI based interfaces won’t work (e.g 192.168.0.1 or 192.168.1.1 or tplinkogin.net)
  • PuTTY won’t find a communication to the router.
  • Telnet won’t work.
  • WinSCP can’t connect to the SCP server on router.

Hence, in short, the router is gone. The methods available needs a Serial cable to access the flash memory, a lot of tinkering around with the hardware and a possible chances of messing up if you’re not a hardware pro. After a lot of research, I found out that TP Link has provided a default anti-brick method to let users flash a firmware even when the router is bricked. Let’s see how to work with it.

Things you’ll need:

  • A bricked router with at least one of the signs from above list.
  • A TFTP Server (Download TFTPD32 here).
  • A firmware file ( Get stock firmware(preferable) here or OpenWRT here, or DD-WRT here).
  • A working brain.

Disconnect router’s LAN cable from PC, Turn of the router.

  • Step 1:

Change your network IP address to 192.168.0.66 and subnet mask to 255.255.255.0 (In Windows 7, Goto Control Panel > Network And Sharing > Change Adapter Setting > Right-Click on you Ethernet adapter > Properties > IPv4 )

  • Step 2: 

Rename the downloaded firmware file to wr740v4_tp_recovery.bin.

Start Tftpd32, ‘Browse’ the current directory to the folder where wr740v4_tp_recovery.bin is stored.

  • Step 3:

Put a pen/pencil in the reset button hole behind the router, and turn it on (while still holding the reset button).

A few moments after the router is turned on, you’ll see the Lock LED has lit up, release the reset button.

  • Step 4: 

Now connect the router LAN cable to computer, you’ll see Tftpd transferring firmware files to the router. Wait for the router to automitically flash the firmware file using the built-in tool and reboot itself, the entire process should take around a minute.

That’s it. Once the router reboots, you can access the interface that is provided by the firmware.  🙂

For explorers who wants to know how it works:

The router looks for flash files when it is started in safe mode (The Lock LED?) it looks for files on computer in the IP range from 192.168.0.2 to 192.168.0.68, i.e. total 66 ranges. Now our TFTP hero, the Tftpd server, serves the files using the default network interface which we IPed as 192.168.0.66. The router requests for files on the IP, and Tftpd transfers them to the router. The router then, flashes it and reboots. Eliminating the need of using serial cables or JTAG to flash the memory manually.

Hail TP-Link.

Rooting Canvas 2.2 A114 without PC

Micromax Canvas 2.2 A114 is one of the best budget smartphones in range.
If you’re looking to buy it, check out the review done by us here.

When I bought this mobile I found out that there is no development support available for the device.
But at least rooting was a must in my case so I tried a few things and finally found a way to root it.

Note: This is the only rooting method available for the phone which is discovered by me, please do not copy the content without my permission.

Things you need :
1) Internet connection in your mobile to download the necessary apps.
2) Phone charged to at least 50%
3) A working brain.
DISCLAIMER :Though the method is sure-shot and tested, but in an odd case neither does the developer of the app nor I take responsibility if you damage/brick your phone because of your stupidity.
Or if you do, check out Recovery Methods here 😛

Let’s proceed :

Step 1: Download Framaroot v1.9.1 from here.

Step 2: Install Framaroot and open it.

Step 3: You’ll see a screen like this

image

Make sure that “Install SuperSU”  is selected from the list.

Step 4: among the available exploits, “Barahir” works for  the device. So tap on it.
Now, you’ll see a confirmation that your device has been rooted successfully, like in this image :

image

Step 5: Tap OK. and restart your device (long press the lock button and select “reboot”)

Step 5(important): Now that your device has been successfully rooted, you need an app to manage (grant, deny etc)  the permissions, for that get a SU app from Play Store.  I recommend SuperSU.

And Woot! you’re done. Now you can use any root app. Check out some useful root apps recommended by us. Please like our Facebook page and follow us on Twitter to get regular updates about Android  and upcoming Canvas 2.2 developments.

If you’re having any difficulty, do let me know in the comments, I’ll be glad to help you out 🙂

And in case you’re extra-careful, I would like to confirm the results for you :

image

Thank you 😉

Ways to persist data after a postback in ASP.NET

Hello,  It’s been a while since I have done a project in Asp.Net. It had me great trouble but at the same time made me learn few advance Asp.Net techniques.

Among many hurdles I faced, one was to persist data after the page had a postback (in my case, a GridView caused postback when an item was selected). I would get the selected item’s details in a string variable, but after the postback, the variables would reset to null and I would lose data. After a brief research on documentation, I came across many solutions(I used C#, but it should be almost same for VB.Net); go on.

What is a PostBack?

Wikipedia had the best explanation of a PostBack as :

In the context of web development, a postback is an HTTP POST to the same page that the form is on. In other words, the contents of the form are POSTed back to the same URL as the form.

In even simpler words, postback occures when the same page calls itself with a value or more changed. In my case, I was using a GridView with Selection Enabled. Hence when an item in the view was selected, the page would call itself with the selected item highlighted. But the custom values I assigned to values would be erased. Here are the solutions I found:

1- (Easiest) declare data as ‘static’

Declaring a variable in Asp.Net makes only one copy of that data available to all instances of the webpage, hence no different copy of the page will be created after a postback.

The method sounds very easy, however, it is not recommended to use static variables for security issues. But for small project it would do just fine.

2- (Recommended)Using ViewState

ViewState is an object in Asp.Net that can be used to persist data between postbacks. It is very easy and convenient method, following example shows how to work with a ViewState object:

  • First, you save data in a ViewState by assigning a name to it:

ViewState("PersistMe")=TextBox1.Text;

//The string in TextBox1 will be saved in the ViewState object with the name "PersistMe"

  • Now, after a postback, you can use the PersisMe’s value that is stored in the ViewState object:

if(IsPostBack) //Perform only when page is posted back
{
TextBox1.Text=ViewState("PersistMe").toString();
}

Above two methods should work for most. But apart from them, there are some more advance methods, such as Application object, Session Objects, Cache Objects, Cookies etc. We’ll learn about them in coming articles.  Thanks for reading !