ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#21080 - 05/12/09 02:58 AM Unexpected Behaviour - door unlocking!
autefrum Offline
newbie


Registered: 05/12/09
Posts: 5
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

Top
#21081 - 05/12/09 07:26 AM Re: Unexpected Behaviour - door unlocking! [Re: autefrum]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
That is an interesting and unusual problem! The first thing that you want to determine is the actual source of the problem: is it something in the C-Max code, Homeseer code, or the SECU16 module itself. You have already tried disconnecting Homeseer and appear to have ruled it out. How about trying this: create a blank C-Max program (just a single END statement) and load that into the Ocelot and test the lock button and door. If it still does it, then try physically disconnecting the bus (A and B) wires from the SECU16 and then try it again. If it still unlocks the door, then maybe there is something happening in the SECU16 module itself.

You will want to check this out before digging in deeper into any one area.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21084 - 05/12/09 07:41 PM Re: Unexpected Behaviour - door unlocking! [Re: Guy Lavoie]
bakers12 Offline
journeyman


Registered: 06/06/04
Posts: 80
Loc: Chicago
Most of the time I've run into a problem like this, I've found a THEN SKIP jumping to the wrong place.
_________________________
Have fun storming the castle!

Top
#21115 - 05/24/09 11:02 PM Re: Unexpected Behaviour - door unlocking! [Re: bakers12]
autefrum Offline
newbie


Registered: 05/12/09
Posts: 5
I've undertaken a few days of work, and cleaned up my cabling cupboard.Everything is now nicely labelled and cabled tied into place. It looks a lot better, and I can now try your suggestions on tracking down exaclty where the problem is. However, my marriage will suffer if I keep spending all my spare time on this, so I'll do that in a few days. I've also pulled out the hard wired relay board. It appears that given my soldering skills, the Ocelot will be more reliable than my relays. I've just re-done the ocelot program to suit the changed inputs.
Top
#21591 - 01/23/10 08:58 PM Re: Unexpected Behaviour - door unlocking! [Re: autefrum]
autefrum Offline
newbie


Registered: 05/12/09
Posts: 5
It turned out that the problem was not the Ocelot at all - it was a cabling issue. So I don't want anyone to read this post and think the Ocelot is anything except a quality, reliable device - it is still working flawlessly.
Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
1 registered (kuro) and 21 anonymous users online.
Recent Posts
Basic Ocelot/IR-100 Question
by kuro
02/09/12 04:16 PM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
02/09/12 08:36 AM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
02/09/12 08:34 AM
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Shout Box

Newest Members
feshh, manu, kuro, chuck214, Funkhauser
2747 Registered Users
Forum Stats
2747 Members
19 Forums
3837 Topics
22714 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29