This is a guide on how to flash TP-Link TL-MR3020 N Router with OpenWRT.
 
TL-MR3020 N Router Specification
  • CPU Atheros AR9330
  • RAM 32MB
  • NAND 4MB
  • Dimensions 74mm x 67mm x 22mm
  • Power consumption 1.25W Max.
Published in Blog
Saturday, 13 October 2012 22:51

USB Audio Adapter work with OpenWRT

This article shows you how to play audio from a USB audio device which is connecting to a TL-LINK TL-WR1043ND wireless router.
 
Prerequisite
  • Wireless router flashed with OpenWRT. This project based on TP-LINK TL-WR1043ND wireless router.
  • USB audio adapter which supported by Linux. As shown in figure below is the USB sound audio that I'm using.
Published in Blog
Tuesday, 25 September 2012 20:53

Wireless Router Home Automation

This project eliminate the use of an expensive Wifi/Network Shield but still able to control home appliances from any where. You may already own a wireless router which support OpenWRT or else you can get a very cheap wireless router such as WR703N for this project.
 
In order to eliminate install many packages on the router, I am using HTML and Javascript for the web interface, while hardware interface is using Lua which is come with OpenWRT. The whole process is just install a serial driver (see step below) to make the instruction simple & keep the router free of resources.
Published in Projects
Friday, 21 September 2012 10:45

Lua sleep function in milliseconds

Lua Socekt must be use in order to call sleep function in milliseconds.

An example to install Lua Socket to OpenWRT

opkg update
opkg install luasocket

 

An example to sleep 10 milliseconds

require "socket"
socket.sleep(0.010)

 

Lua can only sleep/wait in seconds (not milliseconds) without install Lua Socket. Code below shows the sleep funciton.

function delay_s(delay)
   delay = delay or 1
   local time_to = os.time() + delay
   while os.time() < time_to do end
end

 

Example to sleep 5 seconds

delay_s(5)

 

 

Published in Tutorials
A few ways to send message to serial port of router which flash with OpenWRT. PHP;ser2net; socat; Lua and etc.
  • PHP require to install lighttpd,lighttpd-mod-cgi,lighttpd-mod-fastcgi,php5-cgi,php5-fastcgi,libsqlite3, installation is complicated & consume resources.
  • ser2net/socat is very simple but did not support web service.
  • Lua comes as a default in openWrt and support web service. The goodies is OpenWRT using Luci for web GUI and LuCI is an embedded rapid application development framework written in Lua.
Prerequisite
Published in Blog
Friday, 07 September 2012 23:01

OpenWRT in Client Mode

Client mode uses its wireless connection as the WAN interface, and shares the internet connection only to the LAN ports. It is not seen as an access point by laptops or other computers scanning for AP's and does not accept wireless connections from client devices.
 
As shown in figure below, the new SSID (wwan) cannot be seen by other client devices nor accept wireless connection from client devices. Therefore the client devices (Notebook3 and Notebook4) must connect to the Wifi router using network cable.
Published in Blog
This is an article to guide you on how to use a webcam attach to a router and act as an IP camera. At the end of the article, it show you how to adding authentication to the project.
 
 Prerequisites
Published in Blog
Saturday, 25 August 2012 12:49

TP-LINK TL-WR1043ND router as a Print Server

This article shows the step on how to setup the TP-LINK TL-WR1043 router as a print server. The USB printer is connected to the USB port of router in order to support print sharing from network.
Published in Blog
Wednesday, 22 August 2012 15:49

OpenWRT in VirtualBox

If you are considering to test OpenWRT without a router or you don’t want to flash the router firmware over and over again. Here is the right place for you.

OpenWRT in VirtualBox is an image file run in VirtualBox. By the time I write this article, the VirtualBox & OpenWRT image version are Ver 4.1.20 and 10.03.1 respectively. 

Published in Blog

Samba is a free software re-implementation of the SMB/CIFS networking protocol, Samba provides file and print services for various Microsoft Windows clients.

First, this assumes that you already have OpenWRT installed. Read this article if you haven't upgrade firmware to OpenWRT.

Second, you must have a working USB flash drive attach to router. Read here for installing USB flash drive.

Published in Blog

FTP is a method of transmitting or recieving files across the Internet and stands for File Transfer Protocol. This article guide you on how to enable FTP  function on the OpenWRT router.

It is assumed that the router is flashed with OpenWRT. See this article if you haven't upgrade firmware to Openwrt.

Published in Blog
The more packages you install on your OpenWRT, the more space you need. It's useful to extend the storage capacity of your USB enabled OpenWRT router.
 
This article explain how to use a flash drive as a storage installing in TP-LINK TL-WR1043ND router. It is assumed that the router is flashed with OpenWRT. See this article if you haven't upgrade firmware to Openwrt.
Published in Blog
Thursday, 16 August 2012 14:40

Integrating PuTTY in WinSCP

Most of the time, I use both WinSCP (Windows Secure CoPy) & PuTTY together, especially when work with Openwrt and DD-Wrt. It is very troublesome to start each program individually. So I decided to integrate PuTTY into WinSCP.

 

WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows.

http://winscp.net/

 

PuTTY is a free implementation of Telnet and SSH for Windows and Unix platforms.

http://www.chiark.greenend.org.uk/~sgtatham/putty/

 

I would suggest to download the portable version for both WinSCP & Putty. With the portable version, you can easily copy WinSCP & PuTTY from one computer to another computer without erase the settings.

Here is the link for partable WinSCP & Putty:

http://portableapps.com/news/2012-07-29--winscp-portable-4.3.9-released

Published in Blog

This tutorial show you how to install PHP on the TP-Link TL-WR1043ND router.

I assume you already have a working installation of OpenWRT on your router. Click here for more about OpenWRT.

You can refer to my previous post http://ediy.com.my/index.php/blog/item/2-openwrt-on-tp-link-tl-wr1043nd-router to upgrade firmware to OpenWRT.


After upgraded the router firmware to OpenWRT backfire, SSH to the router. For Microsoft Windows, I always use PuTTY. You can download PuTTY from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Published in Blog

The Arduino is plug into the USB port of TP-LINK TL-WR1043ND allow the router to control the Arduino.

After upgrade router firmware to Openwrt, Login to it & change the password in order to enable SSH.

SSH to the Router

  1. Run PuTTy
  2. Enter 192.168.1.1 for Host Name (this is the default IP for Openwrt set in TL-WR1043ND)
  3. Change connection type to SSH
  4. Click on Open button
  5. Enter your router username (username is root if you didn't change it)
  6. Enter your password
Published in Blog
Thursday, 26 July 2012 23:12

Openwrt on TP-Link TL-WR1043ND Router

OpenWrt is a highly extensible GNU/Linux distribution for embedded devices. After upgrade your router to OpenWRT, your router will become much more powerful (more features) than before.
Published in Blog
Back to Top