Page 1 of 2

Any pointers on how to bypass a trouble zone via API?

Posted: Wed Mar 13, 2013 12:27 pm
by webhiker
Sorry if this has been covered before, but I'm having trouble figuring out how to use the api to bypass a set of trouble zones to allow arming of the system.

Ideally I'd like to simply have an ARM function which automatically bypasses all the problems and allows arming even with some trouble conditions.

many thanks
wh

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Wed Mar 13, 2013 9:32 pm
by smyers119
From the "Quick API" Directions

https://www.eye-zon.com/EZMOBILE/indexa ... id=<unique hash>&action=c&did=<device mac - make sure all caps>&com=send_bypass&zone=<Zone Number>

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Wed Mar 13, 2013 10:48 pm
by webhiker
Sorry, I meant the TPI module API.

I'm logging in ok, and then send keystroke command :

071*1123418#49

where
command=071
usercode=1234
zone=18
chcksum=49

but it always responds with :
LOGIN_INTERACTION:Login Response (ok=0, fail=1, timeout=2, login=3) -- data: 1 code: 505

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Sat Mar 16, 2013 11:13 am
by webhiker
ok, any help would REALLY be appreciated, I've been banging on this for days.

Could someone confirm it's NOT possible to send a bypass command using "Send Keystroke String".
Let me explain.

The command required would be :
X*1YYYYZZ#
X=partition
YYYY=passcode
ZZ=zone

but this command can only accept SIX chars?

What are the rules for breaking up into seperate strings? Is this even possible?
Secondly, I've never seen any command which prompts for user passcode - anyone got an example?
Sure bypass should generate a "request user code" instead of forcing me to maybe include it as part of the command, since only SOME systems require passcode or not? I have no way to know.
Perhaps this is a defect, or enhancement we could request?

In case it helps, using a pc1864.

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Sat Mar 16, 2013 7:41 pm
by mikep
It is possible, my android app can be used to bypass zones. I use Send Keystrokes (071), sending *1 first, and then the zones to be bypassed one zone at a time, works fine. I send "#" to exit.

If you're getting a 505, perhaps your app has disconnected for some reason? Or the envisalink has disconnected because it didn't like something, and then your app is reconnecting. That's asking for the envisalink password, not your alarm board PIN which would be a 200 event.

Hope this helps!

Mike

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Sun Mar 17, 2013 4:36 am
by webhiker
Hi Mike, thanks for the thoughts.
Your commands are surely incorrect, it absolutely needs the partition (at least on a pc1864).

I send like so :
0711*1 (partition + *1)
->ACK
->system is in installer mode
071132 (partition + zone 32)
->ACK
070#
->ACK
->1 NOT_READY

I never get any other notif that the zone is bypassed or restored or anything.
Any other suggestions?

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Sun Mar 17, 2013 8:57 am
by mikep
Don't know what to tell you, works fine for me:
0711*1
... some updates from the envisalink to set the bypass LED flashing
071100
071101
071102
071104
0711#
the bypass LED stays lit.

and I clear them with
0711*1
071100
0711#
at which point bypass turns off.

I haven't tried mixing 071 with 070, any particular reason you are doing that? Perhaps it's a problem for the envisalink when it's running in a different mode.

You could try my android app to verify bypass zones if you have access, the client is free. Search for the DscKeypad by mpp on google play.

Mike

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Sun Mar 17, 2013 5:26 pm
by webhiker
I tried your app, couldn't find any way to list the open zones, so not really sure how to bypass them.
Nice to see you hitting some of the same issues as me trying to re-invent a SAX parser with the random way the Envisalink responds. :)
It got into a few loops that required a forced kill.

I use the 071 when sending a singe char.

Maybe my bypass commands ARE working, and it's normal they return status as ZONE OPEN despite being bypassed?

anyway, thanks for the help.

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Mon Mar 18, 2013 5:49 am
by webhiker
I think I may have found the issue.

You have to wait for the 680 response (System in installer mode) before you can send the rest of the keystrokes -even though if you don't there are NO failures reported (sounds like a bug)

But Mike, looking at your commands, can you explain this one :
071100

071 - send keystring
1 - partition
00 - ???? can't be zone, they start at 01, so what is this?

Re: Any pointers on how to bypass a trouble zone via API?

Posted: Mon Mar 18, 2013 9:00 am
by smyers119
There might be a bug with Vista 20p systems....maybe this is the problem you are running in to.

http://forum.eyez-on.com/FORUM/viewtopi ... 89d1e2ce1a