X10 Community Forum

💬General Category => General Discussion => Topic started by: adagio on July 06, 2008, 01:34:22 AM

Title: CM15A timers from VB
Post by: adagio on July 06, 2008, 01:34:22 AM
New X10 user here. Just installed a system to measure the weight of my septic pipe and shut off the water if a plug occurs. I wrote a program using VB5 to send the commands to the CM15A.

All is working well, but what I want to do is set a watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period. I've heard that the CM15A can run without a PC, so I know it can do it, but I can not find any information on how to program timers via a programming language.

Anyone know of any documentation that would help?

Thanks.
Title: Re: CM15A timers from VB
Post by: -Bill- (of wgjohns.com) on July 06, 2008, 01:56:11 AM
At present, there is no way to write to the CM15A except using Active Home Pro.

Many are trying however.
Title: Re: CM15A timers from VB
Post by: adagio on July 06, 2008, 11:47:46 AM
You mean no way to write timers and such, right? Because I am writing On, Off, Dim, etc. commands with no problems.
Title: Re: CM15A timers from VB
Post by: steven r on July 06, 2008, 01:02:55 PM
...Just installed a system to measure the weight of my septic pipe and shut off the water if a plug occurs....
Creative solution that I, as a city dweller, didn't realize was a common problem for septic tanks.
Title: Re: CM15A timers from VB
Post by: -Bill- (of wgjohns.com) on July 07, 2008, 01:49:41 AM
You mean no way to write timers and such, right? Because I am writing On, Off, Dim, etc. commands with no problems.

Correct, no way to save timers, macros, settings, etc. as AHP does.
Title: Re: CM15A timers from VB
Post by: HA Dave on July 07, 2008, 04:30:47 AM
............I want to do is set a watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period.

IF...."your program" could be set to turn Off a monitored code/device. The CM15A could certainly be "taught" to turn the monitored code/device (real or imaginary) ON and then delay and later react with the same devices ON condition being a condition within the macro. So as long as "your program" turned the monitored code/device OFF before the end of the delay... there would be no further action (automatic water shut-off).

In other words: watchdog timer in the CM15A so if the program or PC dies, the CM15A will shut off the water after a time period
Title: Re: CM15A timers from VB
Post by: adagio on July 07, 2008, 05:29:44 PM
Yes, that is what I want to do. So how do I program the CM15A with a timer? You mean use AHP to do that part? (Haven't actually used AHP yet.)
Title: Re: CM15A timers from VB
Post by: HA Dave on July 07, 2008, 05:44:02 PM
You mean use AHP to do that part? (Haven't actually used AHP yet.)
Yep.... thats what I meant. The ONLY way to get the CM15A to remember ANYTHING... is via the AHP. So mixing and matching of the AHP and your program will be required.
Title: Re: CM15A timers from VB
Post by: adagio on July 07, 2008, 10:05:35 PM
Hmmm. Looks like someone needs to reverse-engineer AHP.  :'
Title: Re: CM15A timers from VB
Post by: -Bill- (of wgjohns.com) on July 07, 2008, 11:42:30 PM
Hmmm. Looks like someone needs to reverse-engineer AHP.  :'

Any takers?   :'
Title: Re: CM15A timers from VB
Post by: HA Dave on July 08, 2008, 05:09:47 AM
Hmmm. Looks like someone needs to reverse-engineer AHP.  :'

Any takers?   :'

Well I certainly should have stayed out of this thread! Bill- (of wgjohns.com)  has done more with the CM15A and AHP his BVC (http://www.x10community.com/forums/index.php?topic=15753.0) software than maybe anyone else (although there ARE OTHERS THAT HAVE DONE MUCH). I am a big fan of BVC (http://davesdomainonline.com/bvc/bvc.htm) and have found it to work VERY well with the AHP.