admin

admin

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.
Wednesday, 03 October 2012 16:26

8 Channel Relay Box

This is a 8 channel relay box that the input connect to a controller allow it to control large loads like home appliances.
 
I'm using this relay box for a snooker centre to control snooker table lamps. The lamps consists of 6 pieces 20W and 3 pieces 10W fluorescent lamps, total of power consumption is 150W per table. Picture below shows the snooker table lights for the snooker centre.
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.
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)

 

 

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
Thursday, 13 September 2012 15:46

Softaculous AMPPS Web Server

I'm testing Softaculous AMPPS for my web server, by far it is working very well.
 
Web Server software that I had tested
WampServer is my first web server software, I change to EasyPHP until I replace my notebook.

EasyPHP: http://ediy.com.my/index.php/blog/item/14-easyphp-web-server-winxp
I use EasyPHP since WampServer is not working on my Toshiba notebook.
 
AppServ: http://ediy.com.my/index.php/blog/item/21-appserv-seb-server
I didn't use AppServ for my projects, because the PHP version is either too old or too new that it is not suitable for my website.

Softaculous AMPPS: http://www.ampps.com/
Finally I use AMMPS since EasyPHP did not display pictures for most of the Joomla slide extensions. 
Saturday, 08 September 2012 19:20

D-LINK DNS-320 Firmware Upgrade from 2.00 to 2.02

I read a post about the D-LINK DNS-320 firmware version. It shows that there is new version released from D-LINK website. So I decided to give a try.
 
Download
Make sure backup all data before firmware upgrade. After upgrade the firmware, the DNS-320 performance become very slow. I had to re-format the HDD and install software again in order to solve the problem.
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.
Monday, 03 September 2012 11:04

Fun_plug 0.7 installing Packages

Additional fun_plug packages (eg. LAMP, Transmission client, etc) can be install/uninstall after installing fun_plug. Article below show you how to install additional packages to fun_plug 0.7. You should read this article if you want to know more about fun_plug.
 
Pre-installation Requirements
  • D-LINK DNS-320 ShareCenter.
  • A working fun_plug 0.7 installing on D-LINK DNS-320 ShareCenter.
Sunday, 02 September 2012 17:49

Fun_plug 0.7 on D-LINK DNS-320 ShareCenter

This article provide the step to install fun_plug 0.7 on D-LINK DNS-320 ShareCenter. Fun_plug allows user to start additional programs and tools on the NAS.
 
Pre-installation Requirements
  • D-LINK DNS-320 ShareCenter
  • Hard Disk Configure as Volume_1: Standard as shown in figure below
Back to Top