Vista 20p Trigger outputs

General Discussion

Re: Vista 20p Trigger outputs

Postby kd7mlg » Sun Oct 18, 2020 2:05 pm

rseliger wrote:I have used your approach to implement remote red and green LED's. Thanks for posting your solution.

Now, I have been trying to modify (improve) the behavior so that the green LED is on only when no zones are open and is off otherwise. This would be similar to the green on the keypad

My problem is that there are no choices for "open" and "closed" analogous to Disarming and Arming-Away.

Any ideas?


Did you ever solve this? I'm contemplating something similar, and while using outputs from the Pi seems to be a reasonable way to go, I'd prefer to latch to the panel (in the event the Pi drops offline for some reason); and I figured setting up the panel for "keyswitch" operation might be a possibility.

"program outputs 17 and 18 for system operation zone type 78 (red LED) and 79 (green LED) as appropriate (see Output Device Programming section)."

Pin 1/Output 17 connected to Red LED with 820 ohm resistor; Pin 5/Output 18 connected to Green LED with 820 ohm resistor; Pin 3 bridged to both (+12v).

If this works (without configuring a type 77 (keyswitch) zone), it would yield operations just like the system LEDs:
Code: Select all
Green Red         Meaning
Off   Off         Disarmed & not ready
On    Off         Disarmed & Ready
Off   On Steady   Armed Away
Off   Slow Flash  Armed Stay
Off   Rapid Flash Alarm Memory
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: Vista 20p Trigger outputs

Postby mathewss » Tue Oct 20, 2020 2:59 pm

Maybe I broke something but AFAIK even my free C# based GUI keypad app has a Green and Red LED that conform to a real keypads LED's

Here is the snip of C# code in the GUI app that does this update.

Code: Select all
        /// <summary>
        /// Draw our new message update our display
        /// </summary>
        private void UpdateDisplay()
        {


                if (qf.m_Message.Programming_Mode) {
                        lblStatus.Text = "Panel Progamming Mode";
                }
                else {
                        lblStatus.Text = "";
                }


                ToggleLED(imgLed1, qf.m_Message.Ready,false);
                ToggleLED(imgLed2, qf.m_Message.Armed_Away || qf.m_Message.Armed_Home,true);

                // Beep if flag set
                if (qf.m_Message.Beeps > 0)
                {
                        // NOTE: No idea if this actually works, since I don't have sound here.  Gives me a nifty error on the app console, tho! ;D
                        int iBeeps = qf.m_Message.Beeps;
                        for(;iBeeps>0;iBeeps--) {
                          //PlatformSupport.beep();
                        }
                }

mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 7 guests