That's pretty easy to do: With just a couple of commands on the serial port, you can instruct the box to do the same things you can using the control panel, such as changing the mode, start a program, etc. A command to request cartridge level of error status is just as easy.CatGenius wrote:Home Automation. Log on and control your Box.
Actually, you can already tweak the washing cycle. It's specified in a separate file:Tweak the cycle to what you want. Share it with others. Customize the cycle to the solutions being used. Possibilities are endless.
http://code.google.com/p/catgenius/sour ... gram.c#202
- Code: Select all
{CMD_BOWL, BOWL_CCW}, /* Scoop 1 */
{CMD_ARM, ARM_DOWN},
{CMD_WAITTIME, 13217},
{CMD_ARM, ARM_STOP}, /* Scoop 1 + 1 */
{CMD_WAITTIME, 18141},
{CMD_BOWL, BOWL_CW}, /* Scoop 1 + 2 */
{CMD_WAITTIME, 6201},
{CMD_BOWL, BOWL_CCW}, /* Scoop 1 + 3 */
{CMD_ARM, ARM_DOWN},
First is starts turning the bowl counter-clockwise, immediately followed by the arm moving down, and the program will wait for 13.217 seconds. After that, it will stop the arm and wait again, this time for 18.141 seconds. Next it will reverse the bowl to clockwise and again it will wait, for 6,201 second. Then it will reverse the bowl again to counter-clockwise an start moving the arm down again. I call these commands LitterLanguage, and I think it's fairly easy to read by anybody.
Editing the washing program is cumbersome, because the box doesn't have any sensors. So instead of listening to sensors, all movements must be timed precisely. And to test your newly modified program, you need to re-compile CatGenius, flash it into your box and test it, to see if you works as expected. A PC application feeding LitterLanguage instructions would easy the pain here.
I think there's a lot to be gained here. I've watched the standard drying program many times and I noticed that it's very inefficient. Especially in the beginning, it's spending a lot of time drying the bottom of the box, with a wet lump of granules trapped behind the scoop.

