Problem: I, along with several other families, live at the end of a 1/2-mile 1-lane driveway that is very curvy and heavily forrested so you don't know if someone else is coming the other way until they are right on top of you. When two cars meet each other, it's a real pain since one of the cars has to back up quite a bit to one of the two turnouts or back to the very beginning to let the other car pass.
Solution: Have two WRT's connected to each other wirelessly (probably with antennas) on either end of the driveway and have each control a little light that would be mounted by a sign on a tree that says "Traffic Coming". If that light is on as you approach, just wait for the car that's already on the driveway to exit before getting on yourself.
Method: I need one input (I guess the reset button) and one output (/proc/sys/diag) with the proper circuitry to interface to the outside world. I plan to use break-beam sensors to sense the cars and relays to control the lights. Power to the wrt's isn't a problem.
So, I've got most of the programming concepts down but I'm stumped at how to get the two wrt's to communicate with each other. I need a way to simply pass an alert from one wrt to the other that the sensor was tripped. Once the alert gets to the other wrt, it will keep /proc/sys/diag high until it senses the car pass on its side. Can anyone think of any way to accomplish this passing of the alert?
One idea I had was to simply do a continuous loop that would wget a file from the other wrt. Normally, the file wouldn't be there so the wget command wouldn't be successful but, should the other WRT indeed sense a car, it would "touch" a file on its end which would then be picked up by the other wrt with a successful wget. The file in the source wrt would be deleted seconds later automatically. Two problems - 1) I don't think I should use files for communication since the flash chip will wear out over time, 2) Seems like a lame way to communicate.
Any pointers regarding any of this would be helpful. In case it's useful (and I'm successful) I'll post back here the source and the schematics in case anybody wants to do anything similar.
