Home AMX User Forum NetLinx Studio

Problems with the Programming to Ademco Vista 250 BP

Dear all,

I downloaded a folder from the "InConcert Resource Center", for the Ademco Vista 250.
I included the modules AXS and TKO in my programming and it was ok.

The problem is that I need to get the feedback of some zones and they are like this:

DATA_EVENT[uvdvADEMCO_VISTA]
{

STRING:
{
SEND_STRING 0,"'UI RECEIVED FROM COMM:',DATA.TEXT"
CASE 'ZONE=': // ZONE STATUS INFORMATION {
...the code remains

I have to call this DATA_EVENT but I don't know how to do it.

Someone can for using the programming inside the DATA_EVENT?

Thank you in advance

Comments

  • glr-ftiglr-fti Posts: 286
    I'm not sure I understand your question but I believe what you want to do here is parse the feedback and you do that by using the STRING with something as follows:

    DATA_EVENT
    {
    STRING:
    {
    sParse=data.text
    IF(sParse='THIS IS WHAT YOU ARE LOOKING FOR')
    {DO SOMETHING}
    }
    }

    Hope that helps.
  • Spire_JeffSpire_Jeff Posts: 1,917
    Be careful, there are two different protocols in use on these security panels. The new protocol is a lot more robust, but different enough that it used to break the AMX comm module on everything excepts partition status (as I recall). It may seem like things are working, but you will not see most of the zone events.

    Jeff
  • m.quintim.quinti Posts: 16
    The problem remais...

    Dear Gary Ruedinger,

    Your tip was good !!

    In my programming I sent the command: SEND_COMMAND uvdvADEMCO_VISTA,"'ZONE?'" (I don't know if this is the correct procedure...)

    And I did what you had said with a variable sParse which got the DATA.TEXT, and its value is 65.

    The problem is that there is a switch like this:

    sParse=DATA.TEXT
    SWITCH(REMOVE_STRING(DATA.TEXT,'=',1))
    {
    CASE 'DEBUG=': bDEBUG_FLAG=ATOI(DATA.TEXT)
    BREAK
    CASE 'ZONE=':

    HERE IS WHAT I NEED !!! BUT THE VALUE OF THE VARIABLE NEVER IS 'ZONE' ... is always 65...

    In another words, the value of the variable should be ZONE for the correct functioning but it doesn't occur.

    Someone can help me?

    Thank you in advance
  • glr-ftiglr-fti Posts: 286
    First you are not doing anything with the sParse assignment so why use it? You are doing a Remove_String on Data.Text itself.

    I don't have info on the Vista model so I can't help you with what it will send back but if it follows other AMX modules your feedback will be something along the lines of :

    ZONE=1:1:OPEN:ALARM

    There are many variations of this so you need to parse it all.

    I don't know where you are getting a 65 from without debugging your system. Try going into Debug and watching the sParse variable where you will find its value. Do you have sParse set up correctly? Is it set up as an integer or char? If it helps a 65 is the ASCII rep for 'A'.

    Is there some other activity that is occuring that is returning the 65?

    This is the fun part of prgramming. Get in there and start poking around.
  • mpullinmpullin Posts: 949
    I have learned two important things about the Ademco Vista:

    1) While the RS232 jack is connected to the alarm panel, you will not be able to change any settings via the keypad. It will look like something is happening, but it is not.
    2) The manual warns you that certain commands are not for polling. If you try to poll with these commands anyway, it will prevent the alarm panel's modem from dialing out.
  • m.quintim.quinti Posts: 16
    Thank you for the help

    I wanna thank you Matt Pullin and Gary Ruedinger for the help!
    Your ideas were very important.

    Thank you very much
Sign In or Register to comment.