Welcome!

On this forum you can discuss iRidium with other users. iRidium consist of 2 main components - i3 pro app and iRidium Server. Please post here your questions, ideas or errors you find.

Please send your questions to support team as a private messages.


Please subscribe to the Change Log to know our news

0
Waiting for user's reply
ai-systems@bk.ru 11 months ago in Products / HDL-BUS Pro • updated by Dmitry - support (expert) 11 months ago 3

How to read current status of the device when program starts?

When I use Universal control function - its work. Parameters a changing.

But when I restart I3Pro - I don't see current status of it.

0
ai-systems@bk.ru 11 months ago in Products / HDL-BUS Pro 0


Should be a switch number. Not Area.

0
Not a bug
Сергей Медведев 11 months ago in Products / Modbus • updated by Dmitry - support (expert) 11 months ago 3

Здравствуйте, с очередным обновлением сайта нас убрали из списка поддержки брендов с главной страницы , оставляют в очередной раз просто модбас. Modbus это протокол а не бренд. Прошу добавить вновь бренд INSYTE


Отдел Сбыта INSYTE Electronics

0
Under review
ofer 11 months ago in Products / Other drivers • updated by Dmitry - support (expert) 11 months ago 2

Hi,

I'm looking for someone that can help with RS232 2 way communication with Vantage home automation system,


The commands that need to be sent and the response are known,


Willing to pay for it,


Ofer.

0
Answered
Qorin 11 months ago in Products / Other drivers • updated by Jackie Roos 10 months ago 8

Hi,


I would like to receive data by using the GlobalCache Wifi to Serial.


I used H-Term to periodically send data to globalcache along with USB to RS232 as my test setup (I am able to receive data from Iridium in H-Term)


Below is the code that I have implemented in java script.


var timer = 0;
var onTime = 50; // in ms
var pageNumber = 1;
var funcOp = 0xFF;

this.DriverName = "Global Cache";
this.device;
this.Online = false;
this.device = IR.GetDevice(this.DriverName);

var init = 0;
IR.AddListener(IR.EVENT_START,0,function(){
IR.Log("Hellooo!!!");
});
IR.AddListener(IR.EVENT_EXIT,0,function(){
});
IR.AddListener(IR.EVENT_RECEIVE_TEXT, this.device, function(text,id){
IR.Log("receive 1 = "+ text);
IR.GetPage("Gowing").GetItem("txtT").Text = "AAAAA";
});
IR.AddListener(IR.EVENT_WORK, 0, function(time){
var that = this;
var packXPC;
timer += time;
if(init == 0){
IR.AddListener(IR.EVENT_DEVICE_FOUND, that.device, function(name){
IR.Log("Name :"+name);
}, that);
IR.AddListener(IR.EVENT_ONLINE, that.device, function(text){
IR.Log(that.DriverName+" DEVICE is Online");
that.Online = true;
init = 1;
}, that);
IR.AddListener(IR.EVENT_OFFLINE, that.device, function(text){
IR.Log(that.DriverName+" DEVICE is Offline");
that.Online = false;
}, that);
}
if(timer > onTime){
timer = 0;
switch(pageNumber){
case 1:
packXPC = [pageNumber, funcOp];
break;
default:
packXPC = [0xFF, 0xFF];
}
sendPackage(packXPC);
/*IR.AddListener(IR.EVENT_RECEIVE_TEXT, that.device, function(text, id){
IR.Log("receive = "+ text); // Output the received data in the log
}, that);
/*IR.AddListener(IR.EVENT_RECEIVE_DATA, that.device, function(text, id){
IR.Log("receive 1 = "+ text);
})*/

}
});


So far, I did not receive anything in the log nor in the text box in the GUI when I test it.

Has anyone ever encountered this problem or has solved it?
Any feedback would be appreciated.


Thank you!

Q





Answer

Hi :)


4998 is the IR port. 4999 and above are the serial ports.


In the GUI editor did you set up a new AV & Custom Systems Driver TCP/IP driver?


We use this routinely to send and receive commands to serial devices via a Global Cache IP2SL. For serial devices via GC, I don't use the the GC driver at all, as it is not necessary and the AV & Custom Systems driver gives more flexibility.


Have you setup the GC IP2SL to have multiple connections in iHelp?



0
Waiting for user's reply
Selman Peskir 11 months ago in Products / AV & Custom Systems • updated by Dmitry - support (expert) 11 months ago 1

I want to do a setup page for the end user. Be able to create a new room and be able to create a new button in this room and be able to give their names . I do not know how to do it

0
ofer 11 months ago in Products / Other drivers 0

Hi,



Any one had integrate Vantage home automation system with iRidium ?

0

ведуться якісь небуть розробки драйвера для підсилювачів yamacha?

0
Answered
Mike Slattery 12 months ago in Products / AV & Custom Systems • updated by Dmitry - support (expert) 11 months ago 2

Is there a reason why numbers that are > 0x80 are received as 0 when using IR.EVENT_RECEIVE_TEXT? Is there a driver configuration that allows all hex data to be received.I need to setup a telnet session and have to parse through data like "\xFF \xFD\x18". If I use EVENT_RECEIVE_DATA, then I have problems parsing ASCII data.

Answer

Hi Mkie

Probably as you are getting into the extended ascii characters (http://ascii-code.com/), and it depends on what is on your machine if they are the latin ones or not


I suggest using receive_data, and convert from the decimal to hex using something like this:


      IR.Log("Receive Raw Data: " + data);
      // Data received: 
      for (var i=0;  i < data.length; i++){
            data[i] = this.dec2hex(data[i]).toString();                            
      } //for 
      //Converted data:
      IR.Log("Receive Converted Data: " + data);


The following may come in handy:


   //**************************************************\\
// Data Conversion Routines \\
//**************************************************\\
var convertBase = function (num) {
this.from = function (baseFrom) {
this.to = function (baseTo) {
return parseInt(num, baseFrom).toString(baseTo).toUpperCase();
};
return this;
};
return this;
};
// binary to decimal
this.bin2dec = function (num) {
return convertBase(num).from(2).to(10);
};
// binary to hexadecimal
this.bin2hex = function (num) {
return convertBase(num).from(2).to(16);
};
// decimal to binary
this.dec2bin = function (num) {
return convertBase(num).from(10).to(2);
};
// decimal to hexadecimal
this.dec2hex = function (num) {
return convertBase(num).from(10).to(16);
};
// hexadecimal to binary
this.hex2bin = function (num) {
return convertBase(num).from(16).to(2);
};
// hexadecimal to decimal
this.hex2dec = function (num) {
return convertBase(num).from(16).to(10);
};
//**************************************************\\ // converts an array of hex or decimal to the \\ // the ASCII code \\ // eg 75 Decimal = K \\ //**************************************************\\ this.NumToChar = function(tmp) {
var arr = tmp;
var str = '';
var c;
for (var i=0; i<arr.length; i++) {
if (arr[i] != 0) {
c = String.fromCharCode(arr[i]);
str += c;
}
}
return str;
} //**************************************************\\ // Formats eg FF into 0xFF \\ //**************************************************\\ this.FormatToHex = function(hx){
hx = '0x' + String('0' + hx).slice(-2);
return hx;
}