-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for AD2* Devices #389
Commits on Jan 4, 2014
-
Cherry Pick Initial AD2USB.pm File from HPlato Repo
new file: AD2USB.pm
Configuration menu - View commit details
-
Copy full SHA for 3de7c84 - Browse repository at this point
Copy the full SHA 3de7c84View commit details -
Cherry Pick HPlato Modifications to AD2USB.pm
modified: AD2USB.pm
Configuration menu - View commit details
-
Copy full SHA for 7eba025 - Browse repository at this point
Copy the full SHA 7eba025View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6434969 - Browse repository at this point
Copy the full SHA 6434969View commit details -
AD2: Bless Child Obj As Generic Obj; Remove States
- Allows for use of all Generic_Item options including tie_events - Remove states because this is not an "editable" object
Configuration menu - View commit details
-
Copy full SHA for 5fda62f - Browse repository at this point
Copy the full SHA 5fda62fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 297bdb5 - Browse repository at this point
Copy the full SHA 297bdb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 224cc49 - Browse repository at this point
Copy the full SHA 224cc49View commit details -
AD2: Fix Tabbing in Serial_Setup For Easier Reading
Tabs are set at 3 spaces which is odd
Configuration menu - View commit details
-
Copy full SHA for 71b2d33 - Browse repository at this point
Copy the full SHA 71b2d33View commit details -
Configuration menu - View commit details
-
Copy full SHA for a782796 - Browse repository at this point
Copy the full SHA a782796View commit details
Commits on Jan 6, 2014
-
AD2: Add Notes and Correct Tab Spacing in Check for Data
Why are we hardcoding $Self?
Configuration menu - View commit details
-
Copy full SHA for fe22363 - Browse repository at this point
Copy the full SHA fe22363View commit details -
Configuration menu - View commit details
-
Copy full SHA for e743551 - Browse repository at this point
Copy the full SHA e743551View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15b2849 - Browse repository at this point
Copy the full SHA 15b2849View commit details
Commits on Jan 7, 2014
-
Configuration menu - View commit details
-
Copy full SHA for c35cffe - Browse repository at this point
Copy the full SHA c35cffeView commit details
Commits on Jan 10, 2014
-
AD2: Get Rid of CmdMsg Global Variabls, Simply DefineCmdMsg
Can't use a global variable, otherwise users would not be able to have multiple panels setup in MH. Greatly simply DefineCmdMsg mess.
Configuration menu - View commit details
-
Copy full SHA for d2888e0 - Browse repository at this point
Copy the full SHA d2888e0View commit details -
AD2: Clean up new() Sub, Don't Change Config Hash
Make new() sub much easier to read, get rid of verbose coding. Remove all changes to Config Hash, this should be read-only as it represents the contents of the ini file, this contents can be updated by MH
Configuration menu - View commit details
-
Copy full SHA for 83b3ee9 - Browse repository at this point
Copy the full SHA 83b3ee9View commit details -
AD2: Remove Unnecessary Checks for MHINTERNAL
No need for this if regex includes start and end of line
Configuration menu - View commit details
-
Copy full SHA for 0c83226 - Browse repository at this point
Copy the full SHA 0c83226View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c621ee - Browse repository at this point
Copy the full SHA 2c621eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ca00f4 - Browse repository at this point
Copy the full SHA 5ca00f4View commit details -
AD2: Rework Check_for_Data to Handle Object Oriented Programming
Also cleanup parser to make a little easier
Configuration menu - View commit details
-
Copy full SHA for 23705cf - Browse repository at this point
Copy the full SHA 23705cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3ca92c - Browse repository at this point
Copy the full SHA d3ca92cView commit details
Commits on Jan 11, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 31ed86f - Browse repository at this point
Copy the full SHA 31ed86fView commit details -
AD2: Change GetStatusType to Return a Hash, Clean up Some Tabbing in …
…CheckCmd, Removed Switch Package Returning a hash makes the code infinitely more readable, no longer need to remember the numbers for various message types. Removed Switch to make compatible with Perl 5.8.8
Configuration menu - View commit details
-
Copy full SHA for c9e116a - Browse repository at this point
Copy the full SHA c9e116aView commit details -
AD2: Remove Some Substr in GetStatusType, Add More Message Parsing
Relying on substr is dangerous, particularly since a user can enable the !KPM: prefix. Add more message parsing to GetStatusType, this routine can likely be converted to parse_message and save a lot of code
Configuration menu - View commit details
-
Copy full SHA for 09a5365 - Browse repository at this point
Copy the full SHA 09a5365View commit details -
AD2: Significantly Simplify Fault Loop Logic
Get rid of all of the complicated tests. Allow ChangeZones to loop around from a high zone to a low zone. NOTE: May need to add a check to ChangeZones to see if it is reseting a mapped zone.
Configuration menu - View commit details
-
Copy full SHA for 708bbdd - Browse repository at this point
Copy the full SHA 708bbddView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6e4c36 - Browse repository at this point
Copy the full SHA f6e4c36View commit details -
AD2: Condense Status Type into Keypad Type
Anytime we get a keypad message we can check the status bits. Stop using substr and use hash flags.
Configuration menu - View commit details
-
Copy full SHA for ffe223b - Browse repository at this point
Copy the full SHA ffe223bView commit details -
AD2: Enable Use Strict, Clean Up Warnings
Wow, can't believe I missed that.
Configuration menu - View commit details
-
Copy full SHA for d1105b9 - Browse repository at this point
Copy the full SHA d1105b9View commit details -
AD2: Condense RF Parsing into GetStatusType
Using hash keys makes the code much more condensed and easier to read.
Configuration menu - View commit details
-
Copy full SHA for 3b771cf - Browse repository at this point
Copy the full SHA 3b771cfView commit details -
I have to admit I don't really understand all of the optional settings for wireless objects
Configuration menu - View commit details
-
Copy full SHA for fce0d42 - Browse repository at this point
Copy the full SHA fce0d42View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5f42fc - Browse repository at this point
Copy the full SHA c5f42fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42bd9d2 - Browse repository at this point
Copy the full SHA 42bd9d2View commit details
Commits on Jan 12, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 9681277 - Browse repository at this point
Copy the full SHA 9681277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08b7a5e - Browse repository at this point
Copy the full SHA 08b7a5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e27e87 - Browse repository at this point
Copy the full SHA 6e27e87View commit details -
AD2: Reset All Zones, Even Those That are Mapped
Not clear to me why we don't reset mapped zones. If it is necessary, we should be adding something to ChangeZones, not burying it all over the place.
Configuration menu - View commit details
-
Copy full SHA for 979d6fb - Browse repository at this point
Copy the full SHA 979d6fbView commit details -
AD2: Remove Zone_Now_Msg, Not Used
Anytime it was set, it was being immediately cleared by ResetAdemco
Configuration menu - View commit details
-
Copy full SHA for 948f335 - Browse repository at this point
Copy the full SHA 948f335View commit details -
AD2: Remove Zone_(Now|Last)_Name as Not Used
These were always reset by ResetAdemco or not ever used
Configuration menu - View commit details
-
Copy full SHA for 460bd94 - Browse repository at this point
Copy the full SHA 460bd94View commit details -
AD2: Remove Zone_(Now|Last)_Status, Remove Zone_Now_Num, Cut Back Zon…
…e_Last_Num First three served no purpose. Zone_Last_Num is used only to keep track of state in fault loop.
Configuration menu - View commit details
-
Copy full SHA for 32aa1c7 - Browse repository at this point
Copy the full SHA 32aa1c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca1ed24 - Browse repository at this point
Copy the full SHA ca1ed24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 528c9fb - Browse repository at this point
Copy the full SHA 528c9fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cdb1c4 - Browse repository at this point
Copy the full SHA 0cdb1c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28b5714 - Browse repository at this point
Copy the full SHA 28b5714View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aa21c3 - Browse repository at this point
Copy the full SHA 6aa21c3View commit details -
AD2: Add Framework for Partitions
Not sure how they work exactly, so everything defaults to 1
Configuration menu - View commit details
-
Copy full SHA for 8db790f - Browse repository at this point
Copy the full SHA 8db790fView commit details
Commits on Jan 13, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 2c3287b - Browse repository at this point
Copy the full SHA 2c3287bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0988d7 - Browse repository at this point
Copy the full SHA a0988d7View commit details
Commits on Jan 17, 2014
-
AD2: Create Method to Merge INI and Read Table A Settings
Change all calls to config_parms to use this method
Configuration menu - View commit details
-
Copy full SHA for 172ae32 - Browse repository at this point
Copy the full SHA 172ae32View commit details -
AD2: Convert Routines to Object Oriented Code
No more hardcoding $Self!!
Configuration menu - View commit details
-
Copy full SHA for dfd3125 - Browse repository at this point
Copy the full SHA dfd3125View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02d2902 - Browse repository at this point
Copy the full SHA 02d2902View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b1772c - Browse repository at this point
Copy the full SHA 3b1772cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38f62cc - Browse repository at this point
Copy the full SHA 38f62ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58bd1ab - Browse repository at this point
Copy the full SHA 58bd1abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b6a380 - Browse repository at this point
Copy the full SHA 6b6a380View commit details -
AD2: Cleanup Child Objects; Add New Objects
Add an object for a partition. Cleanup unused function sof door and motion items. Some odd functions still remain.
Configuration menu - View commit details
-
Copy full SHA for 174be7e - Browse repository at this point
Copy the full SHA 174be7eView commit details
Commits on Jan 21, 2014
-
Configuration menu - View commit details
-
Copy full SHA for d849b54 - Browse repository at this point
Copy the full SHA d849b54View commit details
Commits on Jan 29, 2014
-
Configuration menu - View commit details
-
Copy full SHA for c4dae63 - Browse repository at this point
Copy the full SHA c4dae63View commit details -
AD2: Don't Reset Mapped Zones Based on Alpha Messages
Mapped zones are faulted by direct messages received from the AD2. This correction fixes the following oddity: ------- Zones 1 and 3 are faulted. The Alpha message describing the Zone 3 fault just arrived. Zone 10, a mapped zone is then faulted. The fault is immediately detected by an EXP! message. MH updates the status of zone 10 to faulted. AD2 then starts over with the Alpha fault list by sending the Alpha message that Zone 1 is faulted. Since the last alpha fault received was zone 3, MH resets all zones between 3 -> 1 as ready, clearing out 10. Two messages later, the Alpha message for zone 10 arrives, putting zone 10 back in a faulted state. ------- This fixes the oddity by not reseting any mapped zones based on alpha messages.
Configuration menu - View commit details
-
Copy full SHA for 49fe393 - Browse repository at this point
Copy the full SHA 49fe393View commit details -
AD2: Don't Perform Wrap-Around Reset, Unless Highest Zone is Consistent
The alphanumeric fault messages are more complicated than i realized. The list of faulted zones restarts at the lowest faulted zone everytime a fault occurs. So for example, if zones 1-5 are faulted, and the panel has just finished sending the zone 3 fault message, if zone 7 is then faulted, the next message will be a zone 1 fault again. If we blindly perform wrap-around resets, it is very easy to create a "fluttering" zone when multiple zones are faulted. To cut down on the potential for fluttering, this change only performs a wrap-around reset if the highest faulted zone that is reported remains constant for 2 cycles. While not completly ensuring that all zones have been report, it is unlikely that the panel will be interrupted at exactly the same point in its cycle twice. The major downside of this, is that there may be a slight delay in reseting zones from fault -> ready. This is particularly true of the higher unmapped zones.
Configuration menu - View commit details
-
Copy full SHA for d829384 - Browse repository at this point
Copy the full SHA d829384View commit details
Commits on Jan 30, 2014
-
Try to optimize code as much as possible. On a dual core machine, using AD2 code seems to add between .3-.7% CPU usage to one of the cores. I think this is mostly a side effect of using a socket.
Configuration menu - View commit details
-
Copy full SHA for 72dd795 - Browse repository at this point
Copy the full SHA 72dd795View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9083488 - Browse repository at this point
Copy the full SHA 9083488View commit details
Commits on Feb 2, 2014
-
AD2: Redesign Declaration of Wireless Items; Grandfather in Old Ini D…
…eclaration The old design for the ini declaration was a little confusing. Plus, carrying it over directly into the Configation Hash did not allow for mht style declarations of a wireless object. The new design seems more logical to me and adds the framework to support an mht style declaration. The old design for ini declarations is stil supported for backwards compatibility.
Configuration menu - View commit details
-
Copy full SHA for 658313a - Browse repository at this point
Copy the full SHA 658313aView commit details -
AD2: Condense Door and Motion Item Into a Single Class; Add Support f…
…or MHT Declarations They are essentially identical. This gets rid of the duplicative code. Added framework to support mht declaration of wireless, expander and relay items.
Configuration menu - View commit details
-
Copy full SHA for 8f85c2d - Browse repository at this point
Copy the full SHA 8f85c2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02e6b64 - Browse repository at this point
Copy the full SHA 02e6b64View commit details
Commits on Feb 5, 2014
-
Configuration menu - View commit details
-
Copy full SHA for a830b41 - Browse repository at this point
Copy the full SHA a830b41View commit details
Commits on Feb 12, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 9ce1ef0 - Browse repository at this point
Copy the full SHA 9ce1ef0View commit details -
AD2: Convert from AD2USB -> AD2
All references to AD2USB has been replaced with AD2. This means all configuration settings and user code settings need to be updated as well. The change was necessary because this module will work with at leaast AD2Serial, AD2USB, AD2Pi, and likely many more AD2 style products that will be released in the future.
Configuration menu - View commit details
-
Copy full SHA for e3fc593 - Browse repository at this point
Copy the full SHA e3fc593View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04c41ca - Browse repository at this point
Copy the full SHA 04c41caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 587e547 - Browse repository at this point
Copy the full SHA 587e547View commit details
Commits on Feb 13, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 0fcbc8a - Browse repository at this point
Copy the full SHA 0fcbc8aView commit details
Commits on Feb 28, 2014
-
Configuration menu - View commit details
-
Copy full SHA for ad5c3d1 - Browse repository at this point
Copy the full SHA ad5c3d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f230401 - Browse repository at this point
Copy the full SHA f230401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ee3c0a - Browse repository at this point
Copy the full SHA 4ee3c0aView commit details
Commits on Mar 16, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 4b1a455 - Browse repository at this point
Copy the full SHA 4b1a455View commit details
Commits on Mar 27, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 016e681 - Browse repository at this point
Copy the full SHA 016e681View commit details -
AD2: Fix Wireless Definition; Fix Resetting of Keyfobs
Cannot use comma in mht definitions Keyfob was not likely ever set to fault, since fault and ready were set in same loop.
Configuration menu - View commit details
-
Copy full SHA for 1b7758e - Browse repository at this point
Copy the full SHA 1b7758eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2bf4f3 - Browse repository at this point
Copy the full SHA f2bf4f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48dab89 - Browse repository at this point
Copy the full SHA 48dab89View commit details
Commits on Apr 19, 2014
-
AD2: Fix Errors in Alpha Fault Processing; Add Better Notes; Fix Bug …
…in Partition Checking for faults using the Alphanumeric messages is really complicated. The concept sounds simple, but building a test that doesn't get confused is difficult. I think this current system is more accurate, but a little slower to move from fault->ready. I added a lot more comments to explain my logic since code alone is not really enough. Also fixed a error in the partition child.
Configuration menu - View commit details
-
Copy full SHA for 531bc69 - Browse repository at this point
Copy the full SHA 531bc69View commit details
Commits on May 8, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 98e9a54 - Browse repository at this point
Copy the full SHA 98e9a54View commit details