Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome and Elk
 PowerHome Messageboard : PowerHome and Elk
Subject Topic: Duplicate Elk Triggers??? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: January 18 2010 at 21:38 | IP Logged Quote smarty

Just wondering if anyone else routinely sees "duplicate" Elk triggers.....like what is mentioned here

I am trying to figure out if this is an Elk or PowerHome issue.

If it is any Elk communications issue...what might cause my Elk to send things twice (or at least it looks like things are sent twice from my PowerHome log)? I connect to my Elk via internal IP ethernet address and port #2101. Connectvity has always been good. It seems that I have had duplicate triggers for quite some time (even with a router and switch change)...was pretty sure I was using the latest frimware on my Elk ethernet module...

What else should be checked???

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: January 19 2010 at 23:26 | IP Logged Quote grif091

The event log shows different Trigger checks for DISPLAYS ON, ELK-DISARMED_1, and ELK ARM STATUS rather than the same Trigger twice. Perhaps the referenced post is not reflective of what you have now.

Edited by grif091 - January 19 2010 at 23:27


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: January 20 2010 at 09:01 | IP Logged Quote smarty

Thanks for the reply....Let me try to clarify.
Scratch the above post....

I am trying to make 2 seperate triggers. One will fire when the Elk become "disarmed", the other would fire when the Elk becomes "Armed-Away". Ok, that should be VERY simple....but.....here is what I see...

When the Elk changes state where one of the triggers should fire, the event log shows that the trigger fires twice.

In an earlier attempt to try to figure this out, I constructed a duplicate trigger based on a "generic controller" (actually, i think the "generic controller" trigger was around before Dave had Elk triggers programmed into PowerHome). In any case, both triggers SHOULD work the same way (but, I have only one set to active at any given time). Well, both triggers do work the same way, BOTH GIVE ME DUPLICATE trigger events.

So, I am scratching my head as to why a simple Elk trigger fires twice. Is Elk sending me something twice? Maybe I should just delete and re-set up the Elk controller and rebuild the two triggers?? Other ideas??



__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 01 2010 at 17:46 | IP Logged Quote smarty

Anyone? I am running out of ideas....How can I narrow this down?

How could I see what is exactly coming out of the elk? Ideas?

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: February 01 2010 at 18:30 | IP Logged Quote grif091

How does the ELK communicate with the outside world. If IP then Wireshark is a good independent trace tool. If ELK uses RS-232 then DockLight does a good job. Wireshark is free and requires no additional hardware. DockLight is free for some of its capability. For DockLight to monitor RS-232 traffic a special tap cable is needed (I think). I've not used DockLight to monitor RS-232 but I have used it to monitor traffic over an IP connection with DockLight sitting in the middle. That arrangement works pretty well.

Edited by grif091 - February 01 2010 at 18:31


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 01 2010 at 18:56 | IP Logged Quote dhoward

Smarty,

I tested it on my system and my Arm Status trigger only fires once. I tried a couple of different configurations to try and get it to fire multiple times but was unsuccessful. I checked the code and from what I can tell, the trigger should only fire a single for each input from the elk. Whats strange is that in your screenshots from your referenced post is that the trigger is firing twice but 40 seconds apart.

I cant completely say that the Elk is sending the message twice but it sure looks like it. What would probably be helpful here is to temporarily set your trigger action to run the DISPLAYVARS macro so we can see the internal values each time the trigger is fired. It may give us some additional info.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 01 2010 at 21:17 | IP Logged Quote smarty

Ok, let me walk through this. Here is the event log when I perform an "Armed-Away" command =>ph_ctlrsq("ELK",121,"00XXXX",1,1):



Now, here is the log file (after I cleared it) from the "Dis-Arm" command =>ph_ctlrsq("ELK",121,"00XXXX",0,1)




Here are my Elk triggers:





Lastly, this is the macro that the Elk triggers call. I believe this is what you (Dave H.) are referring to when you say "DISPLAYVARS"....right?


By the way, the above results were ran on a different machine from my main system (trying to see if it made any difference). Also, I performed a "phupg.exe" database validation prior to running these results.

It still appears to me that my Elk triggers are not behaving as they should.

My Elk controller setup (ethernet) is shown here:


I am stumped. I am running the latest M1XEP firmware, Vista is fully updated etc. It appears that the duplicate trigger tghing has been plaging me for quite some time (finally got around to really studying what is happening). Ideas???

Edited by smarty - February 01 2010 at 21:20


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: February 01 2010 at 22:16 | IP Logged Quote grif091

The first ELK_ARMED AWAY at 19:53:17 is for Area 0 (temp4=0)
The second ELK_ARMED AWAY at 19:53:17 is for Area 1 (temp4=1)
The third ELK_ARMED AWAY at 19:54:01 is for Area 1 (temp4=1)

The third trigger is 44 seconds after the second.

Which of the ELK_ARMED AWAY triggers are you looking at as being a duplicate?

With ELK communication being IP on a specific port you may be able to monitor that specific port traffic using DockLight free download.

If you want to wait for Dave to respond that is fine with me.


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 01 2010 at 22:43 | IP Logged Quote dhoward

Smarty,

Can you post some screenshots of your Analog I/O configuration where you've defined the Arm Status points?

Thanks,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 01 2010 at 22:56 | IP Logged Quote dhoward

Oops, didnt see your post Lee. You might be on the right track to something (concerning the area) but Ive probably mis-documented the [TEMP3] and [TEMP4] variables in the case of this command. In this case, [TEMP3] holds the new value that the Armed Status is being set to (1 would be Armed Away) and the [TEMP4] variable holds the previous value (a 0 would be Disarmed). Comparing these two variables to one another would be a good way to eliminate the duplicate (although it would be better to find out what is causing the duplicate).

However, upon very close inspection of the last event log shot, I can see Macro 1 Disarm executed which appears to trigger ELK-ARMED AWAY (which doesnt make sense) followed by a single trigger of ELK-DISARMED. So in this case, not a duplicate but also very strange behaviour. It might also make sense to post screenshots of your 1 DISARM and 1 ARM AWAY macros to see if anything is up there.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 02 2010 at 08:16 | IP Logged Quote smarty

grif091 wrote:
The first ELK_ARMED AWAY at 19:53:17 is for Area 0 (temp4=0)
The second ELK_ARMED AWAY at 19:53:17 is for Area 1 (temp4=1)
The third ELK_ARMED AWAY at 19:54:01 is for Area 1 (temp4=1)

The third trigger is 44 seconds after the second.

Which of the ELK_ARMED AWAY triggers are you looking at as being a duplicate?


OK, let me look into this...I thought I have only a single area (0 or 1) set up as an alarm area.

The 3rd "Armed Away" that occurs 44 seconds after the second is liklet when the Armed Away Exit timer has completed its' countdown.

To me, the first "Armed Away" trigger for area "0" may be right. The other two may be odd. I don't recall setting up an area "1", nor would I think the completion of the "Exit Timer" should cause the "Armed Away" trigger to fire when it reaches zero (that should be some other trigger like the "Armed Status").

Let me check this later today and I will update the post.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 02 2010 at 08:23 | IP Logged Quote smarty

dhoward wrote:
Smarty,

Can you post some screenshots of your Analog I/O configuration where you've defined the Arm Status points?

Thanks,

Dave.


Haven't messed with these in ages....



Arm and dis-arm macros:





Edited by smarty - February 02 2010 at 08:25


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: February 02 2010 at 09:57 | IP Logged Quote MrGibbage

I just saw this thread. I have always seen duplicate
triggers. So in my "ARMING_STATUS_CHANGED" macro, I have
as the first line
ph_killmacrowaiting("ARMING_STATUS_CHANGED")
followed by a WAIT 1. This way only the last of the
rapid-fire trigger changes makes it through. I have seen
that the last of the trigger changes is always the one
that I am interested. Also, I only see these multiple
triggers on arming/disarming. Not on simple zone
changes.
Although, by elk's definition, zone changes can also
affect arming status. For instance, when a zone that has
been set as burglar exterior, if that zone opens, then
the arming status will also change because the system
will not be able to be armed while that zone is open. I
have seen that these types of zone changes do not trigger
multiple triggers. The only ones that seem to do this
are arming status changes because someone entered a valid
code on a keypad.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: February 02 2010 at 09:58 | IP Logged Quote grif091

Dave noted in his earlier post that temp4 indicates previous state, not the Area number as the ELK Guide indicates so there is no need to look into areas.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 02 2010 at 10:19 | IP Logged Quote smarty

MrGibbage wrote:
.....Also, I only see these multiple
triggers on arming/disarming. Not on simple zone
changes.


This is the same for me as well. I only see this duplication on arming/disarming.


Lee/Dave,
I have inspected my Elk programming (areas, each zone, etc), I have only area 1 set up...there are no other areas defined or called out within my Elk set-up.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 03 2010 at 16:20 | IP Logged Quote smarty

Hmmm....so I see I am not the only one who sees duplicate arm/disarm triggers. Gibbage, what version of main board and XEP firmaware are you running. The following two screen shots show my Elk firmware for both the main board and the XEP.

As can be seen, I have the latest firmware for the XEP, but I still need to upgrade the bootware and firmware for the main panel...Will do that tonight. New Elk release notes have a number of ASCII protocal corrections....maybe this will help???





The image below shows the ElkRp log file for when I "Armed-Away" my system. It appears OK to me (no duplicate triggers)


The corresponding PowerHome log file shows two disturbing things....duplicate triggers, and also a "dis-arm" trigger firing (when the system was set to "Arm-Away").


Here are Elk Globals...I think these are right????



Hope this help spark some ideas...
Thanks for everyones help so far!!!

Edited by smarty - February 03 2010 at 17:34


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: February 04 2010 at 09:10 | IP Logged Quote MrGibbage

Shoot, I was going to look at this last night. I can tell
you that I just updated my firmwares in the last month or
two. I am pretty sure I am using the latest firmwares.
Btw, I am using the XEP, but I also saw the same behavior
when I was using the serial port, so I don't think the XEP
is causing it.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 05 2010 at 15:21 | IP Logged Quote smarty

I have now upgraded to the lastest Elk Main Panel firmware (Elk M1 & EZ8 Control Firmware Version 5.1.24 released 1/18/10).

Still seeing the same trigger issues....

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: February 05 2010 at 15:30 | IP Logged Quote grif091

Have you had any success in tracing the communication from ELK.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: February 05 2010 at 15:38 | IP Logged Quote smarty

I have downloaded DockLight (scripting version)....I have to play with it to figure out what I am doing...

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

Page of 2 Next >>
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum