X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: roschler on December 20, 2009, 09:49:35 PM

Title: How to clear the CM15A command queue from code?
Post by: roschler on December 20, 2009, 09:49:35 PM
I'm working on a software program that moves an X10 Ninja turret.  I discovered that if I blast out a bunch of commands the CM15A appears to queue them up and the queue is quite large.  Is there a way to clear the queue?  Obviously if I'm not at home and I am running remotely, I can't unplug the CM15A and remove the batteries to clear the command queue.  I was hoping there was a command I could send the CM15A using the SendAction() command that would wipe any pending commands from the unit.

Thanks.
Title: Re: How to clear the CM15A command queue from code?
Post by: Dan Lawrence on December 20, 2009, 10:19:13 PM
I presume you are using Active Home Pro and the CM15A interface.  What else are you trying to do?
Title: Re: How to clear the CM15A command queue from code?
Post by: roschler on December 21, 2009, 09:59:22 PM
Hello Dan,

I am not sure what you are asking.  I'm sending "sendrf" commands to the Ninja Camera turret using the SendAction() command and the command set "PanLeft/PanRight/PanUp/PanDown/CamCenter".  I'm doing it in a program driven manner.  Sometimes I'll send a series of these out to the turret but then decide to to completely cancel all current movement and any pending movements.  I can't right now because if I try to send a "CamCenter" the CM15A will play all the waiting camera movement commands in sequence first in sequential queue style.  I want to be able to clear all pending commands so I can quickly stop movement when I want to and possibly send new commands without waiting.  Instead I have to wait many seconds for the other commands to play out first.  That's why I'm looking for a way to tell the CM15A to "drop everything it's doing and what is pending".

Thanks,
Robert
Title: Re: How to clear the CM15A command queue from code?
Post by: -Bill- (of wgjohns.com) on December 21, 2009, 10:04:54 PM
Quote from: roschler on December 21, 2009, 09:59:22 PM
Hello Dan,

I am not sure what you are asking.  I'm sending "sendrf" commands to the Ninja Camera turret using the SendAction() command and the command set "PanLeft/PanRight/PanUp/PanDown/CamCenter".  I'm doing it in a program driven manner.  Sometimes I'll send a series of these out to the turret but then decide to to completely cancel all current movement and any pending movements.  I can't right now because if I try to send a "CamCenter" the CM15A will play all the waiting camera movement commands in sequence first in sequential queue style.  I want to be able to clear all pending commands so I can quickly stop movement when I want to and possibly send new commands without waiting.  Instead I have to wait many seconds for the other commands to play out first.  That's why I'm looking for a way to tell the CM15A to "drop everything it's doing and what is pending".

Thanks,
Robert

Unfortunately, my experience with the SDK is the same.  If there is a way to flush the command queue, I haven't found it yet either.   B:(

>!
Title: Re: How to clear the CM15A command queue from code?
Post by: Mellowmark on December 22, 2009, 08:47:24 AM
Will the purge macro command help. Maybe it will clear the Que also.