Skip to content

AlarmDecoder thinks faulted zone is momentarily restored when a function key is pressed #46

Open

Description

@melyux

Latest beta firmware.

There is a bug with the zone restore/fault parser when a function key is pressed on the keypad. Pressing the function key (either physically or by sending the ASCII codes) seems to trigger a repeat of the last output message as far as I can see in telnet. If this is a zone fault message, it confuses the zone restore/fault parser and causes it to report a momentary zone restore of the non-repeated zones. The bug doesn't occur if you press a function key within ~1 minute of previously pressing the function key. It seems to occur like 80% of the time with only one zone faulted, but with two+ zones faulted when you press the function key, the chances of all of them being falsely restored go up to 100%. If you have a "low battery" or another kind of non-zone message that happens to be the latest message when you press the function key, this doesn't occur.

[00000001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "
[00000001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        "
[00000001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "
[00000001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        "
[00000001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "
[00000001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        "
[00000001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "
[00000001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        "
[00010001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        " ← Pressed the function button here, and the repeated Zone 18 message accompanied with a momentary restore of Zone 9 occurs
[00010001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "
[00010001000000000A--],018,[f700001f1018000008020000000000],"FAULT 18                        "
[00010001000000000A--],009,[f700001f1009000008020000000000],"FAULT 09                        "

Activity

  1. melyux commented on Jul 14, 2020

    @melyux
    Author

    This is also happening quite often even without using function keys. If you have a faulted zone, and you momentarily open your front door, AlarmDecoder will think the faulted zone was restored momentarily.

  2. f34rdotcom commented on Feb 28, 2021

    @f34rdotcom
    Contributor

    Interesting. I will have to dig into this as I implement zone tracking in the C++ api. I would suspect any keypad sending to the panel could trigger the panel to start the sequence over. I expect it would start over in a pre defined way such as from the highest zone # in this case 18. A test would need to be done with 3 or more zones to confirm the order is descending or some other less predicable logic. If that is the case then this is very bad for my original algorithm :c(

  3. f34rdotcom commented on Feb 28, 2021

    @f34rdotcom
    Contributor

    As for the LOW BATTERY or other system message this is fixed in the C++ API and discussions have started about how this could be fixed here. I designed the C++ API do address these issues so its not clear yet what would need to be done to refactor the Python code but hopefully back porting the improvements wont be too painful. The difficulty will be doing this and not breaking any existing implementations.

  4. melyux commented on Sep 17, 2021

    @melyux
    Author

    Updating to say that this still happens a lot on the latest version.

  5. f34rdotcom commented on Sep 18, 2021

    @f34rdotcom
    Contributor

    Updating to say that this still happens a lot on the latest version.

    I am leaning toward a hybrid algorithm on the new C++ API. If the zone tracker detects it is gone it puts a timer on it just in case it comes back. It will increase the lag by a few seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions