Wow, I haven't posted here in a while. I have a lot of pictures to post. 73% of my physical install is now done.
I now have a fusion brain in my car, a sheeva plug, and a wireless router.
Today I did a ton of programming. I wrote a python application for the sheeva plug which constantly communicates with the fusion brain daemon. It sits and checks the car's voltage to see if the car is on, if the car is on, it uses the fusion brain to close a relay on the computer's power pin for 1 second, which turns the computer on.
The brain also controls my amplifiers and blue lights in the foot areas of the car.
The python app also listens on an IP socket. So on the main computer, in C# I create a socket and connect it to the brain, then I just send a string through it in a syntax that I designed the end result is a private method that is this simple:
Code:
//turn on fusion output 0
sendFusionCommand("set:0:1");
//turn off fusion output 2
sendFusionCommand("set:2:0");
It takes something disgustingly fast for this to happen. I push the button and you instantly hear the relay click. I can get analog values in a similar fashion. I'm just working out all the bugs now, like multiple connections and whatnot and then I'll be implementing this into my own front end. Overall, it was a productive day seeing as I learned how to use python, the dbus, and sockets, and successfully put together all three into the application I was looking for. 12 hours well spent. Heres a screenshot of the windows control app, it's not too special:
Bookmarks