Envisalink 2DS - TPI Documentation

Information and support for EnvisaLink modules.

Moderators: EyezOnRich, GrandWizard

Post Reply
GrandWizard
Posts: 2285
Joined: Tue Nov 16, 2010 4:08 pm

Envisalink 2DS - TPI Documentation

Post by GrandWizard »

Here is the TPI (API) document for the Envisalink 2DS.
Attachments
EnvisaLinkTPI-1-00.zip
(72.32 KiB) Downloaded 2089 times
SecurityBuff
Posts: 3
Joined: Sun Mar 04, 2012 10:04 pm

Re: Envisalink 2DS - TPI Documentation

Post by SecurityBuff »

Hi,

Can anyone offer a little direction on how to get started with using the TPI documentation?

*recommended programming language to use
*how to calculate the checksum? (36 + 35 + 34 + 33 = D2)
*is there a terminal program one can use to test the commands?

Any example code would be very helpful.

ie login.
*envisalink:4025 005 pass chksumCR/LF


Thank you.
nlmike
Posts: 4
Joined: Wed Feb 08, 2012 10:11 am

Re: Envisalink 2DS - TPI Documentation

Post by nlmike »

Can anyone offer a little direction on how to get started with using the TPI documentation?

*recommended programming language to use
*how to calculate the checksum? (36 + 35 + 34 + 33 = D2)
I attached a simple Perl script that you can use to generate commands with checksums.

Example use, assuming that your password is "passwd". It returns the login command including the checksum.
> ./getChecksumUtil.pl 005passwd
005passwd27

Another example: the "Poll" command "000":
> ./getChecksumUtil.pl 000
00090
*is there a terminal program one can use to test the commands?
I use "nc" in Linux. Example assuming that the IP of the 2DS is "192.168.1.5":
> nc -C 192.168.1.5 4025

I hope this helps,
mike
Attachments
getChecksumUtil.zip
(467 Bytes) Downloaded 2739 times
Jsalinger
Posts: 4
Joined: Tue Jan 31, 2012 9:58 pm

Re: Envisalink 2DS - TPI Documentation

Post by Jsalinger »

SecurityBuff wrote:Hi,

Can anyone offer a little direction on how to get started with using the TPI documentation?

*recommended programming language to use
*how to calculate the checksum? (36 + 35 + 34 + 33 = D2)
*is there a terminal program one can use to test the commands?

Any example code would be very helpful.

ie login.
*envisalink:4025 005 pass chksumCR/LF


Thank you.
Hi SecurityBuff,

I was a member of the beta for the TPI, and I have been working on an open-source Android app for the 2DS for a little over a month. This is just a hobby for me, so I have been hoping others who are interested might want to get involved with and help improve the project.

Even if you do not have expertise in Java/Android development, you might be interested in giving my google code site a look:

https://code.google.com/p/homewatcher/

It contains my work-in-progress source code and an APK (Android application file) for what I've built so far.

-Jsalinger
metamatt
Posts: 15
Joined: Tue Mar 13, 2012 3:19 am

Re: Envisalink 2DS - TPI Documentation

Post by metamatt »

Is this thread a good place to post questions/clarifications about the docs?

I was able to get a test app working without a whole lot of trouble, but it would have been much easier if the intro section had said that *I* send the envisalink the commands in section 3.2 ("application commands"), and the envisalink sends back the commands in section 3.3 ("TPI commands"), both in direct reply to the application commands and also asynchronously due to system events.

It's the kind of thing where once you know it it's obvious, but the docs don't make it obvious enough, and when you're just starting out and reading docs you by definition don't already know this.
metamatt
Posts: 15
Joined: Tue Mar 13, 2012 3:19 am

Re: Envisalink 2DS - TPI Documentation

Post by metamatt »

For those looking for sample code, here's a little snippet of Python I've been playing with.

It's basically just a monitor -- it logs in, listens for events generated by the system, and prints them out -- it also sends the poll command every 10 seconds to make sure the connection is still alive.
Attachments
envisalink.py.zip
Simple API/TPI demonstration in Python.
(1.86 KiB) Downloaded 2757 times
pauliep
Posts: 1
Joined: Thu Jun 07, 2012 1:15 pm

Re: Envisalink 2DS - TPI Documentation

Post by pauliep »

I, too, would like some help. I have an ISY-994i and the 2DS. I have trolled the posts here and in the Universal Devices forums. Seems that Michel from UD indicates the ISY will not work with the DS2 as it requires a persistent socket connection which is not possible at this time.

Has anyone figured out a work-around for this?

Also, how do I initiate a TCP socket with the 2DS? I can's seem to do it.

Finally, I am using a Mac.

Paul
GrandWizard
Posts: 2285
Joined: Tue Nov 16, 2010 4:08 pm

Re: Envisalink 2DS - TPI Documentation

Post by GrandWizard »

Here is a link from the Universal Devices forum. The '2DS is now supported through the DSCLink software.

http://forum.universal-devices.com/view ... =58&t=8800
Post Reply