Thankyou for the additional logs.
Odd indeed. I fixed a minor problem where your browser was sending a value of “undefined” when you attempted to Stay Arm without a PIN Code. I’ve translated that situation into a valid value, so that shouldn’t error anymore. I normally rung Firefox, but I’m guessing you run another type of browser.
There were a few of these in the logs, followed by a correct Stay Arming request, so this checkin should address that issue.
This fix is here if you’d like to apply it:
http://code.mios.com/trac/mios_paradox-alarm/export/69/trunk/I_ParadoxSecurityEVO.xml
Tracing the logs there are two issues:
a) The PRT3 is returning “Area-015”:
52 04/02/14 21:56:17.850 0x47 0x30 0x36 0x35 0x4e 0x30 0x30 0x30 0x41 0x30 0x31 0x35 (G065N000A015) <0x2dec5680>
This will of course error out, since no Area 15 is ever possible in these Alarm Panels. I can fix the code so it doesn’t error out, but I have absolutely no idea why the PRT3 would ever return that value.
Typical values are 000 (All Areas), 001 (Area 1) and in my house 002 (Area 2) since I’ve split the sensors out.
Now, this breakage will only impact that specific request, and the code will carry on afterwards. It’s possible that some state is lost in that specific instance, since my code does attempt to respond to that data, but events are otherwise arriving correctly afterwards.
b) The Arming command you requested got Sent, but I get no confirmation from the PRT
I can see the failed stay-arming request that you sent, but each “send” is supposed to come with a corresponding acknowledgement. This would imply that some component between Vera and the PRT is not working correctly, and the data isn’t getting out, or not getting back. This is the root of the next step of analysis.
For (b), can you PM me a copy of the following:
a) Your [tt]NetworkMonitor.log[/tt] file?
I’d like to see if both [tt]ser2net[/tt] and [tt]serproxy[/tt] are running at the time of the incident.
b) Output from running [tt]logread[/tt]
c) Output from running [tt]dmesg[/tt]
My suspicion is that something is taking out Vera’s [tt]ser2net[/tt] process, or the serial port itself, at some point “past” the last valid data received from the PRT3. Scanning the above information will give me a sense for whether this is the case.
If that fails, then the next step would be to instrument the Plugin to periodically “poll” one of the Zones to determine more precisely when the middle component stops communications with the PRT3 (right now, there is a wide time range)
Thanks for taking the time to get this together. It’s an interesting problem since I’ve never seen anything like it (isn’t that always the way?)