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

Universal Control HDL

ai-systems@bk.ru 1 year ago in Products / HDL-BUS Pro • updated by Dmitry - support (expert) 1 year 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

HDL MS-24 Wrong scan

ai-systems@bk.ru 1 year ago in Products / HDL-BUS Pro 0


Should be a switch number. Not Area.

0
Under review

$ Need help with Global Cache RS232 two way communication $

ofer 2 years ago in Products / Other drivers • updated by Dmitry - support (expert) 1 year 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

Receiving/Feedback of RS232 using Global Cache

Qorin 2 years ago in Products / Other drivers • updated by Jackie Roos 1 year 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

End users setup page

Selman Peskir 2 years ago in Products / AV & Custom Systems • updated by Dmitry - support (expert) 2 years 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

Vantage Home Automation

ofer 2 years ago in Products / Other drivers 0

Hi,



Any one had integrate Vantage home automation system with iRidium ?

0

yamacha

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

0
Answered

IR.EVENT_RECEIVE_TEXT receiving hex > 0x80

Mike Slattery 2 years ago in Products / AV & Custom Systems • updated by Dmitry - support (expert) 2 years 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;
}
0
Waiting for user's reply

MQTT driver не обновляет значения после открытия i3 pro

Александр Бондарь 2 years ago in Products / Other drivers • updated by Dmitry - support (expert) 2 years ago 5

i3 pro на iOS не обновляет данные от mqtt драйвера при запуске.


Например, i3 pro запущен. Включаем свет. MQTT драйвер возвращает значение ON. Выключаем свет. MQTT драйвер возвращает значение OFF. Закрываем или сворачиваем приложение i3 pro. Запускаем снова приложение и видим значение ON, хотя свет все так же выключен.


Возможно ли заставить драйвер принудительно обновлять значения с брокера при открытии i3 pro?