Thursday, December 12, 2013

Zapmote - Router Remote Car Starter

So this idea of a computer router that could be wired up to my car starter has been floating around all summer, and now that it is winter I really want to get this done.  If you haven't hear what I'm talking about here it is.  I will be taking an old G router and wiring up my car starter to it.  Why?  So that I won't be fumbling around and misplacing my remote car stater for my car.  I will be able to use my phone to start my car, or if I want to start my car as I'm coming home.

Parts Required:
 - Remote Car Starter
 - Car
 - Computer Router
     - One that is supported by OpenWrt (WRT54G-RG)
 - Soldering Gun


Lets get a computer router.  The old Linksys G routers work great as they are cheap and are supported by OpenWrt.  Not all routers are supported by OpenWrt and this software will allow us to modify the router so that I can get what I want.


Once you get this setup with OpenWrt you can telnet into the router.  Once I got in I found that under the folder /proc/diag/led/ that there are 5 files for the lights:

dmz
power
ses_orange
ses_white
wlan

The power and wlan are in use by the OS, but the other leds are up for grabs.  With a little bit of code we can turn the leds on and off:

echo 1 > /proc/diag/led/ses_white
echo 0 > /proc/diag/led/ses_white

to be continued...