|
Hi,
I use an ocelot with 3 digital IO modules (2 x SECU16 and 1 x SECU16I). I also run Home Seer over the top, connected to my ocelot. I'm an electrical engineer, and have programmed PLCs, DCS and SCADA systems professionally, so have no trouble with the ladder logic concepts used to set up the programs in the ocelot.
I have a keychain remote RF device that operates an input into the ocelot and the ocelot is programmed to unlatch the front door for 30 seconds on receiving a signal from the keychain remote. This is all working well - except:
One of my inputs into one of the SECU16 units used to be my door bell. The door bell button operated a 12VDC relay, which swicthed two things: one for the (relatively) high current (over 1 amp) of the ding-dong device that a traditional door bell has, and the other had the 1K relay / closed circuit feeding into the supervised input of the SECU16.
However, I had to disconnect this input from the system, as when ever I rang the door bell, the front door unlatched after about 7 seconds. Although this could be sold as "ease of access", it was not ideal from a home security point of view! I theorised that the higher DC currents from the door bell may have been causing RF interference and causing the electronics in the ocelot or the SECU16s to mess up.
But now I have just installed a keypad at the front door, and it feeds into the ocelot also. I also installed a "lock" momentary switch inside the house by the front door, the idea being that pressing that will check the doors and windows are all closed, turn off the coffee machine and lights, and (using Home Seer) turn off the russound stereo and speak using home seer speaker "House Secure" or "Back door open" or "Kitchen window open". It would then send me a text message to my mobile phone if there was any motion inside the house. As participants on this forum would understand I was very satisfied when this was all working!
HOWEVER, when I press the lock button, the front door unlatches - again after 7 or 8 seconds! It does this repeatedly and reliably.
There is no code in my ocelot to make this happen. I have stopped the home seer service on my computer, and it still happens!
I've checked and double checked my code, and there is definately no THEN statement that should cause this to happen. Even if there was, it should happen 1 seconds later on the next scan - not 7 seconds later - I have no timers that run for 7 seconds.
To overcome this, I've put in a watchdog timer, and if the front door is unlatched for 40 seconds, it forces it to re-latch. This should stop my house being robbed.
So my questions are: 1) Could this be being caused by previous code not being overwritten in the memory of the ocelot - I am using blank lines in my code.
2) The Ocelots seem to be a very reliable device. Has anyone else ever heard of this happening? Would consesus be that it is more likely to be a wiring issue rather than a software issue?
3) Is there any code searching tools available that I can use to find actions involving "Module 2 relay 13" - to be sure that I am not missing a line of code?
Cheers
|