I think what you are trying to say is this:
Will your program accurately detect the number of presses from your 2way Smart home module within a 2 second period?
The mini controller sends signal by radio frequency. Therefore, I assume you are using a Computer module that can detect radio frequency signals such as the CM15 Active Home Pro or a CM11 used in conjunction with a transceiver ( a module that can translate radio frequency signals to power line signals; e.g. RR501)
The best way to answer your question is to perform a simple test in Visual Basic 6--which I have just done.
Just add the ahscript.dll component to your form. And paste the following code into the RecvAction event of the ActiveHome1 component.
Debug.Print bszAction, bszParm1, bszParm2, bszParm3, bszParm4, bszParm5, bszReserved
Here's the output I received in the Immediate Window:
Imediate
-----------------------------------------------------
recvrf e1 On 0 10/29/2006 12:56:02 AM 10/29/2006 12:56:02 AM
recvrf e1 On -1 10/29/2006 12:56:02 AM 10/29/2006 12:56:02 AM
recvrf e2 Off 0 10/29/2006 12:56:03 AM 10/29/2006 12:56:03 AM
recvplc e1 On
recvrf e2 Off -1 10/29/2006 12:56:03 AM 10/29/2006 12:56:03 AM
recvrf e3 On 0 10/29/2006 12:56:03 AM 10/29/2006 12:56:03 AM
recvplc e2 Off
recvrf e3 On -1 10/29/2006 12:56:04 AM 10/29/2006 12:56:04 AM
recvplc e3 On
-----------------------------------------------------
In this example, I am using a Remote wall switch (SS13A) which sends radio frequency (rf) signals which are picked up by the CM15.
As you can see from the results, the program has no problem picking up the signals. However, I must be careful not to hold my finger down too long on the button or the wall switch will send more than 1 rf signal. I'm not familiar with the mini controller, but if it behaves in the same way as the remote wall switch, then you have to take this into consideration in your programming.
The first 3 lines of output reveal that the wall switch sent 2 radio frequency signals to turn on Module e1 even though I only pressed the button once. And the total lines of output reveal that I pushed 3 buttons within a two second time interval.
If you're concerned about response time, using the CM15 on the Universal serial bus should be no problem. Shouldn't really be a problem either using the CM11 over the serial port. Of course, you also have to consider the reliability of your signal path. The remote wall switch I'm using is only 3 feet away from the CM15. But how dependable would the transmission be 30 or 40 feet away?
In general, I would say the answer to your question is YES! But you have to take the above potential problems into consideration.
Hank