MLHAI SERIAL Agent - Issues and Fixes

Plugin for the HAI family of security panels
User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

MLHAI SERIAL Agent - Issues and Fixes

Postby CinemarDave » Sun Jan 24, 2010 3:26 pm

The MLHAI Agent has been split into two different Agents. A Serial version that only supports legacy security panels using serial control and a TCP/IP version that uses the new HAI SDK and will only talk to panel using TCP/IP network connections. Both versions are available in MLInstaller.

Please use this thread only for the discussion of the Legacy Serial connection version of the Agent.

User avatar
rpalori
Member
Member
Posts: 82
Joined: Thu Jan 27, 2005 10:13 pm
Location: Houston, TX
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby rpalori » Wed Jan 27, 2010 9:12 pm

Wow, Dave

I just installed latest Agent and Plugin and now Agent can log into my OmniLT 3.1A with no problem. I guess I can put my older agent and plugin to the side, not needed now.

Also you put the minimize at startup works great!

Thanks,
Ryan

User avatar
mcascio
Founder
Founder
Posts: 8270
Joined: Tue Jan 28, 2003 4:03 pm
Location: Kenosha, Wi
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby mcascio » Thu Jan 28, 2010 10:57 am

Ryan,

Is the plugin working as expected now?
Mario Cascio
Cinemar, Inc.
http://www.cinemaronline.com

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Thu Jan 28, 2010 11:53 am

As for the serial version, I still get agent hangs. Unfortunately nothing shows in the agent log and the message in the events section has limited space so the entire message can't be read. I use a routine that compares the panel clock to the MLS clock and when the difference is greater than 2 minutes a script will close the agent and restart. I log the times of these events.

Lately the agent hangs have been less frequent. Once I have a few days data I will try to determine the frequency of the hang and include an image of the event message.

Rick

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby CinemarDave » Fri Jan 29, 2010 12:46 pm

Ricks the log file is empty? Or just nothing useful in it?

I turned on single instance and made a change to logging in version 3.0.3681.19249. Everyone should run this version.

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Fri Jan 29, 2010 1:33 pm

Hey Dave,

When the agent hangs the log just stops. But I was using an earlier version from when you first split the two agents - didn't realize there was another update. I'll check the log at the next hang.

Question on using units for lighting such as X10. When the agent loads from the panel it will give 2 variables for a unit (lighting): name and current state. Current state is either 0 or 1. If the set level command is used, then a third variable is created: level.

Here's the problem: When using the unit_on or off command, the level never changes. For example, if the unit level is set to 50%, when the unit off command is given the unit level remains at 50%. In addition, if the unit is off and reflects a level of 50%, giving the unit level command of 0 changes the unit state to 1.

If that's too confusing, here it is step by step:

Startup: State = 0, Level doesn't exist
Command Unit On: State = 1, Level doesn't exist
Command Level to 50%: State = 1, Level = 50
Command Unit Off: State = 0, Level = 50
Command Level to 0, State = 1, Level = 0

This is OK except it really messes with ML graphics. Using _level light is off but graphioc shows 50% and light is on but graphic shows it isn't. Using state either shows on or off, but no dim/bright level.

Rick

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Sat Jan 30, 2010 5:47 pm

Here is the frequency of hangs during the past 48 hours. Seems to be no discernable pattern, timing-wise. Also, when agent hangs and is closed/restarted by a script, it starts without logging.

1/28/2010 5:26:03 PM
1/29/2010 12:14:00 AM
1/29/2010 12:29:00 AM
1/29/2010 5:58:02 AM
1/29/2010 1:03:22 PM
1/29/2010 4:48:02 PM
1/29/2010 7:50:02 PM
1/29/2010 11:45:03 PM
1/30/2010 1:00:09 AM
1/30/2010 4:17:02 PM

Section of log where agent hangs. Note time change at 4:15:55. Nothing in the log regarding the hang - just stops.

1/30/2010 4:15:55 PM ACK
1/30/2010 4:15:55 PM Rcvd [33] 16:1:FE:1:FD:1:FE:1:FD:0:80:0:80:0:80:0:80:0:80:0:81:0:80:0:80:0:80:1:FE:0:0:0:0
1/30/2010 4:15:55 PM Zone Status: Start Zone = 1
1/30/2010 4:15:55 PM Exit ProcessCommand
1/30/2010 4:15:55 PM Rcvd [1] 5
1/30/2010 4:15:55 PM ACK
1/30/2010 4:15:55 PM ProcessCommand: Request_Zone_Status~17~32
1/30/2010 4:15:55 PM Rcvd [1] 5
1/30/2010 4:15:55 PM ACK
1/30/2010 5:37:52 PM ProcessCommand: Request_Auxiliary_Status~1~1
1/30/2010 5:37:52 PM Exit ProcessCommand
1/30/2010 5:37:52 PM Rcvd [1] 5
1/30/2010 5:37:52 PM ACK
1/30/2010 5:37:52 PM Rcvd [5] 1A:0:0:0:0
1/30/2010 5:37:52 PM Aux Status
1/30/2010 5:37:53 PM ProcessCommand: Start_Status_Polling
1/30/2010 5:37:53 PM Rcvd [1] 5
1/30/2010 5:37:53 PM ACK
1/30/2010 5:37:54 PM ProcessCommand: Request_Status_Summary

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Sun Jan 31, 2010 3:12 pm

Today's event section of the agent showed the following:

1/31/2010 12:54:05 AM Failed to connect to the panel via the serial port. Timeout.
1/31/2010 12:56:37 AM Failed to connect to the panel via the serial port. Timeout.
1/31/2010 1:15:42 AM Failed to connect to the panel via the serial port. Timeout.

None of these 3 events caused the agent to hang since there was no restart of the agent - has been running since 1/30/2010 9:11:38 PM. Appears to have connected on the next poll. Also, no activity was scheduled for the panel during the times shown.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby CinemarDave » Mon Feb 01, 2010 12:40 pm

Good that it is not restarting the agent. I do see similar timeouts here that correct themselves on the next poll. Looks like the panel is just too busy doing something internally because the correct bytes are sent to the panel. it just refuses to answer.

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Mon Feb 01, 2010 7:41 pm

A few comments:

First, at exactly 5:20:00 PM today, one of my clients was disconnected by MLServer. I have no idea why. But, the following message showed up in MLHAI agent at exactly 5:20:00 PM:

Exception Error from 192.168.0.103 - an existing connection was forcibly closed by the remote...

That ip is the server where MLS resides, not the client. Since there is no scroll or window sizing available for the agent event window I can't tell what the rest of it said.

Here's the odd part. Since this client has absolutely nothing to do with HAI or MLHAI or its agent, why would this error message appear in the MLHAI agent event window?

Next. Originally I had "Poll Events Every" set to 5 minutes and received hangs based on the schedule I listed above. I then set this value to "never" and didn't get any hangs for almost 2 days. This afternoon I reset this value to every 2 minutes and received my first hang 2 hours later. May be too early to tell but seems related. I'll run at 2 minutes for another day or so and then back to "never".

Lastly, as far as event monitoring goes, the agent allows me to monitor a maximum of 64 events. I have none of the events checked so the panel should be monitoring no events. So even if the Poll Events Every" value is set to 1 minute, the agent should actually be monitoring no events. Correct? So here's the odd part. If I check my hai variables, I see hai_event001* through hai_event250* even if it is set to never poll.

So it would appear that the polling events may have something to do with the hangs. It also appears that there is a problem with the poll events settings if I have it set to poll 0 events every 2 minutes but still I get 250 events, each with up to 6 variables.

One last thing about the agent settings. It gives the option to monitor zones 17-32 and 33-48. I only have 17-32 checked but the agent still tries to poll 33-48.

Rick

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Sun Feb 21, 2010 11:57 am

Dave,

I understand that the ip version is working much better and would hate to see the serial be abandoned as is. I am still logging the sporadic hangs. Can you make some simple changes to see if it helps to reduce the hangs? I've mentioned some of these above.

- I have event monitoring set to "never" and it still tries to collect event data for 250 variables. Even when I had event monitoring on and asked for only the last 10 variables to be created it would still capture 250. If this were fixed and it actually only requested the last 10 events it may significantly cut down on agent/panel communications.

- Similar issue with zones. Despite only having zones 1-32 checked to be monitored it is requesting data on zones 1-48. Again, needless agent/panel communication. This leads me to believe that other unchecked variables are also being polled.

As for the hangs, I have several weeks of my own logs showing when the panel hangs. There is no correlation with timing - plotting the hangs seems to be entirely random. I also checked the hangs against panel activity - again, no correlation. I have also checked it against MLS activity and again, there is nothing running in MLS at the time of the hang.

I raised the baud rate to 128000 to see what would happen. After an initial hang, it went 2 days without another hang but now they're back with 2 this morning.

The image shows event messages in the agent for some of the period during the 2 days with no hang. Some of the errors are due to MLS crashing when trying to run the z-wave plugin (doesn't work). Others I have no idea what they mean. Maybe you can get something out of these error messages.

Rick
You do not have the required permissions to view the files attached to this post.

User avatar
rpalori
Member
Member
Posts: 82
Joined: Thu Jan 27, 2005 10:13 pm
Location: Houston, TX
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby rpalori » Mon Feb 22, 2010 9:34 pm

mcascio wrote:Ryan,

Is the plugin working as expected now?


Mario,
Still have issues with X10 Unit lighting variables and HAI agent locks up every few days. Unit control commands seem to work but the state variables bounce 0 or 1 every few times agent polls OmniLT 3.1A board. Level variables dont work either, having same problems as Rick.

I think separating the serial from ip on agent was a step in the right direction. But still have bugs I am finding.


One big problem I have is on OmniLT keypad I can select ALLON or ALLOFF lighting command and it works. Turns all lights on or off but there is not a command for this under agent. So from my touchscreen I dont have ALLOFF or ALLON button that works.

I will keep you posted on other issues.

Thanks,
Ryan

ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby ricks » Mon Feb 22, 2010 10:26 pm

Other than the constant hangs, that 0 / 1 bounce is a real killer. I have programs to determine heating start times based on outside temps that rely on data acquired by those variables that bounce. Variable = 1, program records start time. Variable = 0, program records stop time. When this keeps bouncing it destroys the value of the data collected.

DaveB, if you see this post can you tell if the ip version is bouncing the 0/1's?

Rick

User avatar
DaveB
Simply Incredible
Simply Incredible
Posts: 3143
Joined: Sun May 30, 2004 10:57 pm
Location: Mays Landing, NJ
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby DaveB » Mon Feb 22, 2010 11:10 pm

No, the bouncing stopped when I went to the ip version. The serial version has always bounced variables. This is not a new or recent issue.
Thanks!

Dave Bruner
:shock:

mbrad79
Newbie
Newbie
Posts: 10
Joined: Mon Dec 31, 2007 4:38 pm
Contact:

Re: MLHAI SERIAL Agent - Issues and Fixes

Postby mbrad79 » Fri Apr 02, 2010 9:35 pm

Dave,

Is the MLHAI program finished? I have never gotten it to work for more than half a day. As long as I'm receiving "HandleUnsolicitedPackets" in the routine column, everthing is fine with the program. Then for no reason, MLobby stop interacting with the Omnipro II, the routine column in MLHAI now reads "Process Command" and "exit" and will not execute commands until restarted. It will also have frequent Connection Status issues: "retrying" and then "disconnected".

I'm sure there's something I'm doing wrong. I have the latest upgrade, my chip version on the Omnipro is 3.2b; I just can not seem to figure it out. I haven't noticed much chatter on this subject in the forum lately. Is the program working for most everyone?

If the program doesn't work consistantly, let me know; I don't want to waste any more time or money on the project.

Thanks Mark


Return to “MLHAI”

Who is online

Users browsing this forum: No registered users and 1 guest