Problems with the Programming to Ademco Vista 250 BP
m.quinti
Posts: 16
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
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
0
Comments
DATA_EVENT
{
STRING:
{
sParse=data.text
IF(sParse='THIS IS WHAT YOU ARE LOOKING FOR')
{DO SOMETHING}
}
}
Hope that helps.
Jeff
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
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.
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.
I wanna thank you Matt Pullin and Gary Ruedinger for the help!
Your ideas were very important.
Thank you very much