EnvisaLink 4 TPI Issues
Posted: Wed Apr 06, 2016 2:40 am
My set-up is:
- EnvisaLink 4 with DSC alarm panel
- Firmware Version: 01.00.61 (reported by web address)
- Static IP Set
- No Internet connect available
Web interface works without issues (just very laggy sometimes).
I'm trying to follow the EnvisaLinkTPI-1-06.pdf file instructions to connect to TPI but I'm stuck at first step:
What I've tried so far:
windows / cygwin - nc
Result: no output, disconnects after a while
NodeJS
What am I doing wrong?
Thank you for your help
- EnvisaLink 4 with DSC alarm panel
- Firmware Version: 01.00.61 (reported by web address)
- Static IP Set
- No Internet connect available
Web interface works without issues (just very laggy sometimes).
I'm trying to follow the EnvisaLinkTPI-1-06.pdf file instructions to connect to TPI but I'm stuck at first step:
The issue is I don't get any 5053 command. I can open socket but no receive no data.Once established the TPI will send a 5053 command (See section 3.0 for a detailed description of the protocol) requesting a session password. The client should then, within 10 seconds, send 005 login request
What I've tried so far:
windows / cygwin - nc
Code: Select all
nc -v 172.16.30.30 4025
linux - ncConnection to 172.16.30.30 4025 port [tcp/*] succeeded!
Code: Select all
nc 172.16.30.30 4025
NodeJS
Code: Select all
var Config = {};
Config.ip = '172.16.30.30';
Config.port = 4025;
Config.password = 'user';
const net=require('net');
var client = new net.Socket();
client.connect(Config.port, Config.ip, function(){
console.log('connected');
setTimeout(function(){
client.write('005');
},1000);
});
client.on('data',function(data){
console.log('Got '+data.toString());
//var dataslice = data.toString().replace(/[\n\r]/g, ',').split(',');
//console.log(dataslice);
});
client.on('error',function(error){
console.log('error');
console.log(error);
});
client.on('close',function(){
console.log('closed');
});
PHPconnected
closed
error
{ [Error: This socket has been ended by the other party] code: 'EPIPE' }
Code: Select all
<?php
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)
or die('UnableToCreateSocket'.PHP_EOL)
;
/*
socket_set_nonblock($socket)
or die('Unable to set nonblock on socket'.PHP_EOL)
;
*/
socket_connect($socket,'172.16.30.30',4025)
or die('UnableToConnect'.PHP_EOL);
$err=socket_last_error();
if($err!==0){ die('Error: '.$err.PHP_EOL); }
echo 'Connected, starting engine..'.PHP_EOL;
//socket_write($socket,"005user54\n\n");
while(1){
$data=@socket_read($socket,500,PHP_BINARY_READ);
if($data!==NULL){
var_dump($data);
/*if(is_string($data) && strlen($data)>0){
var_dump($data);
}*/
}
sleep(1);
}
Also tried various libraries and utilities from github, but nothing seems to be able to connect to TPI interface.string(0) ""
string(0) ""
string(0) ""
string(0) ""
What am I doing wrong?
Thank you for your help