Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,


as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.


As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!



Smart Home Forum by FIBARO Team

  • 0

Help programming




I've been searching for a while for ways to integrate HC2 to different alarm systems. Right now I am working with a DSC PC1616 panel with a Envisalink 3 interface

They provide a TPI (third party interface) programming guide (attached), but I can't get it to work.

My programming skills are pretty rudimentary and when they start talking about binary, hex and ASCII commands I get really confused.

I managed to open a TCP socket from terminal app on a MAC, but can't manage to send commands to the alarm panel. I always receive a "syntax error message" (50202029).

Could someone help me with a few sample strings to, for example, arm or disarm the alarm, in order to understand the protocol and start working on a virtual device to fully integrate the alarm to HC2?

Example: Partition arm control - with code

Command code: 033 (ASCII 30 33 33)

Partition: 1 (ASCII 31)

User Code: 1234 (ASCII 31 32 33 34)

Checksum (according to my inexperienced calculation): 0x1F1 (ASCII 66 31)

I tried the following string with no luck (always received "syntax error" message):





If someone could point me in the right direction would be great in order to start working on the integration of DSC panels.


Please login or register to see this link.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Does your system have anything like API ?

    Sorry, forgot to add the attachment, now is included in the original post.

    Its a TPI (third party interface) programming guide. The closest to an API I was able to find

    [ Added: 2014-04-11, 00:25 ]

    Found the answer

    the code shouldn't be converted to ASCII (just to make de checksum)

    The correct string was:


    Mac terminal adds the line feed (LF) 0A automatically, so it is necessary to add the CR (0D) to the end of the string. on terminal is control + V

    Now I want to send the string directly from HC2, but I can't figure how to open the TCP socket from HC2 using Lua. Anyone?

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    • Create New...