Wednesday, April 20, 2011

Hacking with DIR-300 -- Part 1

After lots of days delay, finally got some time to work on long pending task of making cheap wireless communications with off shelf components.

For wireless communications one can use following standards:
  • ZigBee
  • Bluetooth
  • WiFi
Most of the chips are difficult to solder/prototype (as they are BGA/QFN type chips) for part-time/full-time hobbyists. Development/evaluation kits are costly (though one can get some ZigBee SPI-Boards at around 20$). So I was looking at cheaper alternatives that give alternate paths for cheap wireless communications for following type of applications (from Hobbyist perspective):
  • Home automation
  • Car monitoring system
  • Generic monitoring (metering, controls, etc)
For getting cheap wireless device (with Linux OS with good amounts of RAM/Flash-Space!!) I choose OpenWRT/DD-Wrt projects where one can find various hacked WiFi devices which are available cheaply. So I chose DIR-300 as it is available in India (Banaglore) cheaply for Rs.1300/- (~22$).


Idea is  to connect a MCU to above WiFi-device via Serial (RS232/USB) and control/monitor the devices/systems. Most of the WiFi devices have Serial ports (one has to solder on the WiFi boad, lots of inputs are available on each successfully-hacked-device). I have developed basic connectivity for Rs232/USB in Linux and USB-Device-Driver support for Microchip-USB devices. So for the DIR-300, I have to use RS232 (as it does not have USB port)

After following the instructions at OpenWRT site, I was able to load  kamikaze-OS. Downloaded MIPS cross compiler and successfully tested a TCP-socket based program that talks to PCs via WiFi network and RS232 connectivity to Microcontroller.

I am planning to try following MCUs for this DR-300:
But there are lots of cheap eval-boards which can be tried.Some of them are:

Will be posting soon about my DIR-300 C based socket program that connects WiFi/RS232.