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!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Question about Net.FTcpSocket


Question

Posted

Hello,

 

I have problem with tcpsocket request. When i send data through global cache 4999 port i get tcpsocket error code 2. Where i can get list of error code meanings?

 

Situation in details:

 

I have dscalarm module (DSC powerseries TI-100) and global cache. Home center 2 should connect to alarm module through global cache rs232 4999 port. Problem is when i integrate alarm through DSCalarm plugin then i can't see any control(zones, partitions) in interface(only in plugin configuration). So, i decided search some scripts. I found this:

 

https://incedo.org/~sjoholmp/Fibaro_Homecenter/LUA/VDs/HC2_DSCengine/ (latest.lua).

 

In this script i get:

Script error: [DEBUG] 11:31:14: Error code is: 2 Failed to communicate with IT-100 doing keep alive request! 

 

This error shows tcpsocket error code. Maybe someone knows how to make visible alarm control in main interface(not in plugins configuration)?

3 answers to this question

Recommended Posts

  • 0
Posted

Hi

 

I have this code also uploaded to Fibaro Market place

Please login or register to see this link.

. I think there is some info in the attached PDF documentation regarding IT-100 and global cache that maybe can help you. Also check the release notes text file. I use envisalink myself, but added support for your setup to DSCengine after some mail ping pong with another user that wanted to use DSCengine but did not have an envisalink.

 

PS

A new DSCengine release is coming out soon. If I have the spare time it will hopefully be within a couple of weeks. 

 

Regards

Peo

  • Like 1
  • 0
Posted

B t w.... This is from the DSCengine docs regarding your setup.

 

--snip--

DSC IT-100 with Global cache

Right now this option is considered a beta as it is not yet very well tested and

introduced in DSCengine 3.0. I have no indication though that it shouldn’t work ok.

For this the following hardware is used:

- Global Cache' iTach Flex with Flex Link RS232 Serial cable - DSC IT-100 serial card

Install the Global cache per its instructions and make sure it can communicate on the network.
Install Global Cache iHelp tool to find IP address of Global Cache.
Log in to the Global Cache, change from IP to Serial, set baud= 9600, Flow Control= None, Duplex= Half, Parity= None, Databits= 8, stop bits= 1, Gender change = false

Modify the DCFG_SETUP predefined variable and set:

- DSC_INTERFACE to 1
- IP to the IP address of the global cache (port 4999 is hard coded in DSCengine)

Note that there is no bind with user and password using this solution. So make sure it is just used internally!

Many thanks to Chris Swan for making this IT-100 option possible by doing initial testing as the author has no such device.

--snip--

 

/Peo

  • 0
  • Inquirer
  • Posted
    12 minutes ago, pos said:

    B t w.... This is from the DSCengine docs regarding your setup.

     

    --snip--

    DSC IT-100 with Global cache

    Right now this option is considered a beta as it is not yet very well tested and

    introduced in DSCengine 3.0. I have no indication though that it shouldn’t work ok.

    For this the following hardware is used:

    - Global Cache' iTach Flex with Flex Link RS232 Serial cable - DSC IT-100 serial card

    Install the Global cache per its instructions and make sure it can communicate on the network.
    Install Global Cache iHelp tool to find IP address of Global Cache.
    Log in to the Global Cache, change from IP to Serial, set baud= 9600, Flow Control= None, Duplex= Half, Parity= None, Databits= 8, stop bits= 1, Gender change = false

    Modify the DCFG_SETUP predefined variable and set:

    - DSC_INTERFACE to 1
    - IP to the IP address of the global cache (port 4999 is hard coded in DSCengine)

    Note that there is no bind with user and password using this solution. So make sure it is just used internally!

    Many thanks to Chris Swan for making this IT-100 option possible by doing initial testing as the author has no such device.

    --snip--

     

    /Peo

     

     

     

    Thank you for reply.

     

    You lucky that you have Envisalink. I did everything right in global cache configuration. I need to fix that as soon as possible..

    Join the conversation

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

    Guest
    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...