🖥️ActiveHome Pro > ActiveHome Pro General

AHP Reliability Tips and Tricks

(1/6) > >>

TomG:
I have used this forum for inspiration in the last couple of years such I thought I should give something back by posting some learnings I wish I knew when I started.
Here are some observations. Feel free to provide your thoughts.

It can be made to work! I ended up with a very elaborate set of macros using AHP that actually works 24x7 and I use almost all 256 available addresses with over 50+ switches, motion sensors, 5 cameras etc. AHP has undocumented limitations but there are reasonable workarounds for all.

Those are the workarounds:
(1) Speed and Waits in Macros
In my experience x10 and AHP can handle only up to 2 commands per second. If you have a setup that will generate more then this number or expects better perf then the commands will be dropped and the result is unpredictable. In macros avoid secvential commands or macros calling macros that do not have at least 1 sec wait between every 2 commands. If you have multiple motion sensors "overlapping" each other they will create a storm of commands causing others to be dropped. Be conscious of the volume of "traffic".
(2) Flags that are Used for Macros Set to Run on the PC vs Set to Run in the Interface.
Flags work reliable if they are used across macros that are either all of them run in the interface or all of them run on the PC. But if a macros that runs on the interface sets a flag and another one on the PC expects that flag it won't work reliable. There is some "replication" delay between passing the value of the flag from the interface to the PC (up to few seconds) that makes this not work. But on the other end the monitored house code devices work well even across the interface and the PC. So you can key your macros using a device that has the address on the monitored house code and works well.
(3) Calling a Macro from another Macro.
The most reliable method I found is to use an extra RF transceiver dedicated for this (e.g. on house code M). Whenever I want to call macro M3 for example I transmit RF M3 ON (using the RF commands) and the transceiver that will be plugged in close to the AHP box will send on the line an M3 ON. For some reasons I noticed the ghost devices sometimes do not work. With the RF method you need to send the RF command twice with a 1 sec delay in between. Do not ask why but with this method I got 100% reliability.
(4) Recording Video
You need to take the time to pick the right video codec (in the preferences/video section) that works for your computer. I could not make it work on Vista but it works well after tune up on WinXP. The best method to pick the codec : select one of the codecs in the combo box, ensure one camera is on (for some reasons the video preferences do not store the settings if no camera is on at the time) and select Tools/Video Function/Start Video Recording.  At this time watch the CPU utilization (in task manager) and you will see it go up to at least to 40%. Then stop the video recording. The important step is now : wait and see how long it takes for the CPU to get back down to 5% or less. If it takes more than few seconds pick another codec. The point is some codecs will starv your CPU and will hang AHP or your machine. I found for me the DivX driver (you can find it free on the internet) gets the CPU only up to 30% and back down to 3% in just 3 seconds.
(5) Macros with “If Else”
While the help says that the if else conditions will be evaluated in order and only the first one true will be executed I did not see that reliable in practice. I did see the 3rd else be executed when there was a 2nd one already true. The workaround is to ensure the conditions you set for all macros in the if else sequence are all exclusive. E.g have conditions like : (If Flag1=ON and Flag2=OFF) else if (Flag1=OFF and Flag2=ON) else if (Flag1=OFF and Flag2=OFF). In other words repeat all the flags you use for that chain of if else in all conditions.
(6) AHP Crashing
For me the AHP is crashing at least once per week. I could not find the pattern, it seems to be some race condition when it has to handle some macros while video recording it going on. It does cause a crash inside csrss too. But there is a workaround : I build a bat file that using utilities like tlist.exe, findstr.exe, tasklist.exe (downloadable from Microsoft.com) will “watch” every 6 minutes and if AHP is gone will restart it. Even better at restart AHP actually sends up a P16 ON and you can have a reset macro that will send you email the reset alse take care to turn off lights that might be left ON during the crash etc. I needed this monitoring .bat file since I’m using AHP to record videos in short 2 minute clips each time the sensors outside notice movement. Since I use this when I’m in vacation I wanted to be sure it will work over weeks at a time.
(7) Controlling AHP over Internet or Viewing your Cameras over Internet
I had no luck with MyHouse online but at the suggestions in this forum I found out LogmeIn.com that work very very well. It is free and you can logon securely and remotely to your home machine, see the videos etc.
(8.) Running Multiple Macros in Parallel
It does work. If you notice it does not it is more likely dues to (1) above where if traffic exceeds 2 commands per second some will be dropped.
(9) Motion Sensors and Rain
In my experience the motion sensors need to have a small cover put on top. I live in Seattle where it rains a lot. I saw this water shielding effect where is the sensor is covered by a film of water simple the RF signal looses so much power it won’t work. I made a nice small 4 inchesx4 inches “roof” on the sensor and it works like a charm. Or put the sensor in a location where it will not get wet.
(10) Line Noise
I did put all my UPS-es, phone chargers and the TV thru a filter. It did made a huge difference. Boosterlinc made little difference.
Also if needed get the XTB (search the forum), it is worth every penny. This is an “amplifier” that will boost up the signals from AHP. Do get also a passive phase coupler. I had (and still have it collecting dust) and active phase coupler and it cause some form of signal storm resulting into many StatusRequest signals being reflected across lines to the point where no useful signal be be sent and eventually causing havoc for AHP. The passive one works well.

I hope this is useful.

TomG

Knightrider:
It's very useful indeed. 
Thanks for taking the time to write a digest on "It Can Be Done".
+1 from me.

JMac:
Thanks - although my system is trouble free (for the most part), you have stated a few strategies that will save (trouble-shooting) time for a lot of us.

solberg123:
I'm preparing to do an install in the next two weeks so this is very helpful for me. Can you elaborate on item 10? My apartment is small, 800 square feet or so, and I have lots of electronic stuff plugged in all over, tv's, computers, phone chargers, video game consoles, and the usual appliances. I'm concerned about the concentration of line noise in such a small environment. Should I just put filters on anything that's electronic, and plugged in? It's reassuring to know that filters were so beneficial for you, it makes me feel better about my project.

And for the rookie question of the day, what does UPS stand for?

steven r:

--- Quote from: solberg123 on April 29, 2009, 11:27:27 AM ---....what does UPS stand for?

--- End quote ---
Uninterruptible Power Supply. APC is one of the better companies. <-- Click link

Much of today's electronics (e.g. Computers & entertainment systems) are sensitive to low or interrupted voltage. In the case of computers, open files can be corrupted if a computer suffers an unexpected loss off power. UPSs can help maintain a constant voltage should line voltage drop.

From an X10 stand point, however, they along with surge protectors can be major suckers of the X10 signal. By plugging them into filters, it eliminates or at lease substantially reduces their effect on the X10 signal. I have all (7+) UPSs in my house plugged into filters as well a dedicated battery charging station that is plugged into a filter. Phone chargers and laptops are also a common signal suckers.


Navigation

[0] Message Index

[#] Next page

Go to full version